2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.6.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-2014 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.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.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
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
792 ENABLE_VISIBILITY_INLINES_HIDDEN
799 ac_precious_vars='build_alias
810 ac_subdirs_all='projects/test-suite
813 projects/llvm-poolalloc
817 # Initialize some variables set by options.
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
1200 # Be sure to have absolute directory names.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-polly Use polly if available (default is YES)
1391 --enable-libcpp Use libc++ if available (default is NO)
1392 --enable-compiler-version-checks
1393 Check the version of the host compiler (default is
1395 --enable-cxx1y Use c++1y if available (default is NO)
1396 --enable-split-dwarf Use split-dwarf if available (default is NO)
1397 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1398 --enable-clang-plugin-support
1399 Enable plugin support in clang (default is YES)
1400 --enable-clang-static-analyzer
1401 Enable building of clang Static Analyzer (default is
1403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1407 --enable-werror Compile with -Werror enabled (default is NO)
1408 --enable-expensive-checks
1409 Compile with expensive debug checks enabled (default
1411 --enable-debug-runtime Build runtime libs with debug symbols (default is
1413 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1414 optimization is on and YES if it's off)
1415 --enable-keep-symbols Do not strip installed executables)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-zlib Use zlib for compression/decompression if available
1423 --enable-pic Build LLVM with Position Independent Code (default
1425 --enable-shared Build a shared library and link tools against it
1427 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1428 Win32 DLL (default is NO)
1429 --enable-timestamps Enable embedding timestamp information in build
1431 --enable-backtraces Enable embedding backtraces on crash (default is
1433 --enable-crash-overrides
1434 Enable crash handling overrides (default is YES)
1435 --enable-targets Build specific host targets: all or
1436 target1,target2,... Valid targets are: host, x86,
1437 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438 hexagon, xcore, msp430, nvptx, systemz, r600, and
1440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
1443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
1445 --enable-terminfo Query the terminfo database if available (default is
1447 --enable-libedit Use libedit if available (default is YES)
1448 --enable-libffi Check for the presence of libffi (default is NO)
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-optimize-option Select the compiler options to use for optimized
1455 --with-extra-options Specify additional options to compile LLVM with
1456 --with-extra-ld-options Specify additional options to link LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1459 --with-clang-srcdir Directory to the out-of-tree Clang source
1460 --with-clang-resource-dir
1461 Relative directory from the Clang binary for
1463 --with-c-include-dirs Colon separated list of directories clang will
1465 --with-gcc-toolchain Directory where gcc is installed.
1466 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
1469 --with-bug-report-url Specify the URL where bug reports should be
1470 submitted (default=http://llvm.org/bugs/)
1471 --with-internal-prefix Installation directory for internal files
1472 --with-python path to python
1473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
1475 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <http://llvm.org/bugs/>.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" || continue
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1520 .) # We are building in place.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1553 LLVM configure 3.6.0svn
1554 generated by GNU Autoconf 2.60
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1561 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by LLVM $as_me 3.6.0svn, which was
1570 generated by GNU Autoconf 2.60. Invocation command line was
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_must_keep_next=false
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 -* ) ac_must_keep_next=true ;;
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1723 for ac_var in $ac_subst_vars
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1733 if test -n "$ac_subst_files"; then
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1740 for ac_var in $ac_subst_files
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1751 if test -s confdefs.h; then
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1777 # Predefined preprocessor variables.
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1842 # Check that the precious variables saved in the cache have kept the same
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 LLVM_VERSION_MAJOR=3
1924 LLVM_VERSION_MINOR=6
1925 LLVM_VERSION_PATCH=0
1926 LLVM_VERSION_SUFFIX=svn
1929 cat >>confdefs.h <<_ACEOF
1930 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1934 cat >>confdefs.h <<_ACEOF
1935 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1939 cat >>confdefs.h <<_ACEOF
1940 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1949 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1958 for ac_dir in autoconf "$srcdir"/autoconf; do
1959 if test -f "$ac_dir/install-sh"; then
1961 ac_install_sh="$ac_aux_dir/install-sh -c"
1963 elif test -f "$ac_dir/install.sh"; then
1965 ac_install_sh="$ac_aux_dir/install.sh -c"
1967 elif test -f "$ac_dir/shtool"; then
1969 ac_install_sh="$ac_aux_dir/shtool install -c"
1973 if test -z "$ac_aux_dir"; then
1974 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1975 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1976 { (exit 1); exit 1; }; }
1979 # These three variables are undocumented and unsupported,
1980 # and are intended to be withdrawn in a future Autoconf release.
1981 # They can cause serious problems if a builder's source tree is in a directory
1982 # whose full name contains unusual characters.
1983 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1984 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1985 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1989 if test ${srcdir} != "." ; then
1990 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1991 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1992 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1993 { (exit 1); exit 1; }; }
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 for ac_prog in clang gcc
2008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test -n "$CC"; then
2037 { echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6; }
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2045 test -n "$CC" && break
2048 if test -z "$CC"; then
2050 for ac_prog in clang gcc
2052 # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 set dummy $ac_prog; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_ac_ct_CC="$ac_prog"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080 if test -n "$ac_ct_CC"; then
2081 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082 echo "${ECHO_T}$ac_ct_CC" >&6; }
2084 { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2089 test -n "$ac_ct_CC" && break
2092 if test "x$ac_ct_CC" = x; then
2095 case $cross_compiling:$ac_tool_warned in
2097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet. If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&5
2100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet. If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2103 ac_tool_warned=yes ;;
2110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2116 # Provide some information about the compiler.
2117 echo "$as_me:$LINENO: checking for C compiler version" >&5
2118 ac_compiler=`set X $ac_compile; echo $2`
2119 { (ac_try="$ac_compiler --version >&5"
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125 (eval "$ac_compiler --version >&5") 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2129 { (ac_try="$ac_compiler -v >&5"
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compiler -v >&5") 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139 { (ac_try="$ac_compiler -V >&5"
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145 (eval "$ac_compiler -V >&5") 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2150 cat >conftest.$ac_ext <<_ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h. */
2165 ac_clean_files_save=$ac_clean_files
2166 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2167 # Try to create an executable without -o first, disregard a.out.
2168 # It will help us diagnose broken compilers, and finding out an intuition
2170 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2171 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2172 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174 # List of possible output files, starting from the most likely.
2175 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2176 # only as a last resort. b.out is created by i960 compilers.
2177 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2179 # The IRIX 6 linker writes into existing files which may not be
2180 # executable, retaining their permissions. Remove them first so a
2181 # subsequent execution test works.
2183 for ac_file in $ac_files
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2187 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2192 if { (ac_try="$ac_link_default"
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2198 (eval "$ac_link_default") 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; then
2202 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2204 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2205 # so that the user can short-circuit this test for compilers unknown to
2207 for ac_file in $ac_files
2209 test -f "$ac_file" || continue
2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2214 # We found the default executable, but exeext='' is most
2218 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2220 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222 # We set ac_cv_exeext here because the later test for it is not
2223 # safe: cross compilers may not add the suffix if given an `-o'
2224 # argument, so we may need to know it at that point already.
2225 # Even if this section looks crufty: it has the advantage of
2232 test "$ac_cv_exeext" = no && ac_cv_exeext=
2235 echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2238 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&2;}
2242 { (exit 77); exit 77; }; }
2245 ac_exeext=$ac_cv_exeext
2246 { echo "$as_me:$LINENO: result: $ac_file" >&5
2247 echo "${ECHO_T}$ac_file" >&6; }
2249 # Check that the compiler produces executables we can run. If not, either
2250 # the compiler is broken, or we cross compile.
2251 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2252 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2253 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2254 # If not cross compiling, check that we can run a simple program.
2255 if test "$cross_compiling" != yes; then
2256 if { ac_try='./$ac_file'
2257 { (case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_try") 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2268 if test "$cross_compiling" = maybe; then
2271 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2281 { echo "$as_me:$LINENO: result: yes" >&5
2282 echo "${ECHO_T}yes" >&6; }
2284 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2285 ac_clean_files=$ac_clean_files_save
2286 # Check that the compiler produces executables we can run. If not, either
2287 # the compiler is broken, or we cross compile.
2288 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2289 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2290 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2291 echo "${ECHO_T}$cross_compiling" >&6; }
2293 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2294 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2295 if { (ac_try="$ac_link"
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_link") 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2307 # work properly (i.e., refer to `conftest.exe'), while it won't with
2309 for ac_file in conftest.exe conftest conftest.*; do
2310 test -f "$ac_file" || continue
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest$ac_cv_exeext
2327 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2328 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2330 rm -f conftest.$ac_ext
2331 EXEEXT=$ac_cv_exeext
2333 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2334 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2335 if test "${ac_cv_objext+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 cat >conftest.$ac_ext <<_ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2353 rm -f conftest.o conftest.obj
2354 if { (ac_try="$ac_compile"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compile") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; then
2364 for ac_file in conftest.o conftest.obj conftest.*; do
2365 test -f "$ac_file" || continue;
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2368 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2379 See \`config.log' for more details." >&2;}
2380 { (exit 1); exit 1; }; }
2383 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2385 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2386 echo "${ECHO_T}$ac_cv_objext" >&6; }
2387 OBJEXT=$ac_cv_objext
2389 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2390 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2391 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 cat >conftest.$ac_ext <<_ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2412 rm -f conftest.$ac_objext
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compile") 2>conftest.er1
2421 grep -v '^ *+' conftest.er1 >conftest.err
2423 cat conftest.err >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
2426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2427 { (case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_try") 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (case "(($ac_try" in
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442 (eval "$ac_try") 2>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2460 GCC=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CFLAGS=${CFLAGS+set}
2462 ac_save_CFLAGS=$CFLAGS
2463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_cc_g+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 ac_save_c_werror_flag=$ac_c_werror_flag
2469 ac_c_werror_flag=yes
2472 cat >conftest.$ac_ext <<_ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2487 rm -f conftest.$ac_objext
2488 if { (ac_try="$ac_compile"
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494 (eval "$ac_compile") 2>conftest.er1
2496 grep -v '^ *+' conftest.er1 >conftest.err
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
2501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2502 { (case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_try") 2>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_try") 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2542 rm -f conftest.$ac_objext
2543 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2551 grep -v '^ *+' conftest.er1 >conftest.err
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2557 { (case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_try") 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 ac_c_werror_flag=$ac_save_c_werror_flag
2583 cat >conftest.$ac_ext <<_ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2598 rm -f conftest.$ac_objext
2599 if { (ac_try="$ac_compile"
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_compile") 2>conftest.er1
2607 grep -v '^ *+' conftest.er1 >conftest.err
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2613 { (case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_try") 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_try") 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 ac_c_werror_flag=$ac_save_c_werror_flag
2649 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2650 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2651 if test "$ac_test_CFLAGS" = set; then
2652 CFLAGS=$ac_save_CFLAGS
2653 elif test $ac_cv_prog_cc_g = yes; then
2654 if test "$GCC" = yes; then
2660 if test "$GCC" = yes; then
2666 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2667 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2668 if test "${ac_cv_prog_cc_c89+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 ac_cv_prog_cc_c89=no
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2681 #include <sys/types.h>
2682 #include <sys/stat.h>
2683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2684 struct buf { int x; };
2685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2686 static char *e (p, i)
2692 static char *f (char * (*g) (char **, int), char **p, ...)
2697 s = g (p, va_arg (v,int));
2702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2703 function prototypes and stuff, but not '\xHH' hex character constants.
2704 These don't provoke an error unfortunately, instead are silently treated
2705 as 'x'. The following induces an error, until -std is added to get
2706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2707 array size at least. It's necessary to write '\x00'==0 to get something
2708 that's true only with -std. */
2709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2712 inside strings and character constants. */
2714 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2716 int test (int i, double x);
2717 struct s1 {int (*f) (int a);};
2718 struct s2 {int (*f) (double a);};
2719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2731 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2733 CC="$ac_save_CC $ac_arg"
2734 rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2749 { (case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_try") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_try") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 ac_cv_prog_cc_c89=$ac_arg
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2776 rm -f core conftest.err conftest.$ac_objext
2777 test "x$ac_cv_prog_cc_c89" != "xno" && break
2779 rm -f conftest.$ac_ext
2784 case "x$ac_cv_prog_cc_c89" in
2786 { echo "$as_me:$LINENO: result: none needed" >&5
2787 echo "${ECHO_T}none needed" >&6; } ;;
2789 { echo "$as_me:$LINENO: result: unsupported" >&5
2790 echo "${ECHO_T}unsupported" >&6; } ;;
2792 CC="$CC $ac_cv_prog_cc_c89"
2793 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 ac_cpp='$CXXCPP $CPPFLAGS'
2806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2809 if test -z "$CXX"; then
2810 if test -n "$CCC"; then
2813 if test -n "$ac_tool_prefix"; then
2814 for ac_prog in clang++ g++
2816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_CXX+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 if test -n "$CXX"; then
2824 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 if test -n "$CXX"; then
2845 { echo "$as_me:$LINENO: result: $CXX" >&5
2846 echo "${ECHO_T}$CXX" >&6; }
2848 { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2853 test -n "$CXX" && break
2856 if test -z "$CXX"; then
2858 for ac_prog in clang++ g++
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$ac_ct_CXX"; then
2868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_ac_ct_CXX="$ac_prog"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2888 if test -n "$ac_ct_CXX"; then
2889 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2890 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2897 test -n "$ac_ct_CXX" && break
2900 if test "x$ac_ct_CXX" = x; then
2903 case $cross_compiling:$ac_tool_warned in
2905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet. If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&5
2908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet. If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2911 ac_tool_warned=yes ;;
2919 # Provide some information about the compiler.
2920 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2921 ac_compiler=`set X $ac_compile; echo $2`
2922 { (ac_try="$ac_compiler --version >&5"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compiler --version >&5") 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932 { (ac_try="$ac_compiler -v >&5"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compiler -v >&5") 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942 { (ac_try="$ac_compiler -V >&5"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compiler -V >&5") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }
2953 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2954 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2955 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2991 { (case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_try") 2>&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; } &&
3000 { ac_try='test -s conftest.$ac_objext'
3001 { (case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_try") 2>&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3022 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3023 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3024 GXX=`test $ac_compiler_gnu = yes && echo yes`
3025 ac_test_CXXFLAGS=${CXXFLAGS+set}
3026 ac_save_CXXFLAGS=$CXXFLAGS
3027 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3028 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_cxx_g+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3033 ac_cxx_werror_flag=yes
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3066 { (case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_try") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; } &&
3075 { ac_try='test -s conftest.$ac_objext'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_cv_prog_cxx_g=yes
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3091 cat >conftest.$ac_ext <<_ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3106 rm -f conftest.$ac_objext
3107 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3115 grep -v '^ *+' conftest.er1 >conftest.err
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; } &&
3130 { ac_try='test -s conftest.$ac_objext'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3177 { (case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_try") 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 ac_cv_prog_cxx_g=yes
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3213 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3214 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3215 if test "$ac_test_CXXFLAGS" = set; then
3216 CXXFLAGS=$ac_save_CXXFLAGS
3217 elif test $ac_cv_prog_cxx_g = yes; then
3218 if test "$GXX" = yes; then
3224 if test "$GXX" = yes; then
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3242 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3243 # On Suns, sometimes $CPP names a directory.
3244 if test -n "$CPP" && test -d "$CPP"; then
3247 if test -z "$CPP"; then
3248 if test "${ac_cv_prog_CPP+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 # Double quotes because CPP needs to be expanded
3252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3255 for ac_c_preproc_warn_flag in '' yes
3257 # Use a header file that comes with gcc, so configuring glibc
3258 # with a fresh cross-compiler works.
3259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3260 # <limits.h> exists even on freestanding compilers.
3261 # On the NeXT, cc -E runs the code through the compiler's parser,
3262 # not just through cpp. "Syntax error" is here to catch this case.
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3270 # include <limits.h>
3272 # include <assert.h>
3276 if { (ac_try="$ac_cpp conftest.$ac_ext"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } >/dev/null; then
3289 if test -s conftest.err; then
3290 ac_cpp_err=$ac_c_preproc_warn_flag
3291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298 if test -z "$ac_cpp_err"; then
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 # Broken: fails on valid input.
3308 rm -f conftest.err conftest.$ac_ext
3310 # OK, works on sane cases. Now check whether nonexistent headers
3311 # can be detected and how.
3312 cat >conftest.$ac_ext <<_ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3318 #include <ac_nonexistent.h>
3320 if { (ac_try="$ac_cpp conftest.$ac_ext"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } >/dev/null; then
3333 if test -s conftest.err; then
3334 ac_cpp_err=$ac_c_preproc_warn_flag
3335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3342 if test -z "$ac_cpp_err"; then
3343 # Broken: success on invalid input.
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Passes both tests.
3354 rm -f conftest.err conftest.$ac_ext
3357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358 rm -f conftest.err conftest.$ac_ext
3359 if $ac_preproc_ok; then
3371 { echo "$as_me:$LINENO: result: $CPP" >&5
3372 echo "${ECHO_T}$CPP" >&6; }
3374 for ac_c_preproc_warn_flag in '' yes
3376 # Use a header file that comes with gcc, so configuring glibc
3377 # with a fresh cross-compiler works.
3378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379 # <limits.h> exists even on freestanding compilers.
3380 # On the NeXT, cc -E runs the code through the compiler's parser,
3381 # not just through cpp. "Syntax error" is here to catch this case.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3389 # include <limits.h>
3391 # include <assert.h>
3395 if { (ac_try="$ac_cpp conftest.$ac_ext"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 if test -z "$ac_cpp_err"; then
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 # Broken: fails on valid input.
3427 rm -f conftest.err conftest.$ac_ext
3429 # OK, works on sane cases. Now check whether nonexistent headers
3430 # can be detected and how.
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #include <ac_nonexistent.h>
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 if test -z "$ac_cpp_err"; then
3462 # Broken: success on invalid input.
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 # Passes both tests.
3473 rm -f conftest.err conftest.$ac_ext
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3481 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details." >&5
3483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&2;}
3485 { (exit 1); exit 1; }; }
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 if test "$CXX" = "clang++" ; then
3496 { echo "$as_me:$LINENO: checking whether clang works" >&5
3497 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3499 ac_cpp='$CXXCPP $CPPFLAGS'
3500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3505 cat >conftest.$ac_ext <<_ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3512 #if __has_include (<cxxabi.h>)
3515 #if __has_include (<unwind.h>)
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_compile") 2>conftest.er1
3536 grep -v '^ *+' conftest.er1 >conftest.err
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } &&
3541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3542 { (case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_try") 2>&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_try") 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3562 { echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6; }
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3570 { echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6; }
3572 { { 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
3573 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;}
3574 { (exit 1); exit 1; }; }
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3588 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3590 ac_cpp='$CXXCPP $CPPFLAGS'
3591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3595 llvm_cv_cxx_compiler=unknown
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3622 { (case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_try") 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_try") 2>&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 llvm_cv_cxx_compiler=clang
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3657 rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_compile") 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3672 { (case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_try") 2>&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_try") 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 llvm_cv_cxx_compiler=gcc
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3710 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3714 if test -d ${srcdir}/projects/test-suite ; then
3715 subdirs="$subdirs projects/test-suite"
3719 if test -d ${srcdir}/projects/llvm-test ; then
3720 subdirs="$subdirs projects/llvm-test"
3724 if test -d ${srcdir}/projects/poolalloc ; then
3725 subdirs="$subdirs projects/poolalloc"
3729 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3730 subdirs="$subdirs projects/llvm-poolalloc"
3734 for i in `ls ${srcdir}/projects`
3736 if test -d ${srcdir}/projects/${i} ; then
3738 safecode) subdirs="$subdirs projects/safecode"
3746 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3747 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3753 # Check whether --enable-polly was given.
3754 if test "${enable_polly+set}" = set; then
3755 enableval=$enable_polly;
3760 case "$enableval" in
3765 default) ENABLE_POLLY=1
3767 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3768 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3769 { (exit 1); exit 1; }; } ;;
3773 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3776 subdirs="$subdirs tools/polly"
3781 # Make sure we can run config.sub.
3782 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3783 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3784 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3785 { (exit 1); exit 1; }; }
3787 { echo "$as_me:$LINENO: checking build system type" >&5
3788 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3789 if test "${ac_cv_build+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 ac_build_alias=$build_alias
3793 test "x$ac_build_alias" = x &&
3794 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3795 test "x$ac_build_alias" = x &&
3796 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3797 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3798 { (exit 1); exit 1; }; }
3799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3800 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3802 { (exit 1); exit 1; }; }
3805 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3806 echo "${ECHO_T}$ac_cv_build" >&6; }
3807 case $ac_cv_build in
3809 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3810 echo "$as_me: error: invalid value of canonical build" >&2;}
3811 { (exit 1); exit 1; }; };;
3814 ac_save_IFS=$IFS; IFS='-'
3820 # Remember, the first character of IFS is used to create $*,
3821 # except with old shells:
3824 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3827 { echo "$as_me:$LINENO: checking host system type" >&5
3828 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3829 if test "${ac_cv_host+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 if test "x$host_alias" = x; then
3833 ac_cv_host=$ac_cv_build
3835 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3836 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3837 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3838 { (exit 1); exit 1; }; }
3842 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3843 echo "${ECHO_T}$ac_cv_host" >&6; }
3846 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3847 echo "$as_me: error: invalid value of canonical host" >&2;}
3848 { (exit 1); exit 1; }; };;
3851 ac_save_IFS=$IFS; IFS='-'
3857 # Remember, the first character of IFS is used to create $*,
3858 # except with old shells:
3861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3864 { echo "$as_me:$LINENO: checking target system type" >&5
3865 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3866 if test "${ac_cv_target+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test "x$target_alias" = x; then
3870 ac_cv_target=$ac_cv_host
3872 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3873 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3874 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3875 { (exit 1); exit 1; }; }
3879 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3880 echo "${ECHO_T}$ac_cv_target" >&6; }
3881 case $ac_cv_target in
3883 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3884 echo "$as_me: error: invalid value of canonical target" >&2;}
3885 { (exit 1); exit 1; }; };;
3887 target=$ac_cv_target
3888 ac_save_IFS=$IFS; IFS='-'
3894 # Remember, the first character of IFS is used to create $*,
3895 # except with old shells:
3898 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3901 # The aliases save the names the user supplied, while $host etc.
3902 # will get canonicalized.
3903 test -n "$target_alias" &&
3904 test "$program_prefix$program_suffix$program_transform_name" = \
3906 program_prefix=${target_alias}-
3908 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3909 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3910 if test "${llvm_cv_os_type+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 llvm_cv_link_all_option="-Wl,--whole-archive"
3916 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3917 llvm_cv_os_type="AIX"
3918 llvm_cv_platform_type="Unix" ;;
3920 llvm_cv_link_all_option="-Wl,--whole-archive"
3921 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922 llvm_cv_os_type="IRIX"
3923 llvm_cv_platform_type="Unix" ;;
3925 llvm_cv_link_all_option="-Wl,--whole-archive"
3926 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927 llvm_cv_os_type="Cygwin"
3928 llvm_cv_platform_type="Unix" ;;
3930 llvm_cv_link_all_option="-Wl,-all_load"
3931 llvm_cv_no_link_all_option="-Wl,-noall_load"
3932 llvm_cv_os_type="Darwin"
3933 llvm_cv_platform_type="Unix" ;;
3935 llvm_cv_link_all_option="-Wl,-all_load"
3936 llvm_cv_no_link_all_option="-Wl,-noall_load"
3937 llvm_cv_os_type="Minix"
3938 llvm_cv_platform_type="Unix" ;;
3940 llvm_cv_link_all_option="-Wl,--whole-archive"
3941 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942 llvm_cv_os_type="FreeBSD"
3943 llvm_cv_platform_type="Unix" ;;
3945 llvm_cv_link_all_option="-Wl,--whole-archive"
3946 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947 llvm_cv_os_type="GNU/kFreeBSD"
3948 llvm_cv_platform_type="Unix" ;;
3950 llvm_cv_link_all_option="-Wl,--whole-archive"
3951 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952 llvm_cv_os_type="OpenBSD"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="NetBSD"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="DragonFly"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="HP-UX"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="Interix"
3973 llvm_cv_platform_type="Unix" ;;
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="Linux"
3978 llvm_cv_platform_type="Unix" ;;
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="GNU"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,-z,allextract"
3986 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3987 llvm_cv_os_type="SunOS"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="Win32"
3993 llvm_cv_platform_type="Win32" ;;
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="MingW"
3998 llvm_cv_platform_type="Win32" ;;
4000 llvm_cv_link_all_option="-Wl,--whole-archive"
4001 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002 llvm_cv_os_type="Haiku"
4003 llvm_cv_platform_type="Unix" ;;
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="Freestanding"
4008 llvm_cv_platform_type="Unix" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Freestanding"
4013 llvm_cv_platform_type="Unix" ;;
4015 llvm_cv_link_all_option=""
4016 llvm_cv_no_link_all_option=""
4017 llvm_cv_os_type="Unknown"
4018 llvm_cv_platform_type="Unknown" ;;
4021 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4022 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4024 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4025 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4026 if test "${llvm_cv_target_os_type+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 llvm_cv_target_os_type="AIX" ;;
4033 llvm_cv_target_os_type="IRIX" ;;
4035 llvm_cv_target_os_type="Cygwin" ;;
4037 llvm_cv_target_os_type="Darwin" ;;
4039 llvm_cv_target_os_type="Minix" ;;
4041 llvm_cv_target_os_type="FreeBSD" ;;
4043 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4045 llvm_cv_target_os_type="OpenBSD" ;;
4047 llvm_cv_target_os_type="NetBSD" ;;
4049 llvm_cv_target_os_type="DragonFly" ;;
4051 llvm_cv_target_os_type="HP-UX" ;;
4053 llvm_cv_target_os_type="Interix" ;;
4055 llvm_cv_target_os_type="Linux" ;;
4057 llvm_cv_target_os_type="GNU" ;;
4059 llvm_cv_target_os_type="SunOS" ;;
4061 llvm_cv_target_os_type="Win32" ;;
4063 llvm_cv_target_os_type="MingW" ;;
4065 llvm_cv_target_os_type="Haiku" ;;
4067 llvm_cv_target_os_type="RTEMS" ;;
4069 llvm_cv_target_os_type="NativeClient" ;;
4071 llvm_cv_target_os_type="Freestanding" ;;
4073 llvm_cv_target_os_type="Unknown" ;;
4076 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4077 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4079 if test "$llvm_cv_os_type" = "Unknown" ; then
4080 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4081 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4082 { (exit 1); exit 1; }; }
4087 HOST_OS=$llvm_cv_os_type
4089 TARGET_OS=$llvm_cv_target_os_type
4092 LINKALL=$llvm_cv_link_all_option
4094 NOLINKALL=$llvm_cv_no_link_all_option
4097 case $llvm_cv_platform_type in
4100 cat >>confdefs.h <<\_ACEOF
4101 #define LLVM_ON_UNIX 1
4111 cat >>confdefs.h <<\_ACEOF
4112 #define LLVM_ON_WIN32 1
4122 { echo "$as_me:$LINENO: checking target architecture" >&5
4123 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4124 if test "${llvm_cv_target_arch+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 i?86-*) llvm_cv_target_arch="x86" ;;
4129 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4130 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4131 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4132 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4133 arm*-*) llvm_cv_target_arch="ARM" ;;
4134 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4135 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4136 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4137 xcore-*) llvm_cv_target_arch="XCore" ;;
4138 msp430-*) llvm_cv_target_arch="MSP430" ;;
4139 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4140 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4141 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4142 *) llvm_cv_target_arch="Unknown" ;;
4145 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4146 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4148 if test "$llvm_cv_target_arch" = "Unknown" ; then
4149 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4150 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4153 case "$llvm_cv_target_arch" in
4154 x86) LLVM_NATIVE_ARCH="X86" ;;
4155 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4156 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4159 ARCH=$llvm_cv_target_arch
4161 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4165 i?86-*) host_arch="x86" ;;
4166 amd64-* | x86_64-*) host_arch="x86_64" ;;
4167 sparc*-*) host_arch="Sparc" ;;
4168 powerpc*-*) host_arch="PowerPC" ;;
4169 arm64*-*) host_arch="AArch64" ;;
4170 arm*-*) host_arch="ARM" ;;
4171 aarch64*-*) host_arch="AArch64" ;;
4172 mips-* | mips64-*) host_arch="Mips" ;;
4173 mipsel-* | mips64el-*) host_arch="Mips" ;;
4174 xcore-*) host_arch="XCore" ;;
4175 msp430-*) host_arch="MSP430" ;;
4176 hexagon-*) host_arch="Hexagon" ;;
4177 s390x-*) host_arch="SystemZ" ;;
4178 *) host_arch="Unknown" ;;
4181 if test "$host_arch" = "Unknown" ; then
4182 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4183 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4186 HOST_ARCH=$host_arch
4189 if test "$cross_compiling" = yes; then
4190 LLVM_CROSS_COMPILING=1
4193 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4194 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4195 if test "${ac_cv_build_exeext+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4199 ac_cv_build_exeext=.exe
4201 ac_build_prefix=${build_alias}-
4203 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_build_prefix}gcc; ac_word=$2
4205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4207 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$BUILD_CC"; then
4211 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 BUILD_CC=$ac_cv_prog_BUILD_CC
4231 if test -n "$BUILD_CC"; then
4232 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4233 echo "${ECHO_T}$BUILD_CC" >&6; }
4235 { echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6; }
4240 if test -z "$BUILD_CC"; then
4241 # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$BUILD_CC"; then
4249 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_BUILD_CC="gcc"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 BUILD_CC=$ac_cv_prog_BUILD_CC
4269 if test -n "$BUILD_CC"; then
4270 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4271 echo "${ECHO_T}$BUILD_CC" >&6; }
4273 { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4278 if test -z "$BUILD_CC"; then
4279 # Extract the first word of "cc", so it can be a program name with args.
4280 set dummy cc; ac_word=$2
4281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4283 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 if test -n "$BUILD_CC"; then
4287 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4298 ac_prog_rejected=yes
4301 ac_cv_prog_BUILD_CC="cc"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 if test $ac_prog_rejected = yes; then
4310 # We found a bogon in the path, so make sure we never use it.
4311 set dummy $ac_cv_prog_BUILD_CC
4313 if test $# != 0; then
4314 # We chose a different compiler from the bogus one.
4315 # However, it has the same basename, so the bogon will be chosen
4316 # first if we set BUILD_CC to just the basename; use the full file name.
4318 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4323 BUILD_CC=$ac_cv_prog_BUILD_CC
4324 if test -n "$BUILD_CC"; then
4325 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4326 echo "${ECHO_T}$BUILD_CC" >&6; }
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4335 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4336 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4337 { (exit 1); exit 1; }; }
4338 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4340 echo 'int main () { return 0; }' > conftest.$ac_ext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4343 (eval $ac_build_link) 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; then
4347 for file in conftest.*; do
4349 *.c | *.o | *.obj | *.dSYM) ;;
4350 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4354 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4355 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4356 { (exit 1); exit 1; }; }
4359 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4364 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4365 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4366 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4367 ac_build_exeext=$BUILD_EXEEXT
4369 ac_build_prefix=${build_alias}-
4370 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4371 set dummy ${ac_build_prefix}g++; ac_word=$2
4372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 if test -n "$BUILD_CXX"; then
4378 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4398 if test -n "$BUILD_CXX"; then
4399 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4400 echo "${ECHO_T}$BUILD_CXX" >&6; }
4402 { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4407 if test -z "$BUILD_CXX"; then
4408 # Extract the first word of "g++", so it can be a program name with args.
4409 set dummy g++; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 if test -n "$BUILD_CXX"; then
4416 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_BUILD_CXX="g++"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4436 if test -n "$BUILD_CXX"; then
4437 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4438 echo "${ECHO_T}$BUILD_CXX" >&6; }
4440 { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4445 if test -z "$BUILD_CXX"; then
4446 # Extract the first word of "c++", so it can be a program name with args.
4447 set dummy c++; ac_word=$2
4448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4450 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test -n "$BUILD_CXX"; then
4454 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4465 ac_prog_rejected=yes
4468 ac_cv_prog_BUILD_CXX="c++"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 if test $ac_prog_rejected = yes; then
4477 # We found a bogon in the path, so make sure we never use it.
4478 set dummy $ac_cv_prog_BUILD_CXX
4480 if test $# != 0; then
4481 # We chose a different compiler from the bogus one.
4482 # However, it has the same basename, so the bogon will be chosen
4483 # first if we set BUILD_CXX to just the basename; use the full file name.
4485 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4490 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4491 if test -n "$BUILD_CXX"; then
4492 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4493 echo "${ECHO_T}$BUILD_CXX" >&6; }
4495 { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4503 LLVM_CROSS_COMPILING=0
4507 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4518 # Check whether --enable-libcpp was given.
4519 if test "${enable_libcpp+set}" = set; then
4520 enableval=$enable_libcpp;
4525 case "$enableval" in
4526 yes) ENABLE_LIBCPP=1
4530 default) ENABLE_LIBCPP=0
4532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4533 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4534 { (exit 1); exit 1; }; } ;;
4537 # Check whether --enable-compiler-version-checks was given.
4538 if test "${enable_compiler_version_checks+set}" = set; then
4539 enableval=$enable_compiler_version_checks;
4544 case "$enableval" in
4549 ac_cpp='$CXXCPP $CPPFLAGS'
4550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4554 case "$llvm_cv_cxx_compiler" in
4556 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4557 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4558 cat >conftest.$ac_ext <<_ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4565 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4566 #error This version of Clang is too old to build LLVM
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4577 (eval "$ac_compile") 2>conftest.er1
4579 grep -v '^ *+' conftest.er1 >conftest.err
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4585 { (case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590 (eval "$ac_try") 2>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_try") 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 { echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6; }
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612 { { echo "$as_me:$LINENO: error:
4613 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4614 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4615 bypass these sanity checks." >&5
4616 echo "$as_me: error:
4617 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4618 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4619 bypass these sanity checks." >&2;}
4620 { (exit 1); exit 1; }; }
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 if test "$ENABLE_LIBCPP" -eq 0 ; then
4626 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4627 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4628 llvm_cv_old_cxxflags="$CXXFLAGS"
4629 CXXFLAGS="$CXXFLAGS -std=c++0x"
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4638 std::atomic<float> x(0.0f);
4639 int main() { return (float)x; }
4642 rm -f conftest.$ac_objext conftest$ac_exeext
4643 if { (ac_try="$ac_link"
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649 (eval "$ac_link") 2>conftest.er1
4651 grep -v '^ *+' conftest.er1 >conftest.err
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4657 { (case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_try") 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; } &&
4666 { ac_try='test -s conftest$ac_exeext'
4667 { (case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_try") 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 { echo "$as_me:$LINENO: result: yes" >&5
4677 echo "${ECHO_T}yes" >&6; }
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4684 { { echo "$as_me:$LINENO: error:
4685 We detected a missing feature in the standard C++ library that was known to be
4686 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4687 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4688 than 4.7. You will need to update your system and ensure Clang uses the newer
4691 If this error is incorrect or you need to force things to work, you may pass
4692 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4693 echo "$as_me: error:
4694 We detected a missing feature in the standard C++ library that was known to be
4695 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4696 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4697 than 4.7. You will need to update your system and ensure Clang uses the newer
4700 If this error is incorrect or you need to force things to work, you may pass
4701 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4702 { (exit 1); exit 1; }; }
4705 rm -f core conftest.err conftest.$ac_objext \
4706 conftest$ac_exeext conftest.$ac_ext
4707 CXXFLAGS="$llvm_cv_old_cxxflags"
4711 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4712 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4720 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4721 #error This version of GCC is too old to build LLVM
4725 rm -f conftest.$ac_objext
4726 if { (ac_try="$ac_compile"
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_compile") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4740 { (case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_try") 2>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_try") 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 { echo "$as_me:$LINENO: result: yes" >&5
4760 echo "${ECHO_T}yes" >&6; }
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 { echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6; }
4767 { { echo "$as_me:$LINENO: error:
4768 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4769 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4770 bypass these sanity checks." >&5
4771 echo "$as_me: error:
4772 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4773 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4774 bypass these sanity checks." >&2;}
4775 { (exit 1); exit 1; }; }
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4792 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4793 { (exit 1); exit 1; }; }
4797 # Check whether --enable-cxx1y was given.
4798 if test "${enable_cxx1y+set}" = set; then
4799 enableval=$enable_cxx1y;
4804 case "$enableval" in
4809 default) ENABLE_CXX1Y=0
4811 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4813 { (exit 1); exit 1; }; } ;;
4816 # Check whether --enable-split-dwarf was given.
4817 if test "${enable_split_dwarf+set}" = set; then
4818 enableval=$enable_split_dwarf;
4823 case "$enableval" in
4824 yes) ENABLE_SPLIT_DWARF=1
4826 no) ENABLE_SPLIT_DWARF=0
4828 default) ENABLE_SPLIT_DWARF=0
4830 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4831 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4832 { (exit 1); exit 1; }; } ;;
4836 # Check whether --enable-clang-arcmt was given.
4837 if test "${enable_clang_arcmt+set}" = set; then
4838 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4843 case "$enableval" in
4844 yes) ENABLE_CLANG_ARCMT=1
4846 no) ENABLE_CLANG_ARCMT=0
4848 default) ENABLE_CLANG_ARCMT=1
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4855 clang_plugin_support="yes"
4856 # Check whether --enable-clang-plugin-support was given.
4857 if test "${enable_clang_plugin_support+set}" = set; then
4858 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4863 case "$enableval" in
4864 yes) CLANG_PLUGIN_SUPPORT=1
4866 no) CLANG_PLUGIN_SUPPORT=0
4868 default) CLANG_PLUGIN_SUPPORT=1
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4875 clang_static_analyzer="yes"
4876 # Check whether --enable-clang-static-analyzer was given.
4877 if test "${enable_clang_static_analyzer+set}" = set; then
4878 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4883 case "$enableval" in
4884 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4887 if test ${clang_arcmt} != "no" ; then
4888 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4889 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4890 { (exit 1); exit 1; }; }
4892 ENABLE_CLANG_STATIC_ANALYZER=0
4895 default) ENABLE_CLANG_STATIC_ANALYZER=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4902 # Check whether --enable-optimized was given.
4903 if test "${enable_optimized+set}" = set; then
4904 enableval=$enable_optimized;
4909 if test ${enableval} = "no" ; then
4913 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4917 # Check whether --enable-profiling was given.
4918 if test "${enable_profiling+set}" = set; then
4919 enableval=$enable_profiling;
4924 if test ${enableval} = "no" ; then
4928 ENABLE_PROFILING=ENABLE_PROFILING=1
4932 # Check whether --enable-assertions was given.
4933 if test "${enable_assertions+set}" = set; then
4934 enableval=$enable_assertions;
4939 if test ${enableval} = "yes" ; then
4943 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4947 # Check whether --enable-werror was given.
4948 if test "${enable_werror+set}" = set; then
4949 enableval=$enable_werror;
4954 case "$enableval" in
4955 yes) ENABLE_WERROR=1
4959 default) ENABLE_WERROR=0
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4966 # Check whether --enable-expensive-checks was given.
4967 if test "${enable_expensive_checks+set}" = set; then
4968 enableval=$enable_expensive_checks;
4973 if test ${enableval} = "yes" ; then
4974 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4976 EXPENSIVE_CHECKS=yes
4979 ENABLE_EXPENSIVE_CHECKS=
4985 # Check whether --enable-debug-runtime was given.
4986 if test "${enable_debug_runtime+set}" = set; then
4987 enableval=$enable_debug_runtime;
4992 if test ${enableval} = "no" ; then
4996 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5000 # Check whether --enable-debug-symbols was given.
5001 if test "${enable_debug_symbols+set}" = set; then
5002 enableval=$enable_debug_symbols;
5007 if test ${enableval} = "no" ; then
5011 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5015 # Check whether --enable-keep-symbols was given.
5016 if test "${enable_keep_symbols+set}" = set; then
5017 enableval=$enable_keep_symbols;
5022 if test ${enableval} = "no" ; then
5026 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5030 # Check whether --enable-jit was given.
5031 if test "${enable_jit+set}" = set; then
5032 enableval=$enable_jit;
5037 if test ${enableval} = "no"
5042 case "$llvm_cv_target_arch" in
5043 x86) TARGET_HAS_JIT=1
5045 Sparc) TARGET_HAS_JIT=0
5047 PowerPC) TARGET_HAS_JIT=1
5049 x86_64) TARGET_HAS_JIT=1
5051 ARM) TARGET_HAS_JIT=1
5053 Mips) TARGET_HAS_JIT=1
5055 XCore) TARGET_HAS_JIT=0
5057 MSP430) TARGET_HAS_JIT=0
5059 Hexagon) TARGET_HAS_JIT=0
5061 NVPTX) TARGET_HAS_JIT=0
5063 SystemZ) TARGET_HAS_JIT=1
5070 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5071 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5074 # Check whether --enable-docs was given.
5075 if test "${enable_docs+set}" = set; then
5076 enableval=$enable_docs;
5081 case "$enableval" in
5086 default) ENABLE_DOCS=1
5088 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5090 { (exit 1); exit 1; }; } ;;
5093 # Check whether --enable-doxygen was given.
5094 if test "${enable_doxygen+set}" = set; then
5095 enableval=$enable_doxygen;
5100 case "$enableval" in
5101 yes) ENABLE_DOXYGEN=1
5103 no) ENABLE_DOXYGEN=0
5105 default) ENABLE_DOXYGEN=0
5107 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5109 { (exit 1); exit 1; }; } ;;
5112 # Check whether --enable-threads was given.
5113 if test "${enable_threads+set}" = set; then
5114 enableval=$enable_threads;
5119 case "$enableval" in
5120 yes) LLVM_ENABLE_THREADS=1
5122 no) LLVM_ENABLE_THREADS=0
5124 default) LLVM_ENABLE_THREADS=1
5126 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5128 { (exit 1); exit 1; }; } ;;
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5136 # Check whether --enable-pthreads was given.
5137 if test "${enable_pthreads+set}" = set; then
5138 enableval=$enable_pthreads;
5143 case "$enableval" in
5144 yes) ENABLE_PTHREADS=1
5146 no) ENABLE_PTHREADS=0
5148 default) ENABLE_PTHREADS=1
5150 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5151 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5152 { (exit 1); exit 1; }; } ;;
5155 # Check whether --enable-zlib was given.
5156 if test "${enable_zlib+set}" = set; then
5157 enableval=$enable_zlib;
5162 case "$enableval" in
5163 yes) LLVM_ENABLE_ZLIB=1
5165 no) LLVM_ENABLE_ZLIB=0
5167 default) LLVM_ENABLE_ZLIB=1
5169 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5171 { (exit 1); exit 1; }; } ;;
5174 cat >>confdefs.h <<_ACEOF
5175 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5179 # Check whether --enable-pic was given.
5180 if test "${enable_pic+set}" = set; then
5181 enableval=$enable_pic;
5186 case "$enableval" in
5191 default) ENABLE_PIC=1
5193 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5195 { (exit 1); exit 1; }; } ;;
5198 cat >>confdefs.h <<_ACEOF
5199 #define ENABLE_PIC $ENABLE_PIC
5203 # Check whether --enable-shared was given.
5204 if test "${enable_shared+set}" = set; then
5205 enableval=$enable_shared;
5210 case "$enableval" in
5211 yes) ENABLE_SHARED=1
5215 default) ENABLE_SHARED=0
5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5219 { (exit 1); exit 1; }; } ;;
5222 # Check whether --enable-embed-stdcxx was given.
5223 if test "${enable_embed_stdcxx+set}" = set; then
5224 enableval=$enable_embed_stdcxx;
5229 case "$enableval" in
5230 yes) ENABLE_EMBED_STDCXX=1
5232 no) ENABLE_EMBED_STDCXX=0
5234 default) ENABLE_EMBED_STDCXX=0
5236 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5237 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5238 { (exit 1); exit 1; }; } ;;
5241 # Check whether --enable-timestamps was given.
5242 if test "${enable_timestamps+set}" = set; then
5243 enableval=$enable_timestamps;
5248 case "$enableval" in
5249 yes) ENABLE_TIMESTAMPS=1
5251 no) ENABLE_TIMESTAMPS=0
5253 default) ENABLE_TIMESTAMPS=1
5255 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5256 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5257 { (exit 1); exit 1; }; } ;;
5260 cat >>confdefs.h <<_ACEOF
5261 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5265 # Check whether --enable-backtraces was given.
5266 if test "${enable_backtraces+set}" = set; then
5267 enableval=$enable_backtraces; case "$enableval" in
5268 yes) llvm_cv_enable_backtraces="yes" ;;
5269 no) llvm_cv_enable_backtraces="no" ;;
5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
5275 llvm_cv_enable_backtraces="yes"
5278 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5280 cat >>confdefs.h <<\_ACEOF
5281 #define ENABLE_BACKTRACES 1
5286 # Check whether --enable-crash-overrides was given.
5287 if test "${enable_crash_overrides+set}" = set; then
5288 enableval=$enable_crash_overrides; case "$enableval" in
5289 yes) llvm_cv_enable_crash_overrides="yes" ;;
5290 no) llvm_cv_enable_crash_overrides="no" ;;
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5296 llvm_cv_enable_crash_overrides="yes"
5299 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5301 cat >>confdefs.h <<\_ACEOF
5302 #define ENABLE_CRASH_OVERRIDES 1
5307 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5308 ALL_TARGETS=$ALL_TARGETS
5312 # Check whether --enable-targets was given.
5313 if test "${enable_targets+set}" = set; then
5314 enableval=$enable_targets;
5319 if test "$enableval" = host-only ; then
5322 case "$enableval" in
5323 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5324 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5326 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5332 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5333 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5338 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5339 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5340 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5341 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5342 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5343 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5344 host) case "$llvm_cv_target_arch" in
5345 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5347 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5348 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5349 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5350 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5351 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5352 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5353 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5354 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5355 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5356 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5357 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5358 echo "$as_me: error: Can not set target to build" >&2;}
5359 { (exit 1); exit 1; }; } ;;
5361 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5362 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5363 { (exit 1); exit 1; }; } ;;
5369 # Check whether --enable-experimental-targets was given.
5370 if test "${enable_experimental_targets+set}" = set; then
5371 enableval=$enable_experimental_targets;
5377 if test ${enableval} != "disable"
5379 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5382 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5385 for a_target in $TARGETS_TO_BUILD; do
5386 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5392 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5394 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5395 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5396 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5422 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5429 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5439 LLVM_ENUM_TARGETS=""
5440 LLVM_ENUM_ASM_PRINTERS=""
5441 LLVM_ENUM_ASM_PARSERS=""
5442 LLVM_ENUM_DISASSEMBLERS=""
5443 for target_to_build in $TARGETS_TO_BUILD; do
5444 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5445 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5446 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5448 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5451 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5461 # Check whether --with-optimize-option was given.
5462 if test "${with_optimize_option+set}" = set; then
5463 withval=$with_optimize_option;
5468 { echo "$as_me:$LINENO: checking optimization flags" >&5
5469 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5472 case "$llvm_cv_os_type" in
5473 FreeBSD) optimize_option=-O2 ;;
5474 MingW) optimize_option=-O2 ;;
5475 *) optimize_option=-O3 ;;
5477 *) optimize_option="$withval" ;;
5479 OPTIMIZE_OPTION=$optimize_option
5481 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5482 echo "${ECHO_T}$optimize_option" >&6; }
5485 # Check whether --with-extra-options was given.
5486 if test "${with_extra_options+set}" = set; then
5487 withval=$with_extra_options;
5493 default) EXTRA_OPTIONS= ;;
5494 *) EXTRA_OPTIONS=$withval ;;
5496 EXTRA_OPTIONS=$EXTRA_OPTIONS
5500 # Check whether --with-extra-ld-options was given.
5501 if test "${with_extra_ld_options+set}" = set; then
5502 withval=$with_extra_ld_options;
5508 default) EXTRA_LD_OPTIONS= ;;
5509 *) EXTRA_LD_OPTIONS=$withval ;;
5511 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5514 # Check whether --enable-bindings was given.
5515 if test "${enable_bindings+set}" = set; then
5516 enableval=$enable_bindings;
5521 BINDINGS_TO_BUILD=""
5522 case "$enableval" in
5523 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5524 all ) BINDINGS_TO_BUILD="ocaml" ;;
5525 none | no) BINDINGS_TO_BUILD="" ;;
5526 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527 case "$a_binding" in
5528 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5529 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531 { (exit 1); exit 1; }; } ;;
5538 # Check whether --with-ocaml-libdir was given.
5539 if test "${with_ocaml_libdir+set}" = set; then
5540 withval=$with_ocaml_libdir;
5546 auto) with_ocaml_libdir="$withval" ;;
5547 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5548 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5554 # Check whether --with-clang-srcdir was given.
5555 if test "${with_clang_srcdir+set}" = set; then
5556 withval=$with_clang_srcdir;
5562 -) clang_src_root="" ;;
5563 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564 *) clang_src_root="$ac_pwd/$withval" ;;
5566 CLANG_SRC_ROOT=$clang_src_root
5570 # Check whether --with-clang-resource-dir was given.
5571 if test "${with_clang_resource_dir+set}" = set; then
5572 withval=$with_clang_resource_dir;
5578 cat >>confdefs.h <<_ACEOF
5579 #define CLANG_RESOURCE_DIR "$withval"
5584 # Check whether --with-c-include-dirs was given.
5585 if test "${with_c_include_dirs+set}" = set; then
5586 withval=$with_c_include_dirs;
5592 cat >>confdefs.h <<_ACEOF
5593 #define C_INCLUDE_DIRS "$withval"
5597 # Clang normally uses the system c++ headers and libraries. With this option,
5598 # clang will use the ones provided by a gcc installation instead. This option should
5599 # be passed the same value that was used with --prefix when configuring gcc.
5601 # Check whether --with-gcc-toolchain was given.
5602 if test "${with_gcc_toolchain+set}" = set; then
5603 withval=$with_gcc_toolchain;
5609 cat >>confdefs.h <<_ACEOF
5610 #define GCC_INSTALL_PREFIX "$withval"
5615 # Check whether --with-default-sysroot was given.
5616 if test "${with_default_sysroot+set}" = set; then
5617 withval=$with_default_sysroot;
5623 cat >>confdefs.h <<_ACEOF
5624 #define DEFAULT_SYSROOT "$withval"
5629 # Check whether --with-binutils-include was given.
5630 if test "${with_binutils_include+set}" = set; then
5631 withval=$with_binutils_include;
5637 default) WITH_BINUTILS_INCDIR=default ;;
5638 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5639 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641 { (exit 1); exit 1; }; } ;;
5643 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5646 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5648 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650 { (exit 1); exit 1; }; };
5655 # Check whether --with-bug-report-url was given.
5656 if test "${with_bug_report_url+set}" = set; then
5657 withval=$with_bug_report_url;
5659 withval="http://llvm.org/bugs/"
5663 cat >>confdefs.h <<_ACEOF
5664 #define BUG_REPORT_URL "$withval"
5668 # Check whether --enable-terminfo was given.
5669 if test "${enable_terminfo+set}" = set; then
5670 enableval=$enable_terminfo; case "$enableval" in
5671 yes) llvm_cv_enable_terminfo="yes" ;;
5672 no) llvm_cv_enable_terminfo="no" ;;
5673 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5674 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5675 { (exit 1); exit 1; }; } ;;
5678 llvm_cv_enable_terminfo="yes"
5681 case "$llvm_cv_enable_terminfo" in
5682 yes) ENABLE_TERMINFO=1
5684 no) ENABLE_TERMINFO=0
5688 # Check whether --enable-libedit was given.
5689 if test "${enable_libedit+set}" = set; then
5690 enableval=$enable_libedit; case "$enableval" in
5691 yes) llvm_cv_enable_libedit="yes" ;;
5692 no) llvm_cv_enable_libedit="no" ;;
5693 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5694 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5695 { (exit 1); exit 1; }; } ;;
5698 llvm_cv_enable_libedit="yes"
5702 # Check whether --enable-libffi was given.
5703 if test "${enable_libffi+set}" = set; then
5704 enableval=$enable_libffi; case "$enableval" in
5705 yes) llvm_cv_enable_libffi="yes" ;;
5706 no) llvm_cv_enable_libffi="no" ;;
5707 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5708 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5709 { (exit 1); exit 1; }; } ;;
5712 llvm_cv_enable_libffi=no
5717 # Check whether --with-internal-prefix was given.
5718 if test "${with_internal_prefix+set}" = set; then
5719 withval=$with_internal_prefix;
5724 INTERNAL_PREFIX=$withval
5728 { echo "$as_me:$LINENO: checking for GNU make" >&5
5729 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5730 if test "${llvm_cv_gnu_make_command+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 llvm_cv_gnu_make_command=''
5734 for a in "$MAKE" make gmake gnumake ; do
5735 if test -z "$a" ; then continue ; fi ;
5736 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5738 llvm_cv_gnu_make_command=$a ;
5743 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5744 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5745 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5749 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5750 echo "${ECHO_T}\"Not found\"" >&6; };
5754 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5757 if test "$LN_S" = "ln -s"; then
5758 { echo "$as_me:$LINENO: result: yes" >&5
5759 echo "${ECHO_T}yes" >&6; }
5761 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5762 echo "${ECHO_T}no, using $LN_S" >&6; }
5765 # Extract the first word of "nm", so it can be a program name with args.
5766 set dummy nm; ac_word=$2
5767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5769 if test "${ac_cv_path_NM+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5797 if test -n "$NM"; then
5798 { echo "$as_me:$LINENO: result: $NM" >&5
5799 echo "${ECHO_T}$NM" >&6; }
5801 { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5806 # Extract the first word of "cmp", so it can be a program name with args.
5807 set dummy cmp; ac_word=$2
5808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810 if test "${ac_cv_path_CMP+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5825 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5838 if test -n "$CMP"; then
5839 { echo "$as_me:$LINENO: result: $CMP" >&5
5840 echo "${ECHO_T}$CMP" >&6; }
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5847 # Extract the first word of "cp", so it can be a program name with args.
5848 set dummy cp; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_path_CP+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5879 if test -n "$CP"; then
5880 { echo "$as_me:$LINENO: result: $CP" >&5
5881 echo "${ECHO_T}$CP" >&6; }
5883 { echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6; }
5888 # Extract the first word of "date", so it can be a program name with args.
5889 set dummy date; ac_word=$2
5890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5892 if test "${ac_cv_path_DATE+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5907 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5919 DATE=$ac_cv_path_DATE
5920 if test -n "$DATE"; then
5921 { echo "$as_me:$LINENO: result: $DATE" >&5
5922 echo "${ECHO_T}$DATE" >&6; }
5924 { echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6; }
5929 # Extract the first word of "find", so it can be a program name with args.
5930 set dummy find; ac_word=$2
5931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5933 if test "${ac_cv_path_FIND+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5948 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5960 FIND=$ac_cv_path_FIND
5961 if test -n "$FIND"; then
5962 { echo "$as_me:$LINENO: result: $FIND" >&5
5963 echo "${ECHO_T}$FIND" >&6; }
5965 { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5970 # Extract the first word of "grep", so it can be a program name with args.
5971 set dummy grep; ac_word=$2
5972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5974 if test "${ac_cv_path_GREP+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5989 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6001 GREP=$ac_cv_path_GREP
6002 if test -n "$GREP"; then
6003 { echo "$as_me:$LINENO: result: $GREP" >&5
6004 echo "${ECHO_T}$GREP" >&6; }
6006 { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6011 # Extract the first word of "mkdir", so it can be a program name with args.
6012 set dummy mkdir; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_path_MKDIR+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6042 MKDIR=$ac_cv_path_MKDIR
6043 if test -n "$MKDIR"; then
6044 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6045 echo "${ECHO_T}$MKDIR" >&6; }
6047 { echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6; }
6052 # Extract the first word of "mv", so it can be a program name with args.
6053 set dummy mv; ac_word=$2
6054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056 if test "${ac_cv_path_MV+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6084 if test -n "$MV"; then
6085 { echo "$as_me:$LINENO: result: $MV" >&5
6086 echo "${ECHO_T}$MV" >&6; }
6088 { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_RANLIB+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 if test -n "$RANLIB"; then
6102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 RANLIB=$ac_cv_prog_RANLIB
6122 if test -n "$RANLIB"; then
6123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6124 echo "${ECHO_T}$RANLIB" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6132 if test -z "$ac_cv_prog_RANLIB"; then
6133 ac_ct_RANLIB=$RANLIB
6134 # Extract the first word of "ranlib", so it can be a program name with args.
6135 set dummy ranlib; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$ac_ct_RANLIB"; then
6142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_RANLIB="ranlib"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6162 if test -n "$ac_ct_RANLIB"; then
6163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6170 if test "x$ac_ct_RANLIB" = x; then
6173 case $cross_compiling:$ac_tool_warned in
6175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176 whose name does not start with the host triplet. If you think this
6177 configuration is useful to you, please write to autoconf@gnu.org." >&5
6178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet. If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6181 ac_tool_warned=yes ;;
6183 RANLIB=$ac_ct_RANLIB
6186 RANLIB="$ac_cv_prog_RANLIB"
6189 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}ar; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_AR+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 if test -n "$AR"; then
6198 ac_cv_prog_AR="$AR" # Let the user override the test.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_AR="${ac_tool_prefix}ar"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 if test -n "$AR"; then
6219 { echo "$as_me:$LINENO: result: $AR" >&5
6220 echo "${ECHO_T}$AR" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6228 if test -z "$ac_cv_prog_AR"; then
6230 # Extract the first word of "ar", so it can be a program name with args.
6231 set dummy ar; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test -n "$ac_ct_AR"; then
6238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_ac_ct_AR="ar"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6258 if test -n "$ac_ct_AR"; then
6259 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6260 echo "${ECHO_T}$ac_ct_AR" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6266 if test "x$ac_ct_AR" = x; then
6269 case $cross_compiling:$ac_tool_warned in
6271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272 whose name does not start with the host triplet. If you think this
6273 configuration is useful to you, please write to autoconf@gnu.org." >&5
6274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet. If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277 ac_tool_warned=yes ;;
6285 # Extract the first word of "rm", so it can be a program name with args.
6286 set dummy rm; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_path_RM+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6317 if test -n "$RM"; then
6318 { echo "$as_me:$LINENO: result: $RM" >&5
6319 echo "${ECHO_T}$RM" >&6; }
6321 { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6326 # Extract the first word of "sed", so it can be a program name with args.
6327 set dummy sed; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_SED+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6358 if test -n "$SED"; then
6359 { echo "$as_me:$LINENO: result: $SED" >&5
6360 echo "${ECHO_T}$SED" >&6; }
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6367 # Extract the first word of "tar", so it can be a program name with args.
6368 set dummy tar; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_path_TAR+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6399 if test -n "$TAR"; then
6400 { echo "$as_me:$LINENO: result: $TAR" >&5
6401 echo "${ECHO_T}$TAR" >&6; }
6403 { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6408 # Extract the first word of "pwd", so it can be a program name with args.
6409 set dummy pwd; ac_word=$2
6410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6412 if test "${ac_cv_path_BINPWD+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6427 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6439 BINPWD=$ac_cv_path_BINPWD
6440 if test -n "$BINPWD"; then
6441 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6442 echo "${ECHO_T}$BINPWD" >&6; }
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6450 # Extract the first word of "dot", so it can be a program name with args.
6451 set dummy dot; ac_word=$2
6452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454 if test "${ac_cv_path_DOT+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6482 if test -n "$DOT"; then
6483 { echo "$as_me:$LINENO: result: $DOT" >&5
6484 echo "${ECHO_T}$DOT" >&6; }
6486 { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6491 if test "$DOT" != "echo dot" ; then
6493 cat >>confdefs.h <<\_ACEOF
6497 if test "$llvm_cv_os_type" = "MingW" ; then
6498 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6501 cat >>confdefs.h <<_ACEOF
6502 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6507 # Find a good install program. We prefer a C program (faster),
6508 # so one script is as good as another. But avoid the broken or
6509 # incompatible versions:
6510 # SysV /etc/install, /usr/sbin/install
6511 # SunOS /usr/etc/install
6512 # IRIX /sbin/install
6514 # AmigaOS /C/install, which installs bootblocks on floppy discs
6515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6518 # OS/2's system install, which has a completely different semantic
6519 # ./install, which can be erroneously created by make from ./install.sh.
6520 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6521 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6522 if test -z "$INSTALL"; then
6523 if test "${ac_cv_path_install+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 # Account for people who put trailing slashes in PATH elements.
6533 ./ | .// | /cC/* | \
6534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6535 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6538 # OSF1 and SCO ODT 3.0 have their own names for install.
6539 # Don't use installbsd from OSF since it installs stuff as root
6541 for ac_prog in ginstall scoinst install; do
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6544 if test $ac_prog = install &&
6545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6546 # AIX install. It has an incompatible calling convention.
6548 elif test $ac_prog = install &&
6549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6550 # program-specific install script used by HP pwplus--don't use.
6553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6566 if test "${ac_cv_path_install+set}" = set; then
6567 INSTALL=$ac_cv_path_install
6569 # As a last resort, use the slow shell script. Don't cache a
6570 # value for INSTALL within a source directory, because that will
6571 # break other packages using the cache if that directory is
6572 # removed, or if the value is a relative name.
6573 INSTALL=$ac_install_sh
6576 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6577 echo "${ECHO_T}$INSTALL" >&6; }
6579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6580 # It thinks the first close brace ends the variable substitution.
6581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6588 [\\/$]* | ?:[\\/]* ) ;;
6589 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6592 # Extract the first word of "bzip2", so it can be a program name with args.
6593 set dummy bzip2; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_path_BZIP2+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 BZIP2=$ac_cv_path_BZIP2
6623 if test -n "$BZIP2"; then
6624 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6625 echo "${ECHO_T}$BZIP2" >&6; }
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6632 # Extract the first word of "cat", so it can be a program name with args.
6633 set dummy cat; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_CAT+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 if test -n "$CAT"; then
6664 { echo "$as_me:$LINENO: result: $CAT" >&5
6665 echo "${ECHO_T}$CAT" >&6; }
6667 { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6672 # Extract the first word of "doxygen", so it can be a program name with args.
6673 set dummy doxygen; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 DOXYGEN=$ac_cv_path_DOXYGEN
6703 if test -n "$DOXYGEN"; then
6704 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6705 echo "${ECHO_T}$DOXYGEN" >&6; }
6707 { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6712 # Extract the first word of "groff", so it can be a program name with args.
6713 set dummy groff; ac_word=$2
6714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6716 if test "${ac_cv_path_GROFF+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 GROFF=$ac_cv_path_GROFF
6743 if test -n "$GROFF"; then
6744 { echo "$as_me:$LINENO: result: $GROFF" >&5
6745 echo "${ECHO_T}$GROFF" >&6; }
6747 { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6752 # Extract the first word of "gzip", so it can be a program name with args.
6753 set dummy gzip; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 GZIPBIN=$ac_cv_path_GZIPBIN
6783 if test -n "$GZIPBIN"; then
6784 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6785 echo "${ECHO_T}$GZIPBIN" >&6; }
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 # Extract the first word of "pdfroff", so it can be a program name with args.
6793 set dummy pdfroff; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_PDFROFF+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 PDFROFF=$ac_cv_path_PDFROFF
6823 if test -n "$PDFROFF"; then
6824 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6825 echo "${ECHO_T}$PDFROFF" >&6; }
6827 { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6832 # Extract the first word of "zip", so it can be a program name with args.
6833 set dummy zip; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_path_ZIP+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 if test -n "$ZIP"; then
6864 { echo "$as_me:$LINENO: result: $ZIP" >&5
6865 echo "${ECHO_T}$ZIP" >&6; }
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 # Extract the first word of "go", so it can be a program name with args.
6873 set dummy go; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_GO+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 if test -n "$GO"; then
6904 { echo "$as_me:$LINENO: result: $GO" >&5
6905 echo "${ECHO_T}$GO" >&6; }
6907 { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6912 for ac_prog in ocamlfind
6914 # Extract the first word of "$ac_prog", so it can be a program name with args.
6915 set dummy $ac_prog; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 OCAMLFIND=$ac_cv_path_OCAMLFIND
6945 if test -n "$OCAMLFIND"; then
6946 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6947 echo "${ECHO_T}$OCAMLFIND" >&6; }
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 test -n "$OCAMLFIND" && break
6957 for ac_prog in gas as
6959 # Extract the first word of "$ac_prog", so it can be a program name with args.
6960 set dummy $ac_prog; ac_word=$2
6961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963 if test "${ac_cv_path_GAS+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 if test -n "$GAS"; then
6991 { echo "$as_me:$LINENO: result: $GAS" >&5
6992 echo "${ECHO_T}$GAS" >&6; }
6994 { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6999 test -n "$GAS" && break
7003 { echo "$as_me:$LINENO: checking for linker version" >&5
7004 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7005 if test "${llvm_cv_link_version+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7012 if (echo "$version_string" | grep -q "ld64"); then
7013 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7015 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7019 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7020 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7022 cat >>confdefs.h <<_ACEOF
7023 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7029 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7030 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7031 if test "${llvm_cv_link_use_r+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 ac_cpp='$CPP $CPPFLAGS'
7036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041 CFLAGS="$CFLAGS -Wl,-R."
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (ac_try="$ac_link"
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_link") 2>conftest.er1
7066 grep -v '^ *+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7072 { (case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_try") 2>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest$ac_exeext'
7082 { (case "(($ac_try" in
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_try") 2>&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; }; then
7091 llvm_cv_link_use_r=yes
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7096 llvm_cv_link_use_r=no
7099 rm -f core conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext conftest.$ac_ext
7103 ac_cpp='$CPP $CPPFLAGS'
7104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7110 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7111 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7112 if test "$llvm_cv_link_use_r" = yes ; then
7114 cat >>confdefs.h <<\_ACEOF
7115 #define HAVE_LINK_R 1
7121 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7122 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7123 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 ac_cpp='$CPP $CPPFLAGS'
7128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7133 CFLAGS="$CFLAGS -rdynamic"
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (ac_try="$ac_link"
7152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153 *) ac_try_echo=$ac_try;;
7155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156 (eval "$ac_link") 2>conftest.er1
7158 grep -v '^ *+' conftest.er1 >conftest.err
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7164 { (case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_try") 2>&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try='test -s conftest$ac_exeext'
7174 { (case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_try") 2>&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 llvm_cv_link_use_export_dynamic=yes
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7188 llvm_cv_link_use_export_dynamic=no
7191 rm -f core conftest.err conftest.$ac_objext \
7192 conftest$ac_exeext conftest.$ac_ext
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7202 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7203 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7204 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7206 cat >>confdefs.h <<\_ACEOF
7207 #define HAVE_LINK_EXPORT_DYNAMIC 1
7213 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7214 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7215 if test "${llvm_cv_link_use_version_script+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 ac_cpp='$CPP $CPPFLAGS'
7220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226 # The following code is from the autoconf manual,
7227 # "11.13: Limitations of Usual Tools".
7228 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7229 # Use mktemp if possible; otherwise fall back on mkdir,
7230 # with $RANDOM to make collisions less likely.
7234 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7236 test -n "$tmp" && test -d "$tmp"
7238 tmp=$TMPDIR/foo$$-$RANDOM
7239 (umask 077 && mkdir "$tmp")
7242 echo "{" > "$tmp/export.map"
7243 echo " global: main;" >> "$tmp/export.map"
7244 echo " local: *;" >> "$tmp/export.map"
7245 echo "};" >> "$tmp/export.map"
7247 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7248 cat >conftest.$ac_ext <<_ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (ac_try="$ac_link"
7266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270 (eval "$ac_link") 2>conftest.er1
7272 grep -v '^ *+' conftest.er1 >conftest.err
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7278 { (case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_try") 2>&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest$ac_exeext'
7288 { (case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_try") 2>&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 llvm_cv_link_use_version_script=yes
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7302 llvm_cv_link_use_version_script=no
7305 rm -f core conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7307 rm "$tmp/export.map"
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7319 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7320 if test "$llvm_cv_link_use_version_script" = yes ; then
7321 HAVE_LINK_VERSION_SCRIPT=1
7327 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7328 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_GREP+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 # Extract the first word of "grep ggrep" to use in msg output
7333 if test -z "$GREP"; then
7334 set dummy grep ggrep; ac_prog_name=$2
7335 if test "${ac_cv_path_GREP+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 ac_path_GREP_found=false
7339 # Loop through the user's path and test for each of PROGNAME-LIST
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7344 test -z "$as_dir" && as_dir=.
7345 for ac_prog in grep ggrep; do
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7348 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7349 # Check for GNU ac_path_GREP and select it if it is found.
7350 # Check for GNU $ac_path_GREP
7351 case `"$ac_path_GREP" --version 2>&1` in
7353 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7356 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7359 cat "conftest.in" "conftest.in" >"conftest.tmp"
7360 mv "conftest.tmp" "conftest.in"
7361 cp "conftest.in" "conftest.nl"
7362 echo 'GREP' >> "conftest.nl"
7363 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7365 ac_count=`expr $ac_count + 1`
7366 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7367 # Best one so far, save it but keep looking for a better one
7368 ac_cv_path_GREP="$ac_path_GREP"
7369 ac_path_GREP_max=$ac_count
7371 # 10*(2^10) chars as input seems more than enough
7372 test $ac_count -gt 10 && break
7374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7378 $ac_path_GREP_found && break 3
7388 GREP="$ac_cv_path_GREP"
7389 if test -z "$GREP"; then
7390 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7391 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7392 { (exit 1); exit 1; }; }
7396 ac_cv_path_GREP=$GREP
7401 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7402 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7403 GREP="$ac_cv_path_GREP"
7406 { echo "$as_me:$LINENO: checking for egrep" >&5
7407 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_EGREP+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7412 then ac_cv_path_EGREP="$GREP -E"
7414 # Extract the first word of "egrep" to use in msg output
7415 if test -z "$EGREP"; then
7416 set dummy egrep; ac_prog_name=$2
7417 if test "${ac_cv_path_EGREP+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 ac_path_EGREP_found=false
7421 # Loop through the user's path and test for each of PROGNAME-LIST
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7426 test -z "$as_dir" && as_dir=.
7427 for ac_prog in egrep; do
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7430 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7431 # Check for GNU ac_path_EGREP and select it if it is found.
7432 # Check for GNU $ac_path_EGREP
7433 case `"$ac_path_EGREP" --version 2>&1` in
7435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7438 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7441 cat "conftest.in" "conftest.in" >"conftest.tmp"
7442 mv "conftest.tmp" "conftest.in"
7443 cp "conftest.in" "conftest.nl"
7444 echo 'EGREP' >> "conftest.nl"
7445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7447 ac_count=`expr $ac_count + 1`
7448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7449 # Best one so far, save it but keep looking for a better one
7450 ac_cv_path_EGREP="$ac_path_EGREP"
7451 ac_path_EGREP_max=$ac_count
7453 # 10*(2^10) chars as input seems more than enough
7454 test $ac_count -gt 10 && break
7456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7460 $ac_path_EGREP_found && break 3
7470 EGREP="$ac_cv_path_EGREP"
7471 if test -z "$EGREP"; then
7472 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7473 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7474 { (exit 1); exit 1; }; }
7478 ac_cv_path_EGREP=$EGREP
7484 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7485 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7486 EGREP="$ac_cv_path_EGREP"
7489 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7490 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7491 if test "${ac_cv_header_stdc+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 cat >conftest.$ac_ext <<_ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7520 (eval "$ac_compile") 2>conftest.er1
7522 grep -v '^ *+' conftest.er1 >conftest.err
7524 cat conftest.err >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } &&
7527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7528 { (case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_try") 2>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_try") 2>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_header_stdc=yes
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_cv_header_stdc=no
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 if test $ac_cv_header_stdc = yes; then
7558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7559 cat >conftest.$ac_ext <<_ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7569 $EGREP "memchr" >/dev/null 2>&1; then
7572 ac_cv_header_stdc=no
7578 if test $ac_cv_header_stdc = yes; then
7579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7580 cat >conftest.$ac_ext <<_ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7590 $EGREP "free" >/dev/null 2>&1; then
7593 ac_cv_header_stdc=no
7599 if test $ac_cv_header_stdc = yes; then
7600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7601 if test "$cross_compiling" = yes; then
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7612 #if ((' ' & 0x0FF) == 0x020)
7613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7616 # define ISLOWER(c) \
7617 (('a' <= (c) && (c) <= 'i') \
7618 || ('j' <= (c) && (c) <= 'r') \
7619 || ('s' <= (c) && (c) <= 'z'))
7620 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7623 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7628 for (i = 0; i < 256; i++)
7629 if (XOR (islower (i), ISLOWER (i))
7630 || toupper (i) != TOUPPER (i))
7635 rm -f conftest$ac_exeext
7636 if { (ac_try="$ac_link"
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642 (eval "$ac_link") 2>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7646 { (case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_try") 2>&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7657 echo "$as_me: program exited with status $ac_status" >&5
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7662 ac_cv_header_stdc=no
7664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7670 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7671 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7672 if test $ac_cv_header_stdc = yes; then
7674 cat >>confdefs.h <<\_ACEOF
7675 #define STDC_HEADERS 1
7680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7690 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7691 inttypes.h stdint.h unistd.h
7693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 cat >conftest.$ac_ext <<_ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7707 #include <$ac_header>
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7718 grep -v '^ *+' conftest.er1 >conftest.err
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } &&
7723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7724 { (case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_try") 2>&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest.$ac_objext'
7734 { (case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_try") 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; }; then
7743 eval "$as_ac_Header=yes"
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 eval "$as_ac_Header=no"
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 ac_res=`eval echo '${'$as_ac_Header'}'`
7754 { echo "$as_me:$LINENO: result: $ac_res" >&5
7755 echo "${ECHO_T}$ac_res" >&6; }
7756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7757 cat >>confdefs.h <<_ACEOF
7758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7767 for ac_header in errno.h
7769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 ac_res=`eval echo '${'$as_ac_Header'}'`
7777 { echo "$as_me:$LINENO: result: $ac_res" >&5
7778 echo "${ECHO_T}$ac_res" >&6; }
7780 # Is the header compilable?
7781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 #include <$ac_header>
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7801 grep -v '^ *+' conftest.er1 >conftest.err
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7807 { (case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_try") 2>&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } &&
7816 { ac_try='test -s conftest.$ac_objext'
7817 { (case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_try") 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_header_compiler=yes
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ac_header_compiler=no
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7836 echo "${ECHO_T}$ac_header_compiler" >&6; }
7838 # Is the header present?
7839 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 #include <$ac_header>
7849 if { (ac_try="$ac_cpp conftest.$ac_ext"
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } >/dev/null; then
7862 if test -s conftest.err; then
7863 ac_cpp_err=$ac_c_preproc_warn_flag
7864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7871 if test -z "$ac_cpp_err"; then
7872 ac_header_preproc=yes
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 ac_header_preproc=no
7880 rm -f conftest.err conftest.$ac_ext
7881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882 echo "${ECHO_T}$ac_header_preproc" >&6; }
7884 # So? What about this header?
7885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7891 ac_header_preproc=yes
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7907 ## ------------------------------------ ##
7908 ## Report this to http://llvm.org/bugs/ ##
7909 ## ------------------------------------ ##
7911 ) | sed "s/^/$as_me: WARNING: /" >&2
7914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 eval "$as_ac_Header=\$ac_header_preproc"
7921 ac_res=`eval echo '${'$as_ac_Header'}'`
7922 { echo "$as_me:$LINENO: result: $ac_res" >&5
7923 echo "${ECHO_T}$ac_res" >&6; }
7926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7927 cat >>confdefs.h <<_ACEOF
7928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7936 case "$llvm_cv_os_type" in
7937 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7938 Darwin) llvm_shlib_ext=.dylib ;;
7939 *) llvm_shlib_ext=.so ;;
7943 cat >>confdefs.h <<_ACEOF
7944 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7948 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7949 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7962 if test "$GCC" != "yes" && test "$ICC" != "yes"
7964 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7965 echo "$as_me: error: gcc|icc required but not found" >&2;}
7966 { (exit 1); exit 1; }; }
7969 if test "$GXX" != "yes" && test "$IXX" != "yes"
7971 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7972 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7973 { (exit 1); exit 1; }; }
7976 if test "$GCC" = "yes"
7978 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7986 #if !defined(__GNUC__) || __GNUC__ < 3
7987 #error Unsupported GCC version
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest.$ac_objext'
8017 { (case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_try") 2>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8032 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8033 { (exit 1); exit 1; }; }
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 if test -z "$llvm_cv_gnu_make_command"
8041 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8042 echo "$as_me: error: GNU Make required but not found" >&2;}
8043 { (exit 1); exit 1; }; }
8046 { echo "$as_me:$LINENO: result: ok" >&5
8047 echo "${ECHO_T}ok" >&6; }
8049 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8050 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8051 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8053 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8055 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8059 NO_MAYBE_UNINITIALIZED=
8060 if test "$GXX" = "yes"
8062 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8064 if test -z "$NO_MAYBE_UNINITIALIZED"
8066 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8072 llvm_cv_old_cxxflags="$CXXFLAGS"
8073 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8074 cat >conftest.$ac_ext <<_ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8083 int main() { return 0; }
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_compile") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8102 { (case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_try") 2>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest.$ac_objext'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8122 no_comment=-Wno-comment
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 NO_COMMENT=$no_comment
8134 CXXFLAGS="$llvm_cv_old_cxxflags"
8136 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8137 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8140 # Check whether --with-python was given.
8141 if test "${with_python+set}" = set; then
8142 withval=$with_python; PYTHON="$withval"
8146 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8147 { echo "$as_me:$LINENO: checking for python" >&5
8148 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8149 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8150 echo "${ECHO_T}user defined: $with_python" >&6; }
8152 if test -n "$PYTHON" ; then
8153 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8154 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8157 # Extract the first word of "python python2 python26", so it can be a program name with args.
8158 set dummy python python2 python26; ac_word=$2
8159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161 if test "${ac_cv_path_PYTHON+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8185 echo "${ECHO_T}not found" >&6; }
8186 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8187 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8188 { (exit 1); exit 1; }; }"
8192 PYTHON=$ac_cv_path_PYTHON
8193 if test -n "$PYTHON"; then
8194 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8195 echo "${ECHO_T}$PYTHON" >&6; }
8197 { echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6; }
8204 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8205 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8206 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8207 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8208 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8209 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8210 if test "$ac_python_version_major" -gt "2" || \
8211 (test "$ac_python_version_major" -eq "2" && \
8212 test "$ac_python_version_minor" -ge "5") ; then
8213 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8214 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8216 { echo "$as_me:$LINENO: result: not found" >&5
8217 echo "${ECHO_T}not found" >&6; }
8218 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8219 See \`config.log' for more details." >&5
8220 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8221 See \`config.log' for more details." >&2;}
8222 { (exit 1); exit 1; }; }
8227 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8228 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8229 if test "${ac_cv_lib_m_sin+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 ac_check_lib_save_LIBS=$LIBS
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 /* Override any GCC internal prototype to avoid an error.
8242 Use char because int might match the return type of a GCC
8243 builtin and then its argument prototype would still apply. */
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (ac_try="$ac_link"
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_link") 2>conftest.er1
8265 grep -v '^ *+' conftest.er1 >conftest.err
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8271 { (case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_try") 2>&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_try") 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8298 rm -f core conftest.err conftest.$ac_objext \
8299 conftest$ac_exeext conftest.$ac_ext
8300 LIBS=$ac_check_lib_save_LIBS
8302 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8303 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8304 if test $ac_cv_lib_m_sin = yes; then
8305 cat >>confdefs.h <<_ACEOF
8313 if test "$llvm_cv_os_type" = "MingW" ; then
8315 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8316 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8317 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 ac_check_lib_save_LIBS=$LIBS
8321 LIBS="-limagehlp $LIBS"
8322 cat >conftest.$ac_ext <<_ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8338 rm -f conftest.$ac_objext conftest$ac_exeext
8339 if { (ac_try="$ac_link"
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_link") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest$ac_exeext'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_cv_lib_imagehlp_main=yes
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 ac_cv_lib_imagehlp_main=no
8380 rm -f core conftest.err conftest.$ac_objext \
8381 conftest$ac_exeext conftest.$ac_ext
8382 LIBS=$ac_check_lib_save_LIBS
8384 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8385 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8386 if test $ac_cv_lib_imagehlp_main = yes; then
8387 cat >>confdefs.h <<_ACEOF
8388 #define HAVE_LIBIMAGEHLP 1
8391 LIBS="-limagehlp $LIBS"
8396 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8397 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8398 if test "${ac_cv_lib_psapi_main+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 ac_check_lib_save_LIBS=$LIBS
8402 LIBS="-lpsapi $LIBS"
8403 cat >conftest.$ac_ext <<_ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (ac_try="$ac_link"
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_link") 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
8433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_try") 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_lib_psapi_main=yes
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_cv_lib_psapi_main=no
8461 rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_lib_save_LIBS
8465 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8466 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8467 if test $ac_cv_lib_psapi_main = yes; then
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_LIBPSAPI 1
8472 LIBS="-lpsapi $LIBS"
8477 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8478 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8479 if test "${ac_cv_lib_shell32_main+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 ac_check_lib_save_LIBS=$LIBS
8483 LIBS="-lshell32 $LIBS"
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (ac_try="$ac_link"
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_link") 2>conftest.er1
8509 grep -v '^ *+' conftest.er1 >conftest.err
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8515 { (case "(($ac_try" in
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_try") 2>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; } &&
8524 { ac_try='test -s conftest$ac_exeext'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_try") 2>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_shell32_main=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_lib_shell32_main=no
8542 rm -f core conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_lib_save_LIBS
8546 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8547 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8548 if test $ac_cv_lib_shell32_main = yes; then
8549 cat >>confdefs.h <<_ACEOF
8550 #define HAVE_LIBSHELL32 1
8553 LIBS="-lshell32 $LIBS"
8559 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8560 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8561 if test "${ac_cv_search_dlopen+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 ac_func_search_save_LIBS=$LIBS
8565 cat >conftest.$ac_ext <<_ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8572 /* Override any GCC internal prototype to avoid an error.
8573 Use char because int might match the return type of a GCC
8574 builtin and then its argument prototype would still apply. */
8587 for ac_lib in '' dl; do
8588 if test -z "$ac_lib"; then
8589 ac_res="none required"
8592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (ac_try="$ac_link"
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_link") 2>conftest.er1
8603 grep -v '^ *+' conftest.er1 >conftest.err
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8609 { (case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_try") 2>&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest$ac_exeext'
8619 { (case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_try") 2>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 ac_cv_search_dlopen=$ac_res
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8636 rm -f core conftest.err conftest.$ac_objext \
8638 if test "${ac_cv_search_dlopen+set}" = set; then
8642 if test "${ac_cv_search_dlopen+set}" = set; then
8645 ac_cv_search_dlopen=no
8648 LIBS=$ac_func_search_save_LIBS
8650 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8651 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8652 ac_res=$ac_cv_search_dlopen
8653 if test "$ac_res" != no; then
8654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_DLOPEN 1
8665 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8666 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8670 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8671 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8672 if test "${ac_cv_search_clock_gettime+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 ac_func_search_save_LIBS=$LIBS
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8683 /* Override any GCC internal prototype to avoid an error.
8684 Use char because int might match the return type of a GCC
8685 builtin and then its argument prototype would still apply. */
8689 char clock_gettime ();
8693 return clock_gettime ();
8698 for ac_lib in '' rt; do
8699 if test -z "$ac_lib"; then
8700 ac_res="none required"
8703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8705 rm -f conftest.$ac_objext conftest$ac_exeext
8706 if { (ac_try="$ac_link"
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_link") 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8720 { (case "(($ac_try" in
8721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722 *) ac_try_echo=$ac_try;;
8724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725 (eval "$ac_try") 2>&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 ac_cv_search_clock_gettime=$ac_res
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8747 rm -f core conftest.err conftest.$ac_objext \
8749 if test "${ac_cv_search_clock_gettime+set}" = set; then
8753 if test "${ac_cv_search_clock_gettime+set}" = set; then
8756 ac_cv_search_clock_gettime=no
8759 LIBS=$ac_func_search_save_LIBS
8761 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8762 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8763 ac_res=$ac_cv_search_clock_gettime
8764 if test "$ac_res" != no; then
8765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8770 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8771 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8772 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8773 if test "${ac_cv_search_setupterm+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 ac_func_search_save_LIBS=$LIBS
8777 cat >conftest.$ac_ext <<_ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 /* Override any GCC internal prototype to avoid an error.
8785 Use char because int might match the return type of a GCC
8786 builtin and then its argument prototype would still apply. */
8794 return setupterm ();
8799 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8800 if test -z "$ac_lib"; then
8801 ac_res="none required"
8804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8806 rm -f conftest.$ac_objext conftest$ac_exeext
8807 if { (ac_try="$ac_link"
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_link") 2>conftest.er1
8815 grep -v '^ *+' conftest.er1 >conftest.err
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8821 { (case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_try") 2>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_try") 2>&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 ac_cv_search_setupterm=$ac_res
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8848 rm -f core conftest.err conftest.$ac_objext \
8850 if test "${ac_cv_search_setupterm+set}" = set; then
8854 if test "${ac_cv_search_setupterm+set}" = set; then
8857 ac_cv_search_setupterm=no
8860 LIBS=$ac_func_search_save_LIBS
8862 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8863 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8864 ac_res=$ac_cv_search_setupterm
8865 if test "$ac_res" != no; then
8866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8869 cat >>confdefs.h <<\_ACEOF
8870 #define HAVE_TERMINFO 1
8880 if test "$llvm_cv_enable_libedit" = "yes" ; then
8881 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8882 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8883 if test "${ac_cv_search_el_init+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_func_search_save_LIBS=$LIBS
8887 cat >conftest.$ac_ext <<_ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8894 /* Override any GCC internal prototype to avoid an error.
8895 Use char because int might match the return type of a GCC
8896 builtin and then its argument prototype would still apply. */
8909 for ac_lib in '' edit; do
8910 if test -z "$ac_lib"; then
8911 ac_res="none required"
8914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_link") 2>conftest.er1
8925 grep -v '^ *+' conftest.er1 >conftest.err
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931 { (case "(($ac_try" in
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936 (eval "$ac_try") 2>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest$ac_exeext'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_search_el_init=$ac_res
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8958 rm -f core conftest.err conftest.$ac_objext \
8960 if test "${ac_cv_search_el_init+set}" = set; then
8964 if test "${ac_cv_search_el_init+set}" = set; then
8967 ac_cv_search_el_init=no
8970 LIBS=$ac_func_search_save_LIBS
8972 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8973 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8974 ac_res=$ac_cv_search_el_init
8975 if test "$ac_res" != no; then
8976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8978 cat >>confdefs.h <<\_ACEOF
8979 #define HAVE_LIBEDIT 1
8986 if test "$llvm_cv_enable_libffi" = "yes" ; then
8987 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8988 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8989 if test "${ac_cv_search_ffi_call+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 ac_func_search_save_LIBS=$LIBS
8993 cat >conftest.$ac_ext <<_ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9000 /* Override any GCC internal prototype to avoid an error.
9001 Use char because int might match the return type of a GCC
9002 builtin and then its argument prototype would still apply. */
9015 for ac_lib in '' ffi; do
9016 if test -z "$ac_lib"; then
9017 ac_res="none required"
9020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (ac_try="$ac_link"
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029 (eval "$ac_link") 2>conftest.er1
9031 grep -v '^ *+' conftest.er1 >conftest.err
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9037 { (case "(($ac_try" in
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_try") 2>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_try") 2>&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 ac_cv_search_ffi_call=$ac_res
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9064 rm -f core conftest.err conftest.$ac_objext \
9066 if test "${ac_cv_search_ffi_call+set}" = set; then
9070 if test "${ac_cv_search_ffi_call+set}" = set; then
9073 ac_cv_search_ffi_call=no
9076 LIBS=$ac_func_search_save_LIBS
9078 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9079 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9080 ac_res=$ac_cv_search_ffi_call
9081 if test "$ac_res" != no; then
9082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9084 cat >>confdefs.h <<\_ACEOF
9085 #define HAVE_FFI_CALL 1
9089 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9090 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9091 { (exit 1); exit 1; }; }
9096 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9097 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9098 if test "${ac_cv_search_mallinfo+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 ac_func_search_save_LIBS=$LIBS
9102 cat >conftest.$ac_ext <<_ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9124 for ac_lib in '' malloc; do
9125 if test -z "$ac_lib"; then
9126 ac_res="none required"
9129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9131 rm -f conftest.$ac_objext conftest$ac_exeext
9132 if { (ac_try="$ac_link"
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_link") 2>conftest.er1
9140 grep -v '^ *+' conftest.er1 >conftest.err
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9146 { (case "(($ac_try" in
9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151 (eval "$ac_try") 2>&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } &&
9155 { ac_try='test -s conftest$ac_exeext'
9156 { (case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161 (eval "$ac_try") 2>&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_cv_search_mallinfo=$ac_res
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9173 rm -f core conftest.err conftest.$ac_objext \
9175 if test "${ac_cv_search_mallinfo+set}" = set; then
9179 if test "${ac_cv_search_mallinfo+set}" = set; then
9182 ac_cv_search_mallinfo=no
9185 LIBS=$ac_func_search_save_LIBS
9187 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9188 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9189 ac_res=$ac_cv_search_mallinfo
9190 if test "$ac_res" != no; then
9191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_MALLINFO 1
9200 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9202 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9203 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9204 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 ac_check_lib_save_LIBS=$LIBS
9208 LIBS="-lpthread $LIBS"
9209 cat >conftest.$ac_ext <<_ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9216 /* Override any GCC internal prototype to avoid an error.
9217 Use char because int might match the return type of a GCC
9218 builtin and then its argument prototype would still apply. */
9222 char pthread_mutex_init ();
9226 return pthread_mutex_init ();
9231 rm -f conftest.$ac_objext conftest$ac_exeext
9232 if { (ac_try="$ac_link"
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_link") 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9246 { (case "(($ac_try" in
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_try") 2>&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_try") 2>&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_cv_lib_pthread_pthread_mutex_init=yes
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_cv_lib_pthread_pthread_mutex_init=no
9273 rm -f core conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9277 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9278 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9279 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9280 cat >>confdefs.h <<_ACEOF
9281 #define HAVE_LIBPTHREAD 1
9284 LIBS="-lpthread $LIBS"
9288 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9289 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9290 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 ac_func_search_save_LIBS=$LIBS
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9301 /* Override any GCC internal prototype to avoid an error.
9302 Use char because int might match the return type of a GCC
9303 builtin and then its argument prototype would still apply. */
9307 char pthread_mutex_lock ();
9311 return pthread_mutex_lock ();
9316 for ac_lib in '' pthread; do
9317 if test -z "$ac_lib"; then
9318 ac_res="none required"
9321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (ac_try="$ac_link"
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_link") 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338 { (case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_try") 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; } &&
9347 { ac_try='test -s conftest$ac_exeext'
9348 { (case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_try") 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_cv_search_pthread_mutex_lock=$ac_res
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9365 rm -f core conftest.err conftest.$ac_objext \
9367 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9371 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9374 ac_cv_search_pthread_mutex_lock=no
9377 LIBS=$ac_func_search_save_LIBS
9379 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9380 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9381 ac_res=$ac_cv_search_pthread_mutex_lock
9382 if test "$ac_res" != no; then
9383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9385 cat >>confdefs.h <<\_ACEOF
9386 #define HAVE_PTHREAD_MUTEX_LOCK 1
9391 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9392 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9393 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 ac_func_search_save_LIBS=$LIBS
9397 cat >conftest.$ac_ext <<_ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9404 /* Override any GCC internal prototype to avoid an error.
9405 Use char because int might match the return type of a GCC
9406 builtin and then its argument prototype would still apply. */
9410 char pthread_rwlock_init ();
9414 return pthread_rwlock_init ();
9419 for ac_lib in '' pthread; do
9420 if test -z "$ac_lib"; then
9421 ac_res="none required"
9424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (ac_try="$ac_link"
9429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430 *) ac_try_echo=$ac_try;;
9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433 (eval "$ac_link") 2>conftest.er1
9435 grep -v '^ *+' conftest.er1 >conftest.err
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9441 { (case "(($ac_try" in
9442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446 (eval "$ac_try") 2>&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest$ac_exeext'
9451 { (case "(($ac_try" in
9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453 *) ac_try_echo=$ac_try;;
9455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456 (eval "$ac_try") 2>&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9460 ac_cv_search_pthread_rwlock_init=$ac_res
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9468 rm -f core conftest.err conftest.$ac_objext \
9470 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9474 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9477 ac_cv_search_pthread_rwlock_init=no
9480 LIBS=$ac_func_search_save_LIBS
9482 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9483 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9484 ac_res=$ac_cv_search_pthread_rwlock_init
9485 if test "$ac_res" != no; then
9486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9488 cat >>confdefs.h <<\_ACEOF
9489 #define HAVE_PTHREAD_RWLOCK_INIT 1
9494 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9495 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9496 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 ac_func_search_save_LIBS=$LIBS
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9507 /* Override any GCC internal prototype to avoid an error.
9508 Use char because int might match the return type of a GCC
9509 builtin and then its argument prototype would still apply. */
9513 char pthread_getspecific ();
9517 return pthread_getspecific ();
9522 for ac_lib in '' pthread; do
9523 if test -z "$ac_lib"; then
9524 ac_res="none required"
9527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_link") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544 { (case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_try") 2>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest$ac_exeext'
9554 { (case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_try") 2>&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_cv_search_pthread_getspecific=$ac_res
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9571 rm -f core conftest.err conftest.$ac_objext \
9573 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9577 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9580 ac_cv_search_pthread_getspecific=no
9583 LIBS=$ac_func_search_save_LIBS
9585 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9586 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9587 ac_res=$ac_cv_search_pthread_getspecific
9588 if test "$ac_res" != no; then
9589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9591 cat >>confdefs.h <<\_ACEOF
9592 #define HAVE_PTHREAD_GETSPECIFIC 1
9599 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9601 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9602 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9603 if test "${ac_cv_lib_z_compress2+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 ac_check_lib_save_LIBS=$LIBS
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9625 return compress2 ();
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_link") 2>conftest.er1
9639 grep -v '^ *+' conftest.er1 >conftest.err
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9645 { (case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_try") 2>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest$ac_exeext'
9655 { (case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_try") 2>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 ac_cv_lib_z_compress2=yes
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_lib_z_compress2=no
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9676 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9677 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9678 if test $ac_cv_lib_z_compress2 = yes; then
9679 cat >>confdefs.h <<_ACEOF
9690 # Check whether --with-oprofile was given.
9691 if test "${with_oprofile+set}" = set; then
9692 withval=$with_oprofile;
9696 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9700 *) llvm_cv_oppath="${withval}/lib/oprofile"
9701 CPPFLAGS="-I${withval}/include";;
9703 case $llvm_cv_os_type in
9705 if test -n "$llvm_cv_oppath" ; then
9706 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9707 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9708 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9709 if test "${ac_cv_search_bfd_init+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 ac_func_search_save_LIBS=$LIBS
9713 cat >conftest.$ac_ext <<_ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9720 /* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */
9735 for ac_lib in '' bfd; do
9736 if test -z "$ac_lib"; then
9737 ac_res="none required"
9740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest$ac_exeext'
9767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_try") 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_search_bfd_init=$ac_res
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9784 rm -f core conftest.err conftest.$ac_objext \
9786 if test "${ac_cv_search_bfd_init+set}" = set; then
9790 if test "${ac_cv_search_bfd_init+set}" = set; then
9793 ac_cv_search_bfd_init=no
9796 LIBS=$ac_func_search_save_LIBS
9798 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9799 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9800 ac_res=$ac_cv_search_bfd_init
9801 if test "$ac_res" != no; then
9802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9806 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9807 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9808 if test "${ac_cv_search_op_open_agent+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 ac_func_search_save_LIBS=$LIBS
9812 cat >conftest.$ac_ext <<_ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9825 char op_open_agent ();
9829 return op_open_agent ();
9834 for ac_lib in '' opagent; do
9835 if test -z "$ac_lib"; then
9836 ac_res="none required"
9839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_link") 2>conftest.er1
9850 grep -v '^ *+' conftest.er1 >conftest.err
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856 { (case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_try") 2>&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_search_op_open_agent=$ac_res
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9883 rm -f core conftest.err conftest.$ac_objext \
9885 if test "${ac_cv_search_op_open_agent+set}" = set; then
9889 if test "${ac_cv_search_op_open_agent+set}" = set; then
9892 ac_cv_search_op_open_agent=no
9895 LIBS=$ac_func_search_save_LIBS
9897 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9898 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9899 ac_res=$ac_cv_search_op_open_agent
9900 if test "$ac_res" != no; then
9901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9905 echo "Error! You need to have libopagent around."
9910 if test "${ac_cv_header_opagent_h+set}" = set; then
9911 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9912 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9913 if test "${ac_cv_header_opagent_h+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9917 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9919 # Is the header compilable?
9920 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9921 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9922 cat >conftest.$ac_ext <<_ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9928 $ac_includes_default
9929 #include <opagent.h>
9931 rm -f conftest.$ac_objext
9932 if { (ac_try="$ac_compile"
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_compile") 2>conftest.er1
9940 grep -v '^ *+' conftest.er1 >conftest.err
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946 { (case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_try") 2>&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest.$ac_objext'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_header_compiler=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_header_compiler=no
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9975 echo "${ECHO_T}$ac_header_compiler" >&6; }
9977 # Is the header present?
9978 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9979 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9980 cat >conftest.$ac_ext <<_ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 #include <opagent.h>
9988 if { (ac_try="$ac_cpp conftest.$ac_ext"
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } >/dev/null; then
10001 if test -s conftest.err; then
10002 ac_cpp_err=$ac_c_preproc_warn_flag
10003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10010 if test -z "$ac_cpp_err"; then
10011 ac_header_preproc=yes
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_header_preproc=no
10019 rm -f conftest.err conftest.$ac_ext
10020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10021 echo "${ECHO_T}$ac_header_preproc" >&6; }
10023 # So? What about this header?
10024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10026 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10027 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10028 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10029 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10030 ac_header_preproc=yes
10033 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10034 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10036 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10038 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10040 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10041 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10042 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10044 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10046 ## ------------------------------------ ##
10047 ## Report this to http://llvm.org/bugs/ ##
10048 ## ------------------------------------ ##
10050 ) | sed "s/^/$as_me: WARNING: /" >&2
10053 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10054 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10055 if test "${ac_cv_header_opagent_h+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 ac_cv_header_opagent_h=$ac_header_preproc
10060 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10061 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10064 if test $ac_cv_header_opagent_h = yes; then
10068 echo "Error! You need to have opagent.h around."
10076 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10077 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10078 { (exit 1); exit 1; }; } ;;
10089 cat >>confdefs.h <<_ACEOF
10090 #define LLVM_USE_OPROFILE $USE_OPROFILE
10095 # Check whether --with-intel-jitevents was given.
10096 if test "${with_intel_jitevents+set}" = set; then
10097 withval=$with_intel_jitevents;
10099 yes) USE_INTEL_JITEVENTS=1
10101 no) USE_INTEL_JITEVENTS=0
10103 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10104 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10105 { (exit 1); exit 1; }; };;
10108 case $llvm_cv_os_type in
10109 Linux|Win32|Cygwin|MingW) ;;
10110 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10111 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10112 { (exit 1); exit 1; }; };;
10115 case "$llvm_cv_target_arch" in
10117 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10118 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10119 { (exit 1); exit 1; }; };;
10124 USE_INTEL_JITEVENTS=0
10130 cat >>confdefs.h <<_ACEOF
10131 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10135 for ac_prog in xml2-config
10137 # Extract the first word of "$ac_prog", so it can be a program name with args.
10138 set dummy $ac_prog; ac_word=$2
10139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10141 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 if test -n "$XML2CONFIG"; then
10145 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10154 ac_cv_prog_XML2CONFIG="$ac_prog"
10155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10165 if test -n "$XML2CONFIG"; then
10166 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10167 echo "${ECHO_T}$XML2CONFIG" >&6; }
10169 { echo "$as_me:$LINENO: result: no" >&5
10170 echo "${ECHO_T}no" >&6; }
10174 test -n "$XML2CONFIG" && break
10178 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10179 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10180 if test "x$XML2CONFIG" = "x"; then
10181 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10182 echo "${ECHO_T}xml2-config not found" >&6; }
10184 LIBXML2_INC=`$XML2CONFIG --cflags`
10185 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10186 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10187 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10188 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10189 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-lxml2 $LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10207 char xmlReadFile ();
10211 return xmlReadFile ();
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_link") 2>conftest.er1
10225 grep -v '^ *+' conftest.er1 >conftest.err
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10231 { (case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_try") 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try='test -s conftest$ac_exeext'
10241 { (case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_try") 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 ac_cv_lib_xml2_xmlReadFile=yes
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10255 ac_cv_lib_xml2_xmlReadFile=no
10258 rm -f core conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10260 LIBS=$ac_check_lib_save_LIBS
10262 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10263 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10264 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10266 cat >>confdefs.h <<\_ACEOF
10267 #define CLANG_HAVE_LIBXML 1
10270 LIBXML2_LIBS="-lxml2"
10283 ac_header_dirent=no
10284 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10285 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10286 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10287 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 cat >conftest.$ac_ext <<_ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 #include <sys/types.h>
10309 rm -f conftest.$ac_objext
10310 if { (ac_try="$ac_compile"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_compile") 2>conftest.er1
10318 grep -v '^ *+' conftest.er1 >conftest.err
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324 { (case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_try") 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_try") 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 eval "$as_ac_Header=yes"
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 eval "$as_ac_Header=no"
10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353 ac_res=`eval echo '${'$as_ac_Header'}'`
10354 { echo "$as_me:$LINENO: result: $ac_res" >&5
10355 echo "${ECHO_T}$ac_res" >&6; }
10356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10357 cat >>confdefs.h <<_ACEOF
10358 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10361 ac_header_dirent=$ac_hdr; break
10365 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10366 if test $ac_header_dirent = dirent.h; then
10367 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10368 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10369 if test "${ac_cv_search_opendir+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 ac_func_search_save_LIBS=$LIBS
10373 cat >conftest.$ac_ext <<_ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10380 /* Override any GCC internal prototype to avoid an error.
10381 Use char because int might match the return type of a GCC
10382 builtin and then its argument prototype would still apply. */
10395 for ac_lib in '' dir; do
10396 if test -z "$ac_lib"; then
10397 ac_res="none required"
10400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (ac_try="$ac_link"
10404 case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10417 { (case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_try") 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; } &&
10426 { ac_try='test -s conftest$ac_exeext'
10427 { (case "(($ac_try" in
10428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432 (eval "$ac_try") 2>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
10436 ac_cv_search_opendir=$ac_res
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10444 rm -f core conftest.err conftest.$ac_objext \
10446 if test "${ac_cv_search_opendir+set}" = set; then
10450 if test "${ac_cv_search_opendir+set}" = set; then
10453 ac_cv_search_opendir=no
10455 rm conftest.$ac_ext
10456 LIBS=$ac_func_search_save_LIBS
10458 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10459 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10460 ac_res=$ac_cv_search_opendir
10461 if test "$ac_res" != no; then
10462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10467 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10468 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10469 if test "${ac_cv_search_opendir+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 ac_func_search_save_LIBS=$LIBS
10473 cat >conftest.$ac_ext <<_ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10480 /* Override any GCC internal prototype to avoid an error.
10481 Use char because int might match the return type of a GCC
10482 builtin and then its argument prototype would still apply. */
10495 for ac_lib in '' x; do
10496 if test -z "$ac_lib"; then
10497 ac_res="none required"
10500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10502 rm -f conftest.$ac_objext conftest$ac_exeext
10503 if { (ac_try="$ac_link"
10504 case "(($ac_try" in
10505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506 *) ac_try_echo=$ac_try;;
10508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10509 (eval "$ac_link") 2>conftest.er1
10511 grep -v '^ *+' conftest.er1 >conftest.err
10513 cat conftest.err >&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10517 { (case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_try") 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; } &&
10526 { ac_try='test -s conftest$ac_exeext'
10527 { (case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_try") 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
10536 ac_cv_search_opendir=$ac_res
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10544 rm -f core conftest.err conftest.$ac_objext \
10546 if test "${ac_cv_search_opendir+set}" = set; then
10550 if test "${ac_cv_search_opendir+set}" = set; then
10553 ac_cv_search_opendir=no
10555 rm conftest.$ac_ext
10556 LIBS=$ac_func_search_save_LIBS
10558 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10559 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10560 ac_res=$ac_cv_search_opendir
10561 if test "$ac_res" != no; then
10562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10568 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10569 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10570 if test "${ac_cv_header_mmap_anon+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 ac_cpp='$CPP $CPPFLAGS'
10575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 #include <sys/mman.h>
10586 #include <unistd.h>
10591 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10596 rm -f conftest.$ac_objext
10597 if { (ac_try="$ac_compile"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_compile") 2>conftest.er1
10605 grep -v '^ *+' conftest.er1 >conftest.err
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } &&
10610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10611 { (case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_try") 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; } &&
10620 { ac_try='test -s conftest.$ac_objext'
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_try") 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 ac_cv_header_mmap_anon=yes
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10635 ac_cv_header_mmap_anon=no
10638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640 ac_cpp='$CPP $CPPFLAGS'
10641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10647 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10648 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10649 if test "$ac_cv_header_mmap_anon" = yes; then
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_MMAP_ANONYMOUS 1
10657 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10658 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10659 if test "${ac_cv_header_stat_broken+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 cat >conftest.$ac_ext <<_ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10668 #include <sys/types.h>
10669 #include <sys/stat.h>
10671 #if defined S_ISBLK && defined S_IFDIR
10672 # if S_ISBLK (S_IFDIR)
10677 #if defined S_ISBLK && defined S_IFCHR
10678 # if S_ISBLK (S_IFCHR)
10683 #if defined S_ISLNK && defined S_IFREG
10684 # if S_ISLNK (S_IFREG)
10689 #if defined S_ISSOCK && defined S_IFREG
10690 # if S_ISSOCK (S_IFREG)
10696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10697 $EGREP "You lose" >/dev/null 2>&1; then
10698 ac_cv_header_stat_broken=yes
10700 ac_cv_header_stat_broken=no
10705 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10706 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10707 if test $ac_cv_header_stat_broken = yes; then
10709 cat >>confdefs.h <<\_ACEOF
10710 #define STAT_MACROS_BROKEN 1
10715 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10716 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10717 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 cat >conftest.$ac_ext <<_ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 #include <sys/types.h>
10727 #include <sys/wait.h>
10728 #ifndef WEXITSTATUS
10729 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10732 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10740 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10754 grep -v '^ *+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_header_sys_wait_h=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_cv_header_sys_wait_h=no
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10789 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10790 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10791 if test $ac_cv_header_sys_wait_h = yes; then
10793 cat >>confdefs.h <<\_ACEOF
10794 #define HAVE_SYS_WAIT_H 1
10799 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10800 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10801 if test "${ac_cv_header_time+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <sys/types.h>
10811 #include <sys/time.h>
10817 if ((struct tm *) 0)
10823 rm -f conftest.$ac_objext
10824 if { (ac_try="$ac_compile"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_compile") 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest.$ac_objext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_header_time=yes
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_cv_header_time=no
10865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10868 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10869 if test $ac_cv_header_time = yes; then
10871 cat >>confdefs.h <<\_ACEOF
10872 #define TIME_WITH_SYS_TIME 1
10879 ac_cpp='$CXXCPP $CPPFLAGS'
10880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10885 for ac_header in cxxabi.h
10887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 cat >conftest.$ac_ext <<_ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 #include <stddef.h>
10902 #include <$ac_header>
10904 rm -f conftest.$ac_objext
10905 if { (ac_try="$ac_compile"
10906 case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_compile") 2>conftest.er1
10913 grep -v '^ *+' conftest.er1 >conftest.err
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10919 { (case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_try") 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest.$ac_objext'
10929 { (case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_try") 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 eval "$as_ac_Header=yes"
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 eval "$as_ac_Header=no"
10946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948 ac_res=`eval echo '${'$as_ac_Header'}'`
10949 { echo "$as_me:$LINENO: result: $ac_res" >&5
10950 echo "${ECHO_T}$ac_res" >&6; }
10951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10952 cat >>confdefs.h <<_ACEOF
10953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10972 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 ac_res=`eval echo '${'$as_ac_Header'}'`
10982 { echo "$as_me:$LINENO: result: $ac_res" >&5
10983 echo "${ECHO_T}$ac_res" >&6; }
10985 # Is the header compilable?
10986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 $ac_includes_default
10995 #include <$ac_header>
10997 rm -f conftest.$ac_objext
10998 if { (ac_try="$ac_compile"
10999 case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_compile") 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012 { (case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_try") 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_header_compiler=yes
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_header_compiler=no
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11041 echo "${ECHO_T}$ac_header_compiler" >&6; }
11043 # Is the header present?
11044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 #include <$ac_header>
11054 if { (ac_try="$ac_cpp conftest.$ac_ext"
11055 case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11062 grep -v '^ *+' conftest.er1 >conftest.err
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } >/dev/null; then
11067 if test -s conftest.err; then
11068 ac_cpp_err=$ac_c_preproc_warn_flag
11069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11076 if test -z "$ac_cpp_err"; then
11077 ac_header_preproc=yes
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ac_header_preproc=no
11085 rm -f conftest.err conftest.$ac_ext
11086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11087 echo "${ECHO_T}$ac_header_preproc" >&6; }
11089 # So? What about this header?
11090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11096 ac_header_preproc=yes
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11112 ## ------------------------------------ ##
11113 ## Report this to http://llvm.org/bugs/ ##
11114 ## ------------------------------------ ##
11116 ) | sed "s/^/$as_me: WARNING: /" >&2
11119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 eval "$as_ac_Header=\$ac_header_preproc"
11126 ac_res=`eval echo '${'$as_ac_Header'}'`
11127 { echo "$as_me:$LINENO: result: $ac_res" >&5
11128 echo "${ECHO_T}$ac_res" >&6; }
11131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11132 cat >>confdefs.h <<_ACEOF
11133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 ac_res=`eval echo '${'$as_ac_Header'}'`
11156 { echo "$as_me:$LINENO: result: $ac_res" >&5
11157 echo "${ECHO_T}$ac_res" >&6; }
11159 # Is the header compilable?
11160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11162 cat >conftest.$ac_ext <<_ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 $ac_includes_default
11169 #include <$ac_header>
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_header_compiler=yes
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 ac_header_compiler=no
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11215 echo "${ECHO_T}$ac_header_compiler" >&6; }
11217 # Is the header present?
11218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11220 cat >conftest.$ac_ext <<_ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 #include <$ac_header>
11228 if { (ac_try="$ac_cpp conftest.$ac_ext"
11229 case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11236 grep -v '^ *+' conftest.er1 >conftest.err
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } >/dev/null; then
11241 if test -s conftest.err; then
11242 ac_cpp_err=$ac_c_preproc_warn_flag
11243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11250 if test -z "$ac_cpp_err"; then
11251 ac_header_preproc=yes
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 ac_header_preproc=no
11259 rm -f conftest.err conftest.$ac_ext
11260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11261 echo "${ECHO_T}$ac_header_preproc" >&6; }
11263 # So? What about this header?
11264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11270 ac_header_preproc=yes
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11286 ## ------------------------------------ ##
11287 ## Report this to http://llvm.org/bugs/ ##
11288 ## ------------------------------------ ##
11290 ) | sed "s/^/$as_me: WARNING: /" >&2
11293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 eval "$as_ac_Header=\$ac_header_preproc"
11300 ac_res=`eval echo '${'$as_ac_Header'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11315 for ac_header in utime.h
11317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 ac_res=`eval echo '${'$as_ac_Header'}'`
11325 { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11328 # Is the header compilable?
11329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11331 cat >conftest.$ac_ext <<_ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 #include <$ac_header>
11340 rm -f conftest.$ac_objext
11341 if { (ac_try="$ac_compile"
11342 case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_compile") 2>conftest.er1
11349 grep -v '^ *+' conftest.er1 >conftest.err
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11355 { (case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_try") 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; } &&
11364 { ac_try='test -s conftest.$ac_objext'
11365 { (case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_try") 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_header_compiler=yes
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11379 ac_header_compiler=no
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 echo "${ECHO_T}$ac_header_compiler" >&6; }
11386 # Is the header present?
11387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11389 cat >conftest.$ac_ext <<_ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11395 #include <$ac_header>
11397 if { (ac_try="$ac_cpp conftest.$ac_ext"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } >/dev/null; then
11410 if test -s conftest.err; then
11411 ac_cpp_err=$ac_c_preproc_warn_flag
11412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11419 if test -z "$ac_cpp_err"; then
11420 ac_header_preproc=yes
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11425 ac_header_preproc=no
11428 rm -f conftest.err conftest.$ac_ext
11429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11430 echo "${ECHO_T}$ac_header_preproc" >&6; }
11432 # So? What about this header?
11433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11439 ac_header_preproc=yes
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11455 ## ------------------------------------ ##
11456 ## Report this to http://llvm.org/bugs/ ##
11457 ## ------------------------------------ ##
11459 ) | sed "s/^/$as_me: WARNING: /" >&2
11462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 eval "$as_ac_Header=\$ac_header_preproc"
11469 ac_res=`eval echo '${'$as_ac_Header'}'`
11470 { echo "$as_me:$LINENO: result: $ac_res" >&5
11471 echo "${ECHO_T}$ac_res" >&6; }
11474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11475 cat >>confdefs.h <<_ACEOF
11476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11488 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11501 # Is the header compilable?
11502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <$ac_header>
11513 rm -f conftest.$ac_objext
11514 if { (ac_try="$ac_compile"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_compile") 2>conftest.er1
11522 grep -v '^ *+' conftest.er1 >conftest.err
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11528 { (case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_try") 2>&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try='test -s conftest.$ac_objext'
11538 { (case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_try") 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_header_compiler=yes
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ac_header_compiler=no
11555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11557 echo "${ECHO_T}$ac_header_compiler" >&6; }
11559 # Is the header present?
11560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11562 cat >conftest.$ac_ext <<_ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 #include <$ac_header>
11570 if { (ac_try="$ac_cpp conftest.$ac_ext"
11571 case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11578 grep -v '^ *+' conftest.er1 >conftest.err
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } >/dev/null; then
11583 if test -s conftest.err; then
11584 ac_cpp_err=$ac_c_preproc_warn_flag
11585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11592 if test -z "$ac_cpp_err"; then
11593 ac_header_preproc=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_header_preproc=no
11601 rm -f conftest.err conftest.$ac_ext
11602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11603 echo "${ECHO_T}$ac_header_preproc" >&6; }
11605 # So? What about this header?
11606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11612 ac_header_preproc=yes
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11628 ## ------------------------------------ ##
11629 ## Report this to http://llvm.org/bugs/ ##
11630 ## ------------------------------------ ##
11632 ) | sed "s/^/$as_me: WARNING: /" >&2
11635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 eval "$as_ac_Header=\$ac_header_preproc"
11642 ac_res=`eval echo '${'$as_ac_Header'}'`
11643 { echo "$as_me:$LINENO: result: $ac_res" >&5
11644 echo "${ECHO_T}$ac_res" >&6; }
11647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11659 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 ac_res=`eval echo '${'$as_ac_Header'}'`
11669 { echo "$as_me:$LINENO: result: $ac_res" >&5
11670 echo "${ECHO_T}$ac_res" >&6; }
11672 # Is the header compilable?
11673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11675 cat >conftest.$ac_ext <<_ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 $ac_includes_default
11682 #include <$ac_header>
11684 rm -f conftest.$ac_objext
11685 if { (ac_try="$ac_compile"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11693 grep -v '^ *+' conftest.er1 >conftest.err
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11699 { (case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_try") 2>&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; } &&
11708 { ac_try='test -s conftest.$ac_objext'
11709 { (case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_try") 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 ac_header_compiler=yes
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11723 ac_header_compiler=no
11726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11728 echo "${ECHO_T}$ac_header_compiler" >&6; }
11730 # Is the header present?
11731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11733 cat >conftest.$ac_ext <<_ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 #include <$ac_header>
11741 if { (ac_try="$ac_cpp conftest.$ac_ext"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11749 grep -v '^ *+' conftest.er1 >conftest.err
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } >/dev/null; then
11754 if test -s conftest.err; then
11755 ac_cpp_err=$ac_c_preproc_warn_flag
11756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11763 if test -z "$ac_cpp_err"; then
11764 ac_header_preproc=yes
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 ac_header_preproc=no
11772 rm -f conftest.err conftest.$ac_ext
11773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11774 echo "${ECHO_T}$ac_header_preproc" >&6; }
11776 # So? What about this header?
11777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11783 ac_header_preproc=yes
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11799 ## ------------------------------------ ##
11800 ## Report this to http://llvm.org/bugs/ ##
11801 ## ------------------------------------ ##
11803 ) | sed "s/^/$as_me: WARNING: /" >&2
11806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 eval "$as_ac_Header=\$ac_header_preproc"
11813 ac_res=`eval echo '${'$as_ac_Header'}'`
11814 { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11819 cat >>confdefs.h <<_ACEOF
11820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11828 for ac_header in valgrind/valgrind.h
11830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 ac_res=`eval echo '${'$as_ac_Header'}'`
11838 { echo "$as_me:$LINENO: result: $ac_res" >&5
11839 echo "${ECHO_T}$ac_res" >&6; }
11841 # Is the header compilable?
11842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11844 cat >conftest.$ac_ext <<_ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 $ac_includes_default
11851 #include <$ac_header>
11853 rm -f conftest.$ac_objext
11854 if { (ac_try="$ac_compile"
11855 case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_compile") 2>conftest.er1
11862 grep -v '^ *+' conftest.er1 >conftest.err
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_try") 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 ac_header_compiler=yes
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 ac_header_compiler=no
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11897 echo "${ECHO_T}$ac_header_compiler" >&6; }
11899 # Is the header present?
11900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 #include <$ac_header>
11910 if { (ac_try="$ac_cpp conftest.$ac_ext"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11918 grep -v '^ *+' conftest.er1 >conftest.err
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } >/dev/null; then
11923 if test -s conftest.err; then
11924 ac_cpp_err=$ac_c_preproc_warn_flag
11925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11932 if test -z "$ac_cpp_err"; then
11933 ac_header_preproc=yes
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_preproc=no
11941 rm -f conftest.err conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11943 echo "${ECHO_T}$ac_header_preproc" >&6; }
11945 # So? What about this header?
11946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11952 ac_header_preproc=yes
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11968 ## ------------------------------------ ##
11969 ## Report this to http://llvm.org/bugs/ ##
11970 ## ------------------------------------ ##
11972 ) | sed "s/^/$as_me: WARNING: /" >&2
11975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 eval "$as_ac_Header=\$ac_header_preproc"
11982 ac_res=`eval echo '${'$as_ac_Header'}'`
11983 { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11997 for ac_header in fenv.h
11999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 ac_res=`eval echo '${'$as_ac_Header'}'`
12007 { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12010 # Is the header compilable?
12011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12013 cat >conftest.$ac_ext <<_ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019 $ac_includes_default
12020 #include <$ac_header>
12022 rm -f conftest.$ac_objext
12023 if { (ac_try="$ac_compile"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_compile") 2>conftest.er1
12031 grep -v '^ *+' conftest.er1 >conftest.err
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest.$ac_objext'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_header_compiler=yes
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 ac_header_compiler=no
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12066 echo "${ECHO_T}$ac_header_compiler" >&6; }
12068 # Is the header present?
12069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12071 cat >conftest.$ac_ext <<_ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 #include <$ac_header>
12079 if { (ac_try="$ac_cpp conftest.$ac_ext"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12087 grep -v '^ *+' conftest.er1 >conftest.err
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } >/dev/null; then
12092 if test -s conftest.err; then
12093 ac_cpp_err=$ac_c_preproc_warn_flag
12094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12101 if test -z "$ac_cpp_err"; then
12102 ac_header_preproc=yes
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 ac_header_preproc=no
12110 rm -f conftest.err conftest.$ac_ext
12111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12112 echo "${ECHO_T}$ac_header_preproc" >&6; }
12114 # So? What about this header?
12115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12121 ac_header_preproc=yes
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12137 ## ------------------------------------ ##
12138 ## Report this to http://llvm.org/bugs/ ##
12139 ## ------------------------------------ ##
12141 ) | sed "s/^/$as_me: WARNING: /" >&2
12144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 eval "$as_ac_Header=\$ac_header_preproc"
12151 ac_res=`eval echo '${'$as_ac_Header'}'`
12152 { echo "$as_me:$LINENO: result: $ac_res" >&5
12153 echo "${ECHO_T}$ac_res" >&6; }
12156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12157 cat >>confdefs.h <<_ACEOF
12158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12165 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12166 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12167 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12181 #ifndef FE_ALL_EXCEPT
12182 char *p = (char *) FE_ALL_EXCEPT;
12190 rm -f conftest.$ac_objext
12191 if { (ac_try="$ac_compile"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_cv_have_decl_FE_ALL_EXCEPT=no
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12235 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12236 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_DECL_FE_ALL_EXCEPT 1
12244 cat >>confdefs.h <<_ACEOF
12245 #define HAVE_DECL_FE_ALL_EXCEPT 0
12250 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12251 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12252 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12267 char *p = (char *) FE_INEXACT;
12275 rm -f conftest.$ac_objext
12276 if { (ac_try="$ac_compile"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_compile") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1 >conftest.err
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest.$ac_objext'
12300 { (case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_try") 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_have_decl_FE_INEXACT=yes
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_cv_have_decl_FE_INEXACT=no
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12320 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12321 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_DECL_FE_INEXACT 1
12329 cat >>confdefs.h <<_ACEOF
12330 #define HAVE_DECL_FE_INEXACT 0
12337 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12339 for ac_header in pthread.h
12341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 ac_res=`eval echo '${'$as_ac_Header'}'`
12349 { echo "$as_me:$LINENO: result: $ac_res" >&5
12350 echo "${ECHO_T}$ac_res" >&6; }
12352 # Is the header compilable?
12353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12355 cat >conftest.$ac_ext <<_ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12361 $ac_includes_default
12362 #include <$ac_header>
12364 rm -f conftest.$ac_objext
12365 if { (ac_try="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_compile") 2>conftest.er1
12373 grep -v '^ *+' conftest.er1 >conftest.err
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; } &&
12388 { ac_try='test -s conftest.$ac_objext'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_header_compiler=yes
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_header_compiler=no
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12408 echo "${ECHO_T}$ac_header_compiler" >&6; }
12410 # Is the header present?
12411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12413 cat >conftest.$ac_ext <<_ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 #include <$ac_header>
12421 if { (ac_try="$ac_cpp conftest.$ac_ext"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12429 grep -v '^ *+' conftest.er1 >conftest.err
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } >/dev/null; then
12434 if test -s conftest.err; then
12435 ac_cpp_err=$ac_c_preproc_warn_flag
12436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12443 if test -z "$ac_cpp_err"; then
12444 ac_header_preproc=yes
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_header_preproc=no
12452 rm -f conftest.err conftest.$ac_ext
12453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12454 echo "${ECHO_T}$ac_header_preproc" >&6; }
12456 # So? What about this header?
12457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12463 ac_header_preproc=yes
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12479 ## ------------------------------------ ##
12480 ## Report this to http://llvm.org/bugs/ ##
12481 ## ------------------------------------ ##
12483 ) | sed "s/^/$as_me: WARNING: /" >&2
12486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 eval "$as_ac_Header=\$ac_header_preproc"
12493 ac_res=`eval echo '${'$as_ac_Header'}'`
12494 { echo "$as_me:$LINENO: result: $ac_res" >&5
12495 echo "${ECHO_T}$ac_res" >&6; }
12498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12499 cat >>confdefs.h <<_ACEOF
12500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12515 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12517 for ac_header in zlib.h
12519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 ac_res=`eval echo '${'$as_ac_Header'}'`
12527 { echo "$as_me:$LINENO: result: $ac_res" >&5
12528 echo "${ECHO_T}$ac_res" >&6; }
12530 # Is the header compilable?
12531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12533 cat >conftest.$ac_ext <<_ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 $ac_includes_default
12540 #include <$ac_header>
12542 rm -f conftest.$ac_objext
12543 if { (ac_try="$ac_compile"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_compile") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12566 { ac_try='test -s conftest.$ac_objext'
12567 { (case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_try") 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_header_compiler=yes
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 ac_header_compiler=no
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12586 echo "${ECHO_T}$ac_header_compiler" >&6; }
12588 # Is the header present?
12589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12591 cat >conftest.$ac_ext <<_ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 #include <$ac_header>
12599 if { (ac_try="$ac_cpp conftest.$ac_ext"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } >/dev/null; then
12612 if test -s conftest.err; then
12613 ac_cpp_err=$ac_c_preproc_warn_flag
12614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12621 if test -z "$ac_cpp_err"; then
12622 ac_header_preproc=yes
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_header_preproc=no
12630 rm -f conftest.err conftest.$ac_ext
12631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12632 echo "${ECHO_T}$ac_header_preproc" >&6; }
12634 # So? What about this header?
12635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12641 ac_header_preproc=yes
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12657 ## ------------------------------------ ##
12658 ## Report this to http://llvm.org/bugs/ ##
12659 ## ------------------------------------ ##
12661 ) | sed "s/^/$as_me: WARNING: /" >&2
12664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 eval "$as_ac_Header=\$ac_header_preproc"
12671 ac_res=`eval echo '${'$as_ac_Header'}'`
12672 { echo "$as_me:$LINENO: result: $ac_res" >&5
12673 echo "${ECHO_T}$ac_res" >&6; }
12676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12677 cat >>confdefs.h <<_ACEOF
12678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12694 if test "$llvm_cv_enable_libffi" = "yes" ; then
12697 for ac_header in ffi.h ffi/ffi.h
12699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 ac_res=`eval echo '${'$as_ac_Header'}'`
12707 { echo "$as_me:$LINENO: result: $ac_res" >&5
12708 echo "${ECHO_T}$ac_res" >&6; }
12710 # Is the header compilable?
12711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12713 cat >conftest.$ac_ext <<_ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719 $ac_includes_default
12720 #include <$ac_header>
12722 rm -f conftest.$ac_objext
12723 if { (ac_try="$ac_compile"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_compile") 2>conftest.er1
12731 grep -v '^ *+' conftest.er1 >conftest.err
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12737 { (case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_try") 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest.$ac_objext'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_header_compiler=yes
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_header_compiler=no
12764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12766 echo "${ECHO_T}$ac_header_compiler" >&6; }
12768 # Is the header present?
12769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12771 cat >conftest.$ac_ext <<_ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 #include <$ac_header>
12779 if { (ac_try="$ac_cpp conftest.$ac_ext"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } >/dev/null; then
12792 if test -s conftest.err; then
12793 ac_cpp_err=$ac_c_preproc_warn_flag
12794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12801 if test -z "$ac_cpp_err"; then
12802 ac_header_preproc=yes
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_header_preproc=no
12810 rm -f conftest.err conftest.$ac_ext
12811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12812 echo "${ECHO_T}$ac_header_preproc" >&6; }
12814 # So? What about this header?
12815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12821 ac_header_preproc=yes
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12837 ## ------------------------------------ ##
12838 ## Report this to http://llvm.org/bugs/ ##
12839 ## ------------------------------------ ##
12841 ) | sed "s/^/$as_me: WARNING: /" >&2
12844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 eval "$as_ac_Header=\$ac_header_preproc"
12851 ac_res=`eval echo '${'$as_ac_Header'}'`
12852 { echo "$as_me:$LINENO: result: $ac_res" >&5
12853 echo "${ECHO_T}$ac_res" >&6; }
12856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12857 cat >>confdefs.h <<_ACEOF
12858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12868 for ac_header in CrashReporterClient.h
12870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 ac_res=`eval echo '${'$as_ac_Header'}'`
12878 { echo "$as_me:$LINENO: result: $ac_res" >&5
12879 echo "${ECHO_T}$ac_res" >&6; }
12881 # Is the header compilable?
12882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 #include <$ac_header>
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12902 grep -v '^ *+' conftest.er1 >conftest.err
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12908 { (case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest.$ac_objext'
12918 { (case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_try") 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_header_compiler=yes
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12932 ac_header_compiler=no
12935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6; }
12939 # Is the header present?
12940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12942 cat >conftest.$ac_ext <<_ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 #include <$ac_header>
12950 if { (ac_try="$ac_cpp conftest.$ac_ext"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } >/dev/null; then
12963 if test -s conftest.err; then
12964 ac_cpp_err=$ac_c_preproc_warn_flag
12965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12972 if test -z "$ac_cpp_err"; then
12973 ac_header_preproc=yes
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 ac_header_preproc=no
12981 rm -f conftest.err conftest.$ac_ext
12982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12983 echo "${ECHO_T}$ac_header_preproc" >&6; }
12985 # So? What about this header?
12986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12992 ac_header_preproc=yes
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13008 ## ------------------------------------ ##
13009 ## Report this to http://llvm.org/bugs/ ##
13010 ## ------------------------------------ ##
13012 ) | sed "s/^/$as_me: WARNING: /" >&2
13015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 eval "$as_ac_Header=\$ac_header_preproc"
13022 ac_res=`eval echo '${'$as_ac_Header'}'`
13023 { echo "$as_me:$LINENO: result: $ac_res" >&5
13024 echo "${ECHO_T}$ac_res" >&6; }
13027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13028 cat >>confdefs.h <<_ACEOF
13029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13037 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13038 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13039 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13047 extern const char *__crashreporter_info__;
13049 __crashreporter_info__ = "test";
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_link") 2>conftest.er1
13064 grep -v '^ *+' conftest.er1 >conftest.err
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13090 { echo "$as_me:$LINENO: result: yes" >&5
13091 echo "${ECHO_T}yes" >&6; }
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_CRASHREPORTER_INFO 1
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13103 { echo "$as_me:$LINENO: result: no" >&5
13104 echo "${ECHO_T}no" >&6; }
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_CRASHREPORTER_INFO 0
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13118 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13119 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13120 if test "${ac_cv_huge_val_sanity+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 ac_cpp='$CXXCPP $CPPFLAGS'
13126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13130 ac_save_CXXFLAGS=$CXXFLAGS
13131 CXXFLAGS="$CXXFLAGS -pedantic"
13132 if test "$cross_compiling" = yes; then
13133 ac_cv_huge_val_sanity=yes
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13145 double x = HUGE_VAL; return x != x;
13150 rm -f conftest$ac_exeext
13151 if { (ac_try="$ac_link"
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_link") 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13161 { (case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_try") 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 ac_cv_huge_val_sanity=yes
13172 echo "$as_me: program exited with status $ac_status" >&5
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13176 ( exit $ac_status )
13177 ac_cv_huge_val_sanity=no
13179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13183 CXXFLAGS=$ac_save_CXXFLAGS
13185 ac_cpp='$CPP $CPPFLAGS'
13186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13192 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13193 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13194 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13197 { echo "$as_me:$LINENO: checking for pid_t" >&5
13198 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13199 if test "${ac_cv_type_pid_t+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 $ac_includes_default
13209 typedef pid_t ac__type_new_;
13213 if ((ac__type_new_ *) 0)
13215 if (sizeof (ac__type_new_))
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_compile") 2>conftest.er1
13230 grep -v '^ *+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
13235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13236 { (case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_try") 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest.$ac_objext'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }; then
13255 ac_cv_type_pid_t=yes
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ac_cv_type_pid_t=no
13263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13267 if test $ac_cv_type_pid_t = yes; then
13271 cat >>confdefs.h <<_ACEOF
13277 { echo "$as_me:$LINENO: checking for size_t" >&5
13278 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13279 if test "${ac_cv_type_size_t+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 cat >conftest.$ac_ext <<_ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13288 $ac_includes_default
13289 typedef size_t ac__type_new_;
13293 if ((ac__type_new_ *) 0)
13295 if (sizeof (ac__type_new_))
13301 rm -f conftest.$ac_objext
13302 if { (ac_try="$ac_compile"
13303 case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_compile") 2>conftest.er1
13310 grep -v '^ *+' conftest.er1 >conftest.err
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316 { (case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_try") 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest.$ac_objext'
13326 { (case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_try") 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_cv_type_size_t=yes
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 ac_cv_type_size_t=no
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13346 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13347 if test $ac_cv_type_size_t = yes; then
13351 cat >>confdefs.h <<_ACEOF
13352 #define size_t unsigned int
13358 cat >>confdefs.h <<_ACEOF
13359 #define RETSIGTYPE void
13362 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13363 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13364 if test "${ac_cv_struct_tm+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 #include <sys/types.h>
13379 struct tm *tp; tp->tm_sec;
13384 rm -f conftest.$ac_objext
13385 if { (ac_try="$ac_compile"
13386 case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_compile") 2>conftest.er1
13393 grep -v '^ *+' conftest.er1 >conftest.err
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; } &&
13408 { ac_try='test -s conftest.$ac_objext'
13409 { (case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_try") 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_struct_tm=time.h
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 ac_cv_struct_tm=sys/time.h
13426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13429 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13430 if test $ac_cv_struct_tm = sys/time.h; then
13432 cat >>confdefs.h <<\_ACEOF
13433 #define TM_IN_SYS_TIME 1
13438 { echo "$as_me:$LINENO: checking for int64_t" >&5
13439 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13440 if test "${ac_cv_type_int64_t+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 cat >conftest.$ac_ext <<_ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13449 $ac_includes_default
13450 typedef int64_t ac__type_new_;
13454 if ((ac__type_new_ *) 0)
13456 if (sizeof (ac__type_new_))
13462 rm -f conftest.$ac_objext
13463 if { (ac_try="$ac_compile"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_compile") 2>conftest.er1
13471 grep -v '^ *+' conftest.er1 >conftest.err
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13477 { (case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_try") 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; } &&
13486 { ac_try='test -s conftest.$ac_objext'
13487 { (case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_try") 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 ac_cv_type_int64_t=yes
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13501 ac_cv_type_int64_t=no
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13507 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13508 if test $ac_cv_type_int64_t = yes; then
13510 cat >>confdefs.h <<_ACEOF
13511 #define HAVE_INT64_T 1
13516 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13517 echo "$as_me: error: Type int64_t required but not found" >&2;}
13518 { (exit 1); exit 1; }; }
13521 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13522 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13523 if test "${ac_cv_type_uint64_t+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 cat >conftest.$ac_ext <<_ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 $ac_includes_default
13533 typedef uint64_t ac__type_new_;
13537 if ((ac__type_new_ *) 0)
13539 if (sizeof (ac__type_new_))
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_compile") 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_cv_type_uint64_t=yes
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13584 ac_cv_type_uint64_t=no
13587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13590 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13591 if test $ac_cv_type_uint64_t = yes; then
13593 cat >>confdefs.h <<_ACEOF
13594 #define HAVE_UINT64_T 1
13599 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13600 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13601 if test "${ac_cv_type_u_int64_t+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 cat >conftest.$ac_ext <<_ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 $ac_includes_default
13611 typedef u_int64_t ac__type_new_;
13615 if ((ac__type_new_ *) 0)
13617 if (sizeof (ac__type_new_))
13623 rm -f conftest.$ac_objext
13624 if { (ac_try="$ac_compile"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_compile") 2>conftest.er1
13632 grep -v '^ *+' conftest.er1 >conftest.err
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_try") 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } &&
13647 { ac_try='test -s conftest.$ac_objext'
13648 { (case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_try") 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_cv_type_u_int64_t=yes
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 ac_cv_type_u_int64_t=no
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13668 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13669 if test $ac_cv_type_u_int64_t = yes; then
13671 cat >>confdefs.h <<_ACEOF
13672 #define HAVE_U_INT64_T 1
13677 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13678 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13679 { (exit 1); exit 1; }; }
13693 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 cat >conftest.$ac_ext <<_ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13709 #define $ac_func innocuous_$ac_func
13711 /* System header to define __stub macros and hopefully few prototypes,
13712 which can conflict with char $ac_func (); below.
13713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13714 <limits.h> exists even on freestanding compilers. */
13717 # include <limits.h>
13719 # include <assert.h>
13724 /* Override any GCC internal prototype to avoid an error.
13725 Use char because int might match the return type of a GCC
13726 builtin and then its argument prototype would still apply. */
13731 /* The GNU C library defines this for functions which it implements
13732 to always fail with ENOSYS. Some functions are actually named
13733 something starting with __ and the normal name is an alias. */
13734 #if defined __stub_$ac_func || defined __stub___$ac_func
13741 return $ac_func ();
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (ac_try="$ac_link"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_link") 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_try") 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 eval "$as_ac_var=yes"
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 eval "$as_ac_var=no"
13788 rm -f core conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
13791 ac_res=`eval echo '${'$as_ac_var'}'`
13792 { echo "$as_me:$LINENO: result: $ac_res" >&5
13793 echo "${ECHO_T}$ac_res" >&6; }
13794 if test `eval echo '${'$as_ac_var'}'` = yes; then
13795 cat >>confdefs.h <<_ACEOF
13796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13806 for ac_func in powf fmodf strtof round
13808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 cat >conftest.$ac_ext <<_ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13822 #define $ac_func innocuous_$ac_func
13824 /* System header to define __stub macros and hopefully few prototypes,
13825 which can conflict with char $ac_func (); below.
13826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13827 <limits.h> exists even on freestanding compilers. */
13830 # include <limits.h>
13832 # include <assert.h>
13837 /* Override any GCC internal prototype to avoid an error.
13838 Use char because int might match the return type of a GCC
13839 builtin and then its argument prototype would still apply. */
13844 /* The GNU C library defines this for functions which it implements
13845 to always fail with ENOSYS. Some functions are actually named
13846 something starting with __ and the normal name is an alias. */
13847 #if defined __stub_$ac_func || defined __stub___$ac_func
13854 return $ac_func ();
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (ac_try="$ac_link"
13861 case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_link") 2>conftest.er1
13868 grep -v '^ *+' conftest.er1 >conftest.err
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13874 { (case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879 (eval "$ac_try") 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; } &&
13883 { ac_try='test -s conftest$ac_exeext'
13884 { (case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_try") 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 eval "$as_ac_var=yes"
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13898 eval "$as_ac_var=no"
13901 rm -f core conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13904 ac_res=`eval echo '${'$as_ac_var'}'`
13905 { echo "$as_me:$LINENO: result: $ac_res" >&5
13906 echo "${ECHO_T}$ac_res" >&6; }
13907 if test `eval echo '${'$as_ac_var'}'` = yes; then
13908 cat >>confdefs.h <<_ACEOF
13909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13920 for ac_func in log log2 log10 exp exp2
13922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 cat >conftest.$ac_ext <<_ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13936 #define $ac_func innocuous_$ac_func
13938 /* System header to define __stub macros and hopefully few prototypes,
13939 which can conflict with char $ac_func (); below.
13940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13941 <limits.h> exists even on freestanding compilers. */
13944 # include <limits.h>
13946 # include <assert.h>
13951 /* Override any GCC internal prototype to avoid an error.
13952 Use char because int might match the return type of a GCC
13953 builtin and then its argument prototype would still apply. */
13958 /* The GNU C library defines this for functions which it implements
13959 to always fail with ENOSYS. Some functions are actually named
13960 something starting with __ and the normal name is an alias. */
13961 #if defined __stub_$ac_func || defined __stub___$ac_func
13968 return $ac_func ();
13973 rm -f conftest.$ac_objext conftest$ac_exeext
13974 if { (ac_try="$ac_link"
13975 case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_link") 2>conftest.er1
13982 grep -v '^ *+' conftest.er1 >conftest.err
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13988 { (case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_try") 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest$ac_exeext'
13998 { (case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_try") 2>&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; }; then
14007 eval "$as_ac_var=yes"
14009 echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14012 eval "$as_ac_var=no"
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14018 ac_res=`eval echo '${'$as_ac_var'}'`
14019 { echo "$as_me:$LINENO: result: $ac_res" >&5
14020 echo "${ECHO_T}$ac_res" >&6; }
14021 if test `eval echo '${'$as_ac_var'}'` = yes; then
14022 cat >>confdefs.h <<_ACEOF
14023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14034 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 cat >conftest.$ac_ext <<_ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14050 #define $ac_func innocuous_$ac_func
14052 /* System header to define __stub macros and hopefully few prototypes,
14053 which can conflict with char $ac_func (); below.
14054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14055 <limits.h> exists even on freestanding compilers. */
14058 # include <limits.h>
14060 # include <assert.h>
14065 /* Override any GCC internal prototype to avoid an error.
14066 Use char because int might match the return type of a GCC
14067 builtin and then its argument prototype would still apply. */
14072 /* The GNU C library defines this for functions which it implements
14073 to always fail with ENOSYS. Some functions are actually named
14074 something starting with __ and the normal name is an alias. */
14075 #if defined __stub_$ac_func || defined __stub___$ac_func
14082 return $ac_func ();
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (ac_try="$ac_link"
14089 case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_link") 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14102 { (case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_try") 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest$ac_exeext'
14112 { (case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_try") 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 eval "$as_ac_var=yes"
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 eval "$as_ac_var=no"
14129 rm -f core conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14132 ac_res=`eval echo '${'$as_ac_var'}'`
14133 { echo "$as_me:$LINENO: result: $ac_res" >&5
14134 echo "${ECHO_T}$ac_res" >&6; }
14135 if test `eval echo '${'$as_ac_var'}'` = yes; then
14136 cat >>confdefs.h <<_ACEOF
14137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14146 for ac_func in isatty mkdtemp mkstemp
14148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 cat >conftest.$ac_ext <<_ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14162 #define $ac_func innocuous_$ac_func
14164 /* System header to define __stub macros and hopefully few prototypes,
14165 which can conflict with char $ac_func (); below.
14166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14167 <limits.h> exists even on freestanding compilers. */
14170 # include <limits.h>
14172 # include <assert.h>
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14184 /* The GNU C library defines this for functions which it implements
14185 to always fail with ENOSYS. Some functions are actually named
14186 something starting with __ and the normal name is an alias. */
14187 #if defined __stub_$ac_func || defined __stub___$ac_func
14194 return $ac_func ();
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_link") 2>conftest.er1
14208 grep -v '^ *+' conftest.er1 >conftest.err
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_try") 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 eval "$as_ac_var=yes"
14235 echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14238 eval "$as_ac_var=no"
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14244 ac_res=`eval echo '${'$as_ac_var'}'`
14245 { echo "$as_me:$LINENO: result: $ac_res" >&5
14246 echo "${ECHO_T}$ac_res" >&6; }
14247 if test `eval echo '${'$as_ac_var'}'` = yes; then
14248 cat >>confdefs.h <<_ACEOF
14249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14261 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 cat >conftest.$ac_ext <<_ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14277 #define $ac_func innocuous_$ac_func
14279 /* System header to define __stub macros and hopefully few prototypes,
14280 which can conflict with char $ac_func (); below.
14281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14282 <limits.h> exists even on freestanding compilers. */
14285 # include <limits.h>
14287 # include <assert.h>
14292 /* Override any GCC internal prototype to avoid an error.
14293 Use char because int might match the return type of a GCC
14294 builtin and then its argument prototype would still apply. */
14299 /* The GNU C library defines this for functions which it implements
14300 to always fail with ENOSYS. Some functions are actually named
14301 something starting with __ and the normal name is an alias. */
14302 #if defined __stub_$ac_func || defined __stub___$ac_func
14309 return $ac_func ();
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (ac_try="$ac_link"
14316 case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_link") 2>conftest.er1
14323 grep -v '^ *+' conftest.er1 >conftest.err
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14329 { (case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_try") 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try='test -s conftest$ac_exeext'
14339 { (case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_try") 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 eval "$as_ac_var=yes"
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 eval "$as_ac_var=no"
14356 rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14359 ac_res=`eval echo '${'$as_ac_var'}'`
14360 { echo "$as_me:$LINENO: result: $ac_res" >&5
14361 echo "${ECHO_T}$ac_res" >&6; }
14362 if test `eval echo '${'$as_ac_var'}'` = yes; then
14363 cat >>confdefs.h <<_ACEOF
14364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14373 for ac_func in strerror strerror_r setenv
14375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 cat >conftest.$ac_ext <<_ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14389 #define $ac_func innocuous_$ac_func
14391 /* System header to define __stub macros and hopefully few prototypes,
14392 which can conflict with char $ac_func (); below.
14393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14394 <limits.h> exists even on freestanding compilers. */
14397 # include <limits.h>
14399 # include <assert.h>
14404 /* Override any GCC internal prototype to avoid an error.
14405 Use char because int might match the return type of a GCC
14406 builtin and then its argument prototype would still apply. */
14411 /* The GNU C library defines this for functions which it implements
14412 to always fail with ENOSYS. Some functions are actually named
14413 something starting with __ and the normal name is an alias. */
14414 #if defined __stub_$ac_func || defined __stub___$ac_func
14421 return $ac_func ();
14426 rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (ac_try="$ac_link"
14428 case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_link") 2>conftest.er1
14435 grep -v '^ *+' conftest.er1 >conftest.err
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest$ac_exeext'
14451 { (case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_try") 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 eval "$as_ac_var=yes"
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 eval "$as_ac_var=no"
14468 rm -f core conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext conftest.$ac_ext
14471 ac_res=`eval echo '${'$as_ac_var'}'`
14472 { echo "$as_me:$LINENO: result: $ac_res" >&5
14473 echo "${ECHO_T}$ac_res" >&6; }
14474 if test `eval echo '${'$as_ac_var'}'` = yes; then
14475 cat >>confdefs.h <<_ACEOF
14476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14486 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 cat >conftest.$ac_ext <<_ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14502 #define $ac_func innocuous_$ac_func
14504 /* System header to define __stub macros and hopefully few prototypes,
14505 which can conflict with char $ac_func (); below.
14506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14507 <limits.h> exists even on freestanding compilers. */
14510 # include <limits.h>
14512 # include <assert.h>
14517 /* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14524 /* The GNU C library defines this for functions which it implements
14525 to always fail with ENOSYS. Some functions are actually named
14526 something starting with __ and the normal name is an alias. */
14527 #if defined __stub_$ac_func || defined __stub___$ac_func
14534 return $ac_func ();
14539 rm -f conftest.$ac_objext conftest$ac_exeext
14540 if { (ac_try="$ac_link"
14541 case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_link") 2>conftest.er1
14548 grep -v '^ *+' conftest.er1 >conftest.err
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14554 { (case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_try") 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest$ac_exeext'
14564 { (case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_try") 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 eval "$as_ac_var=yes"
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 eval "$as_ac_var=no"
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14584 ac_res=`eval echo '${'$as_ac_var'}'`
14585 { echo "$as_me:$LINENO: result: $ac_res" >&5
14586 echo "${ECHO_T}$ac_res" >&6; }
14587 if test `eval echo '${'$as_ac_var'}'` = yes; then
14588 cat >>confdefs.h <<_ACEOF
14589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14600 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 cat >conftest.$ac_ext <<_ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h. */
14614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14616 #define $ac_func innocuous_$ac_func
14618 /* System header to define __stub macros and hopefully few prototypes,
14619 which can conflict with char $ac_func (); below.
14620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14621 <limits.h> exists even on freestanding compilers. */
14624 # include <limits.h>
14626 # include <assert.h>
14631 /* Override any GCC internal prototype to avoid an error.
14632 Use char because int might match the return type of a GCC
14633 builtin and then its argument prototype would still apply. */
14638 /* The GNU C library defines this for functions which it implements
14639 to always fail with ENOSYS. Some functions are actually named
14640 something starting with __ and the normal name is an alias. */
14641 #if defined __stub_$ac_func || defined __stub___$ac_func
14648 return $ac_func ();
14653 rm -f conftest.$ac_objext conftest$ac_exeext
14654 if { (ac_try="$ac_link"
14655 case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_link") 2>conftest.er1
14662 grep -v '^ *+' conftest.er1 >conftest.err
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } &&
14667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14668 { (case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_try") 2>&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; } &&
14677 { ac_try='test -s conftest$ac_exeext'
14678 { (case "(($ac_try" in
14679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680 *) ac_try_echo=$ac_try;;
14682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14683 (eval "$ac_try") 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 eval "$as_ac_var=yes"
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 eval "$as_ac_var=no"
14695 rm -f core conftest.err conftest.$ac_objext \
14696 conftest$ac_exeext conftest.$ac_ext
14698 ac_res=`eval echo '${'$as_ac_var'}'`
14699 { echo "$as_me:$LINENO: result: $ac_res" >&5
14700 echo "${ECHO_T}$ac_res" >&6; }
14701 if test `eval echo '${'$as_ac_var'}'` = yes; then
14702 cat >>confdefs.h <<_ACEOF
14703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14711 for ac_func in futimes futimens
14713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14727 #define $ac_func innocuous_$ac_func
14729 /* System header to define __stub macros and hopefully few prototypes,
14730 which can conflict with char $ac_func (); below.
14731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14732 <limits.h> exists even on freestanding compilers. */
14735 # include <limits.h>
14737 # include <assert.h>
14742 /* Override any GCC internal prototype to avoid an error.
14743 Use char because int might match the return type of a GCC
14744 builtin and then its argument prototype would still apply. */
14749 /* The GNU C library defines this for functions which it implements
14750 to always fail with ENOSYS. Some functions are actually named
14751 something starting with __ and the normal name is an alias. */
14752 #if defined __stub_$ac_func || defined __stub___$ac_func
14759 return $ac_func ();
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_link") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest$ac_exeext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 eval "$as_ac_var=yes"
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 eval "$as_ac_var=no"
14806 rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14809 ac_res=`eval echo '${'$as_ac_var'}'`
14810 { echo "$as_me:$LINENO: result: $ac_res" >&5
14811 echo "${ECHO_T}$ac_res" >&6; }
14812 if test `eval echo '${'$as_ac_var'}'` = yes; then
14813 cat >>confdefs.h <<_ACEOF
14814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14820 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14821 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14822 if test "${llvm_cv_c_printf_a+set}" = set; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 ac_cpp='$CPP $CPPFLAGS'
14827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14831 if test "$cross_compiling" = yes; then
14832 llvmac_cv_c_printf_a=no
14834 cat >conftest.$ac_ext <<_ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14843 #include <stdlib.h>
14849 volatile double A, B;
14853 sprintf(Buffer, "%a", A);
14857 if (A != 0x1.999999999999ap-4)
14864 rm -f conftest$ac_exeext
14865 if { (ac_try="$ac_link"
14866 case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_link") 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 llvm_cv_c_printf_a=yes
14886 echo "$as_me: program exited with status $ac_status" >&5
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ( exit $ac_status )
14891 llvmac_cv_c_printf_a=no
14893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14898 ac_cpp='$CPP $CPPFLAGS'
14899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14904 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14905 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14906 if test "$llvm_cv_c_printf_a" = "yes"; then
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_PRINTF_A 1
14916 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14917 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14918 if test "${ac_cv_func_rand48+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 ac_cpp='$CXXCPP $CPPFLAGS'
14924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 #include <stdlib.h>
14938 srand48(0);lrand48();drand48();
14943 rm -f conftest.$ac_objext
14944 if { (ac_try="$ac_compile"
14945 case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_compile") 2>conftest.er1
14952 grep -v '^ *+' conftest.er1 >conftest.err
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14958 { (case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963 (eval "$ac_try") 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_try") 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 ac_cv_func_rand48=yes
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_cv_func_rand48=no
14985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987 ac_cpp='$CPP $CPPFLAGS'
14988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14994 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
14995 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
14997 if test "$ac_cv_func_rand48" = "yes" ; then
14999 cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_RAND48 1
15006 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15007 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15008 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 $ac_includes_default
15022 char *p = (char *) arc4random;
15030 rm -f conftest.$ac_objext
15031 if { (ac_try="$ac_compile"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_compile") 2>conftest.er1
15039 grep -v '^ *+' conftest.er1 >conftest.err
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
15044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045 { (case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_try") 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } &&
15054 { ac_try='test -s conftest.$ac_objext'
15055 { (case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_try") 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 ac_cv_have_decl_arc4random=yes
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15069 ac_cv_have_decl_arc4random=no
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15075 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15076 if test $ac_cv_have_decl_arc4random = yes; then
15078 cat >>confdefs.h <<_ACEOF
15079 #define HAVE_DECL_ARC4RANDOM 1
15084 cat >>confdefs.h <<_ACEOF
15085 #define HAVE_DECL_ARC4RANDOM 0
15093 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15094 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15095 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 cat >conftest.$ac_ext <<_ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15109 char *p = (char *) strerror_s;
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_compile") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15132 { (case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_try") 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; } &&
15141 { ac_try='test -s conftest.$ac_objext'
15142 { (case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_try") 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15151 ac_cv_have_decl_strerror_s=yes
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 ac_cv_have_decl_strerror_s=no
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15162 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15163 if test $ac_cv_have_decl_strerror_s = yes; then
15165 cat >>confdefs.h <<_ACEOF
15166 #define HAVE_DECL_STRERROR_S 1
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_DECL_STRERROR_S 0
15180 if test "$llvm_cv_os_type" = "MingW" ; then
15181 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15182 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15183 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 ac_check_lib_save_LIBS=$LIBS
15188 cat >conftest.$ac_ext <<_ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15195 /* Override any GCC internal prototype to avoid an error.
15196 Use char because int might match the return type of a GCC
15197 builtin and then its argument prototype would still apply. */
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (ac_try="$ac_link"
15212 case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_link") 2>conftest.er1
15219 grep -v '^ *+' conftest.er1 >conftest.err
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest$ac_exeext'
15235 { (case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_try") 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 ac_cv_lib_gcc__alloca=yes
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_cv_lib_gcc__alloca=no
15252 rm -f core conftest.err conftest.$ac_objext \
15253 conftest$ac_exeext conftest.$ac_ext
15254 LIBS=$ac_check_lib_save_LIBS
15256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15257 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15258 if test $ac_cv_lib_gcc__alloca = yes; then
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE__ALLOCA 1
15266 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15267 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15268 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 ac_check_lib_save_LIBS=$LIBS
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15290 return __alloca ();
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (ac_try="$ac_link"
15297 case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302 (eval "$ac_link") 2>conftest.er1
15304 grep -v '^ *+' conftest.er1 >conftest.err
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
15309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15310 { (case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_try") 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; } &&
15319 { ac_try='test -s conftest$ac_exeext'
15320 { (case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_try") 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 ac_cv_lib_gcc___alloca=yes
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_cv_lib_gcc___alloca=no
15337 rm -f core conftest.err conftest.$ac_objext \
15338 conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15341 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15342 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15343 if test $ac_cv_lib_gcc___alloca = yes; then
15345 cat >>confdefs.h <<\_ACEOF
15346 #define HAVE___ALLOCA 1
15351 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15352 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15353 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15354 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 ac_check_lib_save_LIBS=$LIBS
15358 cat >conftest.$ac_ext <<_ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15365 /* Override any GCC internal prototype to avoid an error.
15366 Use char because int might match the return type of a GCC
15367 builtin and then its argument prototype would still apply. */
15375 return __chkstk ();
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_link") 2>conftest.er1
15389 grep -v '^ *+' conftest.er1 >conftest.err
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest$ac_exeext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_cv_lib_gcc___chkstk=yes
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_cv_lib_gcc___chkstk=no
15422 rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15426 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15427 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15428 if test $ac_cv_lib_gcc___chkstk = yes; then
15430 cat >>confdefs.h <<\_ACEOF
15431 #define HAVE___CHKSTK 1
15436 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15437 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15438 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 ac_check_lib_save_LIBS=$LIBS
15443 cat >conftest.$ac_ext <<_ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15460 return ___chkstk ();
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_link") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1 >conftest.err
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15480 { (case "(($ac_try" in
15481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482 *) ac_try_echo=$ac_try;;
15484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485 (eval "$ac_try") 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest$ac_exeext'
15490 { (case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_try") 2>&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499 ac_cv_lib_gcc____chkstk=yes
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_cv_lib_gcc____chkstk=no
15507 rm -f core conftest.err conftest.$ac_objext \
15508 conftest$ac_exeext conftest.$ac_ext
15509 LIBS=$ac_check_lib_save_LIBS
15511 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15512 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15513 if test $ac_cv_lib_gcc____chkstk = yes; then
15515 cat >>confdefs.h <<\_ACEOF
15516 #define HAVE____CHKSTK 1
15522 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15523 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15524 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 ac_check_lib_save_LIBS=$LIBS
15529 cat >conftest.$ac_ext <<_ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15536 /* Override any GCC internal prototype to avoid an error.
15537 Use char because int might match the return type of a GCC
15538 builtin and then its argument prototype would still apply. */
15546 return __ashldi3 ();
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (ac_try="$ac_link"
15553 case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_link") 2>conftest.er1
15560 grep -v '^ *+' conftest.er1 >conftest.err
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15566 { (case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_try") 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } &&
15575 { ac_try='test -s conftest$ac_exeext'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 ac_cv_lib_gcc___ashldi3=yes
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 ac_cv_lib_gcc___ashldi3=no
15593 rm -f core conftest.err conftest.$ac_objext \
15594 conftest$ac_exeext conftest.$ac_ext
15595 LIBS=$ac_check_lib_save_LIBS
15597 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15598 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15599 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15601 cat >>confdefs.h <<\_ACEOF
15602 #define HAVE___ASHLDI3 1
15607 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15608 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15609 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 ac_check_lib_save_LIBS=$LIBS
15614 cat >conftest.$ac_ext <<_ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15621 /* Override any GCC internal prototype to avoid an error.
15622 Use char because int might match the return type of a GCC
15623 builtin and then its argument prototype would still apply. */
15631 return __ashrdi3 ();
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (ac_try="$ac_link"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_link") 2>conftest.er1
15645 grep -v '^ *+' conftest.er1 >conftest.err
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15651 { (case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656 (eval "$ac_try") 2>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try='test -s conftest$ac_exeext'
15661 { (case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_try") 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_lib_gcc___ashrdi3=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_lib_gcc___ashrdi3=no
15678 rm -f core conftest.err conftest.$ac_objext \
15679 conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15682 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15683 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15684 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE___ASHRDI3 1
15692 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15693 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15694 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 ac_check_lib_save_LIBS=$LIBS
15699 cat >conftest.$ac_ext <<_ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15706 /* Override any GCC internal prototype to avoid an error.
15707 Use char because int might match the return type of a GCC
15708 builtin and then its argument prototype would still apply. */
15716 return __divdi3 ();
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (ac_try="$ac_link"
15723 case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_link") 2>conftest.er1
15730 grep -v '^ *+' conftest.er1 >conftest.err
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15736 { (case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_try") 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; } &&
15745 { ac_try='test -s conftest$ac_exeext'
15746 { (case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_try") 2>&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755 ac_cv_lib_gcc___divdi3=yes
15757 echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.$ac_ext >&5
15760 ac_cv_lib_gcc___divdi3=no
15763 rm -f core conftest.err conftest.$ac_objext \
15764 conftest$ac_exeext conftest.$ac_ext
15765 LIBS=$ac_check_lib_save_LIBS
15767 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15768 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15769 if test $ac_cv_lib_gcc___divdi3 = yes; then
15771 cat >>confdefs.h <<\_ACEOF
15772 #define HAVE___DIVDI3 1
15777 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15778 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15779 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 ac_check_lib_save_LIBS=$LIBS
15784 cat >conftest.$ac_ext <<_ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15791 /* Override any GCC internal prototype to avoid an error.
15792 Use char because int might match the return type of a GCC
15793 builtin and then its argument prototype would still apply. */
15801 return __fixdfdi ();
15806 rm -f conftest.$ac_objext conftest$ac_exeext
15807 if { (ac_try="$ac_link"
15808 case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_link") 2>conftest.er1
15815 grep -v '^ *+' conftest.er1 >conftest.err
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
15820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15821 { (case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_try") 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest$ac_exeext'
15831 { (case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_try") 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_cv_lib_gcc___fixdfdi=yes
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 ac_cv_lib_gcc___fixdfdi=no
15848 rm -f core conftest.err conftest.$ac_objext \
15849 conftest$ac_exeext conftest.$ac_ext
15850 LIBS=$ac_check_lib_save_LIBS
15852 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15853 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15854 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15856 cat >>confdefs.h <<\_ACEOF
15857 #define HAVE___FIXDFDI 1
15862 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15863 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15864 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 ac_check_lib_save_LIBS=$LIBS
15869 cat >conftest.$ac_ext <<_ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15876 /* Override any GCC internal prototype to avoid an error.
15877 Use char because int might match the return type of a GCC
15878 builtin and then its argument prototype would still apply. */
15886 return __fixsfdi ();
15891 rm -f conftest.$ac_objext conftest$ac_exeext
15892 if { (ac_try="$ac_link"
15893 case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_link") 2>conftest.er1
15900 grep -v '^ *+' conftest.er1 >conftest.err
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15906 { (case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_try") 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; } &&
15915 { ac_try='test -s conftest$ac_exeext'
15916 { (case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_try") 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 ac_cv_lib_gcc___fixsfdi=yes
15927 echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15930 ac_cv_lib_gcc___fixsfdi=no
15933 rm -f core conftest.err conftest.$ac_objext \
15934 conftest$ac_exeext conftest.$ac_ext
15935 LIBS=$ac_check_lib_save_LIBS
15937 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15938 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15939 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15941 cat >>confdefs.h <<\_ACEOF
15942 #define HAVE___FIXSFDI 1
15947 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15948 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15949 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 ac_check_lib_save_LIBS=$LIBS
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15961 /* Override any GCC internal prototype to avoid an error.
15962 Use char because int might match the return type of a GCC
15963 builtin and then its argument prototype would still apply. */
15967 char __floatdidf ();
15971 return __floatdidf ();
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (ac_try="$ac_link"
15978 case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_link") 2>conftest.er1
15985 grep -v '^ *+' conftest.er1 >conftest.err
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15991 { (case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_try") 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest$ac_exeext'
16001 { (case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_try") 2>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16010 ac_cv_lib_gcc___floatdidf=yes
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ac_cv_lib_gcc___floatdidf=no
16018 rm -f core conftest.err conftest.$ac_objext \
16019 conftest$ac_exeext conftest.$ac_ext
16020 LIBS=$ac_check_lib_save_LIBS
16022 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16023 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16024 if test $ac_cv_lib_gcc___floatdidf = yes; then
16026 cat >>confdefs.h <<\_ACEOF
16027 #define HAVE___FLOATDIDF 1
16032 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16033 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16034 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 ac_check_lib_save_LIBS=$LIBS
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16046 /* Override any GCC internal prototype to avoid an error.
16047 Use char because int might match the return type of a GCC
16048 builtin and then its argument prototype would still apply. */
16056 return __lshrdi3 ();
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_link") 2>conftest.er1
16070 grep -v '^ *+' conftest.er1 >conftest.err
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16076 { (case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_try") 2>&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; } &&
16085 { ac_try='test -s conftest$ac_exeext'
16086 { (case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_try") 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_cv_lib_gcc___lshrdi3=yes
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 ac_cv_lib_gcc___lshrdi3=no
16103 rm -f core conftest.err conftest.$ac_objext \
16104 conftest$ac_exeext conftest.$ac_ext
16105 LIBS=$ac_check_lib_save_LIBS
16107 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16108 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16109 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16111 cat >>confdefs.h <<\_ACEOF
16112 #define HAVE___LSHRDI3 1
16117 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16118 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16119 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 ac_check_lib_save_LIBS=$LIBS
16124 cat >conftest.$ac_ext <<_ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16131 /* Override any GCC internal prototype to avoid an error.
16132 Use char because int might match the return type of a GCC
16133 builtin and then its argument prototype would still apply. */
16141 return __moddi3 ();
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (ac_try="$ac_link"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_link") 2>conftest.er1
16155 grep -v '^ *+' conftest.er1 >conftest.err
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16161 { (case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_try") 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; } &&
16170 { ac_try='test -s conftest$ac_exeext'
16171 { (case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_try") 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16180 ac_cv_lib_gcc___moddi3=yes
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_cv_lib_gcc___moddi3=no
16188 rm -f core conftest.err conftest.$ac_objext \
16189 conftest$ac_exeext conftest.$ac_ext
16190 LIBS=$ac_check_lib_save_LIBS
16192 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16193 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16194 if test $ac_cv_lib_gcc___moddi3 = yes; then
16196 cat >>confdefs.h <<\_ACEOF
16197 #define HAVE___MODDI3 1
16202 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16203 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16204 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16207 ac_check_lib_save_LIBS=$LIBS
16209 cat >conftest.$ac_ext <<_ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h. */
16216 /* Override any GCC internal prototype to avoid an error.
16217 Use char because int might match the return type of a GCC
16218 builtin and then its argument prototype would still apply. */
16226 return __udivdi3 ();
16231 rm -f conftest.$ac_objext conftest$ac_exeext
16232 if { (ac_try="$ac_link"
16233 case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_link") 2>conftest.er1
16240 grep -v '^ *+' conftest.er1 >conftest.err
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } &&
16245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16246 { (case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_try") 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; } &&
16255 { ac_try='test -s conftest$ac_exeext'
16256 { (case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_try") 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 ac_cv_lib_gcc___udivdi3=yes
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16270 ac_cv_lib_gcc___udivdi3=no
16273 rm -f core conftest.err conftest.$ac_objext \
16274 conftest$ac_exeext conftest.$ac_ext
16275 LIBS=$ac_check_lib_save_LIBS
16277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16278 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16279 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16281 cat >>confdefs.h <<\_ACEOF
16282 #define HAVE___UDIVDI3 1
16287 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16288 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16289 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 ac_check_lib_save_LIBS=$LIBS
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16301 /* Override any GCC internal prototype to avoid an error.
16302 Use char because int might match the return type of a GCC
16303 builtin and then its argument prototype would still apply. */
16311 return __umoddi3 ();
16316 rm -f conftest.$ac_objext conftest$ac_exeext
16317 if { (ac_try="$ac_link"
16318 case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_link") 2>conftest.er1
16325 grep -v '^ *+' conftest.er1 >conftest.err
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16331 { (case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_try") 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try='test -s conftest$ac_exeext'
16341 { (case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_try") 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 ac_cv_lib_gcc___umoddi3=yes
16352 echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.$ac_ext >&5
16355 ac_cv_lib_gcc___umoddi3=no
16358 rm -f core conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
16360 LIBS=$ac_check_lib_save_LIBS
16362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16363 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16364 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16366 cat >>confdefs.h <<\_ACEOF
16367 #define HAVE___UMODDI3 1
16373 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16374 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16375 if test "${ac_cv_lib_gcc___main+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 ac_check_lib_save_LIBS=$LIBS
16380 cat >conftest.$ac_ext <<_ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16387 /* Override any GCC internal prototype to avoid an error.
16388 Use char because int might match the return type of a GCC
16389 builtin and then its argument prototype would still apply. */
16402 rm -f conftest.$ac_objext conftest$ac_exeext
16403 if { (ac_try="$ac_link"
16404 case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_link") 2>conftest.er1
16411 grep -v '^ *+' conftest.er1 >conftest.err
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
16416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16417 { (case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_try") 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest$ac_exeext'
16427 { (case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_try") 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_lib_gcc___main=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_cv_lib_gcc___main=no
16444 rm -f core conftest.err conftest.$ac_objext \
16445 conftest$ac_exeext conftest.$ac_ext
16446 LIBS=$ac_check_lib_save_LIBS
16448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16449 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16450 if test $ac_cv_lib_gcc___main = yes; then
16452 cat >>confdefs.h <<\_ACEOF
16453 #define HAVE___MAIN 1
16458 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16459 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16460 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 ac_check_lib_save_LIBS=$LIBS
16465 cat >conftest.$ac_ext <<_ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16472 /* Override any GCC internal prototype to avoid an error.
16473 Use char because int might match the return type of a GCC
16474 builtin and then its argument prototype would still apply. */
16482 return __cmpdi2 ();
16487 rm -f conftest.$ac_objext conftest$ac_exeext
16488 if { (ac_try="$ac_link"
16489 case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_link") 2>conftest.er1
16496 grep -v '^ *+' conftest.er1 >conftest.err
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } &&
16501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16502 { (case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_try") 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; } &&
16511 { ac_try='test -s conftest$ac_exeext'
16512 { (case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_try") 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_cv_lib_gcc___cmpdi2=yes
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16526 ac_cv_lib_gcc___cmpdi2=no
16529 rm -f core conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16531 LIBS=$ac_check_lib_save_LIBS
16533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16534 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16535 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE___CMPDI2 1
16545 if test "$llvm_cv_os_type" = "MingW" ; then
16546 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16547 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16548 cat >conftest.$ac_ext <<_ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16556 #include <windows.h>
16557 #include <imagehlp.h>
16558 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16559 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16563 rm -f conftest.$ac_objext
16564 if { (ac_try="$ac_compile"
16565 case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16572 grep -v '^ *+' conftest.er1 >conftest.err
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16578 { (case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_try") 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest.$ac_objext'
16588 { (case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_try") 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16598 { echo "$as_me:$LINENO: result: yes" >&5
16599 echo "${ECHO_T}yes" >&6; }
16600 llvm_cv_win32_elmcb_pcstr="PCSTR"
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16607 { echo "$as_me:$LINENO: result: no" >&5
16608 echo "${ECHO_T}no" >&6; }
16609 llvm_cv_win32_elmcb_pcstr="PSTR"
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 cat >>confdefs.h <<_ACEOF
16616 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16623 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16624 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16625 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 ac_cpp='$CXXCPP $CPPFLAGS'
16631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16635 cat >conftest.$ac_ext <<_ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16650 rm -f conftest.$ac_objext
16651 if { (ac_try="$ac_compile"
16652 case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_compile") 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ac_cv_func_isnan_in_math_h=yes
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ac_cv_func_isnan_in_math_h=no
16692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694 ac_cpp='$CPP $CPPFLAGS'
16695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16701 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16702 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16705 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_ISNAN_IN_MATH_H 1
16714 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16715 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16716 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16717 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 ac_cpp='$CXXCPP $CPPFLAGS'
16722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16726 cat >conftest.$ac_ext <<_ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16741 rm -f conftest.$ac_objext
16742 if { (ac_try="$ac_compile"
16743 case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_compile") 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16756 { (case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_try") 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest.$ac_objext'
16766 { (case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_try") 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775 ac_cv_func_isnan_in_cmath=yes
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 ac_cv_func_isnan_in_cmath=no
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 ac_cpp='$CPP $CPPFLAGS'
16786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16792 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16793 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16795 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16797 cat >>confdefs.h <<\_ACEOF
16798 #define HAVE_ISNAN_IN_CMATH 1
16804 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16805 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16806 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 ac_cpp='$CXXCPP $CPPFLAGS'
16812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16816 cat >conftest.$ac_ext <<_ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16826 float f; std::isnan(f);
16831 rm -f conftest.$ac_objext
16832 if { (ac_try="$ac_compile"
16833 case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_compile") 2>conftest.er1
16840 grep -v '^ *+' conftest.er1 >conftest.err
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
16856 { (case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_try") 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_func_std_isnan_in_cmath=yes
16867 echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16870 ac_cv_func_std_isnan_in_cmath=no
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875 ac_cpp='$CPP $CPPFLAGS'
16876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16882 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16883 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16885 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16887 cat >>confdefs.h <<\_ACEOF
16888 #define HAVE_STD_ISNAN_IN_CMATH 1
16896 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16897 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16898 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 ac_cpp='$CXXCPP $CPPFLAGS'
16904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16908 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16923 rm -f conftest.$ac_objext
16924 if { (ac_try="$ac_compile"
16925 case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_compile") 2>conftest.er1
16932 grep -v '^ *+' conftest.er1 >conftest.err
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16938 { (case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_try") 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest.$ac_objext'
16948 { (case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_try") 2>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 ac_cv_func_isinf_in_math_h=yes
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_cv_func_isinf_in_math_h=no
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 ac_cpp='$CPP $CPPFLAGS'
16968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16974 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
16975 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
16977 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
16979 cat >>confdefs.h <<\_ACEOF
16980 #define HAVE_ISINF_IN_MATH_H 1
16986 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
16987 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
16988 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 ac_cpp='$CXXCPP $CPPFLAGS'
16994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16998 cat >conftest.$ac_ext <<_ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_compile") 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17028 { (case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_try") 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; } &&
17037 { ac_try='test -s conftest.$ac_objext'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 ac_cv_func_isinf_in_cmath=yes
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 ac_cv_func_isinf_in_cmath=no
17055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057 ac_cpp='$CPP $CPPFLAGS'
17058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17064 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17065 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17067 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17069 cat >>confdefs.h <<\_ACEOF
17070 #define HAVE_ISINF_IN_CMATH 1
17076 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17077 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17078 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 ac_cpp='$CXXCPP $CPPFLAGS'
17084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17098 float f; std::isinf(f);
17103 rm -f conftest.$ac_objext
17104 if { (ac_try="$ac_compile"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_compile") 2>conftest.er1
17112 grep -v '^ *+' conftest.er1 >conftest.err
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } &&
17117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17118 { (case "(($ac_try" in
17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120 *) ac_try_echo=$ac_try;;
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123 (eval "$ac_try") 2>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; } &&
17127 { ac_try='test -s conftest.$ac_objext'
17128 { (case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_try") 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; }; then
17137 ac_cv_func_std_isinf_in_cmath=yes
17139 echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17142 ac_cv_func_std_isinf_in_cmath=no
17145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 ac_cpp='$CPP $CPPFLAGS'
17148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17154 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17155 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17157 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17159 cat >>confdefs.h <<\_ACEOF
17160 #define HAVE_STD_ISINF_IN_CMATH 1
17166 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17167 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17168 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 ac_cpp='$CXXCPP $CPPFLAGS'
17174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17178 cat >conftest.$ac_ext <<_ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184 #include <ieeefp.h>
17188 float f; finite(f);
17193 rm -f conftest.$ac_objext
17194 if { (ac_try="$ac_compile"
17195 case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_compile") 2>conftest.er1
17202 grep -v '^ *+' conftest.er1 >conftest.err
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
17207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17208 { (case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_try") 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest.$ac_objext'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 ac_cv_func_finite_in_ieeefp_h=yes
17229 echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17232 ac_cv_func_finite_in_ieeefp_h=no
17235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237 ac_cpp='$CPP $CPPFLAGS'
17238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17244 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17245 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17247 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17249 cat >>confdefs.h <<\_ACEOF
17250 #define HAVE_FINITE_IN_IEEEFP_H 1
17257 if test "$llvm_cv_platform_type" = "Unix" ; then
17260 for ac_header in stdlib.h unistd.h
17262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 ac_res=`eval echo '${'$as_ac_Header'}'`
17270 { echo "$as_me:$LINENO: result: $ac_res" >&5
17271 echo "${ECHO_T}$ac_res" >&6; }
17273 # Is the header compilable?
17274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 $ac_includes_default
17283 #include <$ac_header>
17285 rm -f conftest.$ac_objext
17286 if { (ac_try="$ac_compile"
17287 case "(($ac_try" in
17288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289 *) ac_try_echo=$ac_try;;
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292 (eval "$ac_compile") 2>conftest.er1
17294 grep -v '^ *+' conftest.er1 >conftest.err
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17300 { (case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_try") 2>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest.$ac_objext'
17310 { (case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_try") 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_header_compiler=yes
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 ac_header_compiler=no
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17329 echo "${ECHO_T}$ac_header_compiler" >&6; }
17331 # Is the header present?
17332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 #include <$ac_header>
17342 if { (ac_try="$ac_cpp conftest.$ac_ext"
17343 case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17350 grep -v '^ *+' conftest.er1 >conftest.err
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } >/dev/null; then
17355 if test -s conftest.err; then
17356 ac_cpp_err=$ac_c_preproc_warn_flag
17357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17364 if test -z "$ac_cpp_err"; then
17365 ac_header_preproc=yes
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 ac_header_preproc=no
17373 rm -f conftest.err conftest.$ac_ext
17374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17375 echo "${ECHO_T}$ac_header_preproc" >&6; }
17377 # So? What about this header?
17378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17384 ac_header_preproc=yes
17387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17400 ## ------------------------------------ ##
17401 ## Report this to http://llvm.org/bugs/ ##
17402 ## ------------------------------------ ##
17404 ) | sed "s/^/$as_me: WARNING: /" >&2
17407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 eval "$as_ac_Header=\$ac_header_preproc"
17414 ac_res=`eval echo '${'$as_ac_Header'}'`
17415 { echo "$as_me:$LINENO: result: $ac_res" >&5
17416 echo "${ECHO_T}$ac_res" >&6; }
17419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17420 cat >>confdefs.h <<_ACEOF
17421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17429 for ac_func in getpagesize
17431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 cat >conftest.$ac_ext <<_ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17445 #define $ac_func innocuous_$ac_func
17447 /* System header to define __stub macros and hopefully few prototypes,
17448 which can conflict with char $ac_func (); below.
17449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17450 <limits.h> exists even on freestanding compilers. */
17453 # include <limits.h>
17455 # include <assert.h>
17460 /* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17467 /* The GNU C library defines this for functions which it implements
17468 to always fail with ENOSYS. Some functions are actually named
17469 something starting with __ and the normal name is an alias. */
17470 #if defined __stub_$ac_func || defined __stub___$ac_func
17477 return $ac_func ();
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (ac_try="$ac_link"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_link") 2>conftest.er1
17491 grep -v '^ *+' conftest.er1 >conftest.err
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest$ac_exeext'
17507 { (case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_try") 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 eval "$as_ac_var=yes"
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 eval "$as_ac_var=no"
17524 rm -f core conftest.err conftest.$ac_objext \
17525 conftest$ac_exeext conftest.$ac_ext
17527 ac_res=`eval echo '${'$as_ac_var'}'`
17528 { echo "$as_me:$LINENO: result: $ac_res" >&5
17529 echo "${ECHO_T}$ac_res" >&6; }
17530 if test `eval echo '${'$as_ac_var'}'` = yes; then
17531 cat >>confdefs.h <<_ACEOF
17532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17538 { echo "$as_me:$LINENO: checking for working mmap" >&5
17539 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 if test "$cross_compiling" = yes; then
17544 ac_cv_func_mmap_fixed_mapped=no
17546 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 $ac_includes_default
17553 /* malloc might have been renamed as rpl_malloc. */
17556 /* Thanks to Mike Haertel and Jim Avera for this test.
17557 Here is a matrix of mmap possibilities:
17558 mmap private not fixed
17559 mmap private fixed at somewhere currently unmapped
17560 mmap private fixed at somewhere already mapped
17561 mmap shared not fixed
17562 mmap shared fixed at somewhere currently unmapped
17563 mmap shared fixed at somewhere already mapped
17564 For private mappings, we should verify that changes cannot be read()
17565 back from the file, nor mmap's back from the file at a different
17566 address. (There have been systems where private was not correctly
17567 implemented like the infamous i386 svr4.0, and systems where the
17568 VM page cache was not coherent with the file system buffer cache
17569 like early versions of FreeBSD and possibly contemporary NetBSD.)
17570 For shared mappings, we should conversely verify that changes get
17571 propagated back to all the places they're supposed to be.
17573 Grep wants private fixed already mapped.
17574 The main things grep needs to know about mmap are:
17575 * does it exist and is it safe to write into the mmap'd area
17576 * how to use it (BSD variants) */
17579 #include <sys/mman.h>
17581 #if !STDC_HEADERS && !HAVE_STDLIB_H
17585 /* This mess was copied from the GNU getpagesize.h. */
17586 #if !HAVE_GETPAGESIZE
17587 /* Assume that all systems that can run configure have sys/param.h. */
17588 # if !HAVE_SYS_PARAM_H
17589 # define HAVE_SYS_PARAM_H 1
17592 # ifdef _SC_PAGESIZE
17593 # define getpagesize() sysconf(_SC_PAGESIZE)
17594 # else /* no _SC_PAGESIZE */
17595 # if HAVE_SYS_PARAM_H
17596 # include <sys/param.h>
17597 # ifdef EXEC_PAGESIZE
17598 # define getpagesize() EXEC_PAGESIZE
17599 # else /* no EXEC_PAGESIZE */
17601 # define getpagesize() NBPG * CLSIZE
17604 # endif /* no CLSIZE */
17605 # else /* no NBPG */
17607 # define getpagesize() NBPC
17608 # else /* no NBPC */
17610 # define getpagesize() PAGESIZE
17611 # endif /* PAGESIZE */
17612 # endif /* no NBPC */
17613 # endif /* no NBPG */
17614 # endif /* no EXEC_PAGESIZE */
17615 # else /* no HAVE_SYS_PARAM_H */
17616 # define getpagesize() 8192 /* punt totally */
17617 # endif /* no HAVE_SYS_PARAM_H */
17618 # endif /* no _SC_PAGESIZE */
17620 #endif /* no HAVE_GETPAGESIZE */
17625 char *data, *data2, *data3;
17629 pagesize = getpagesize ();
17631 /* First, make a file with some known garbage in it. */
17632 data = (char *) malloc (pagesize);
17635 for (i = 0; i < pagesize; ++i)
17636 *(data + i) = rand ();
17638 fd = creat ("conftest.mmap", 0600);
17641 if (write (fd, data, pagesize) != pagesize)
17645 /* Next, try to mmap the file at a fixed address which already has
17646 something else allocated at it. If we can, also make sure that
17647 we see the same garbage. */
17648 fd = open ("conftest.mmap", O_RDWR);
17651 data2 = (char *) malloc (2 * pagesize);
17654 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17655 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17656 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17658 for (i = 0; i < pagesize; ++i)
17659 if (*(data + i) != *(data2 + i))
17662 /* Finally, make sure that changes to the mapped area do not
17663 percolate back to the file as seen by read(). (This is a bug on
17664 some variants of i386 svr4.0.) */
17665 for (i = 0; i < pagesize; ++i)
17666 *(data2 + i) = *(data2 + i) + 1;
17667 data3 = (char *) malloc (pagesize);
17670 if (read (fd, data3, pagesize) != pagesize)
17672 for (i = 0; i < pagesize; ++i)
17673 if (*(data + i) != *(data3 + i))
17679 rm -f conftest$ac_exeext
17680 if { (ac_try="$ac_link"
17681 case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_link") 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17690 { (case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_try") 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
17699 ac_cv_func_mmap_fixed_mapped=yes
17701 echo "$as_me: program exited with status $ac_status" >&5
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 ( exit $ac_status )
17706 ac_cv_func_mmap_fixed_mapped=no
17708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17713 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17714 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17715 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17717 cat >>confdefs.h <<\_ACEOF
17718 #define HAVE_MMAP 1
17722 rm -f conftest.mmap
17724 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17725 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17726 if test "${ac_cv_func_mmap_file+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 ac_cpp='$CPP $CPPFLAGS'
17731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17735 if test "$cross_compiling" = yes; then
17736 ac_cv_func_mmap_file=no
17738 cat >conftest.$ac_ext <<_ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17746 #include <sys/types.h>
17747 #include <sys/mman.h>
17755 fd = creat ("foo",0777);
17756 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17758 return (fd != (int) MAP_FAILED);
17763 rm -f conftest$ac_exeext
17764 if { (ac_try="$ac_link"
17765 case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_link") 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17774 { (case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_try") 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_cv_func_mmap_file=yes
17785 echo "$as_me: program exited with status $ac_status" >&5
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 ( exit $ac_status )
17790 ac_cv_func_mmap_file=no
17792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17797 ac_cpp='$CPP $CPPFLAGS'
17798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17804 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17805 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17806 if test "$ac_cv_func_mmap_file" = yes; then
17808 cat >>confdefs.h <<\_ACEOF
17809 #define HAVE_MMAP_FILE
17816 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17817 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17818 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 if test "$llvm_cv_os_type" = "Interix" ; then
17822 ac_cv_need_dev_zero_for_mmap=yes
17824 ac_cv_need_dev_zero_for_mmap=no
17828 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17829 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17830 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17832 cat >>confdefs.h <<\_ACEOF
17833 #define NEED_DEV_ZERO_FOR_MMAP 1
17838 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17840 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17841 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17843 if test "$ac_cv_func_mmap_file" = "no"
17845 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17846 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17850 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17851 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17853 ac_cpp='$CXXCPP $CPPFLAGS'
17854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17858 cat >conftest.$ac_ext <<_ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17867 volatile unsigned long val = 1;
17868 __sync_synchronize();
17869 __sync_val_compare_and_swap(&val, 1, 0);
17870 __sync_add_and_fetch(&val, 1);
17871 __sync_sub_and_fetch(&val, 1);
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (ac_try="$ac_link"
17879 case "(($ac_try" in
17880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881 *) ac_try_echo=$ac_try;;
17883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17884 (eval "$ac_link") 2>conftest.er1
17886 grep -v '^ *+' conftest.er1 >conftest.err
17888 cat conftest.err >&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); } &&
17891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17892 { (case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_try") 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; } &&
17901 { ac_try='test -s conftest$ac_exeext'
17902 { (case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_try") 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; }; then
17912 { echo "$as_me:$LINENO: result: yes" >&5
17913 echo "${ECHO_T}yes" >&6; }
17915 cat >>confdefs.h <<\_ACEOF
17916 #define LLVM_HAS_ATOMICS 1
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17925 { echo "$as_me:$LINENO: result: no" >&5
17926 echo "${ECHO_T}no" >&6; }
17928 cat >>confdefs.h <<\_ACEOF
17929 #define LLVM_HAS_ATOMICS 0
17932 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17933 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17940 ac_cpp='$CPP $CPPFLAGS'
17941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17947 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17948 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17949 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17950 if test "${llvm_cv_linux_mixed+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17959 cat >conftest.$ac_ext <<_ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17966 error: Not x86-64 even if uname says so!
17977 rm -f conftest.$ac_objext
17978 if { (ac_try="$ac_compile"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_compile") 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 llvm_cv_linux_mixed=no
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 llvm_cv_linux_mixed=yes
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 ac_cpp='$CPP $CPPFLAGS'
18022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18028 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18029 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18031 if test "$llvm_cv_linux_mixed" = "yes"; then
18032 llvm_cv_target_arch="x86"
18038 for ac_func in __dso_handle
18040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 cat >conftest.$ac_ext <<_ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18054 #define $ac_func innocuous_$ac_func
18056 /* System header to define __stub macros and hopefully few prototypes,
18057 which can conflict with char $ac_func (); below.
18058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18059 <limits.h> exists even on freestanding compilers. */
18062 # include <limits.h>
18064 # include <assert.h>
18069 /* Override any GCC internal prototype to avoid an error.
18070 Use char because int might match the return type of a GCC
18071 builtin and then its argument prototype would still apply. */
18076 /* The GNU C library defines this for functions which it implements
18077 to always fail with ENOSYS. Some functions are actually named
18078 something starting with __ and the normal name is an alias. */
18079 #if defined __stub_$ac_func || defined __stub___$ac_func
18086 return $ac_func ();
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (ac_try="$ac_link"
18093 case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_link") 2>conftest.er1
18100 grep -v '^ *+' conftest.er1 >conftest.err
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18106 { (case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_try") 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; } &&
18115 { ac_try='test -s conftest$ac_exeext'
18116 { (case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_try") 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 eval "$as_ac_var=yes"
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 eval "$as_ac_var=no"
18133 rm -f core conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18136 ac_res=`eval echo '${'$as_ac_var'}'`
18137 { echo "$as_me:$LINENO: result: $ac_res" >&5
18138 echo "${ECHO_T}$ac_res" >&6; }
18139 if test `eval echo '${'$as_ac_var'}'` = yes; then
18140 cat >>confdefs.h <<_ACEOF
18141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18148 SHLIBEXT=$llvm_shlib_ext
18151 if test "${prefix}" = "NONE" ; then
18152 prefix="/usr/local"
18154 eval LLVM_PREFIX="${prefix}";
18155 eval LLVM_BINDIR="${prefix}/bin";
18156 eval LLVM_DATADIR="${prefix}/share/llvm";
18157 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18158 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18159 eval LLVM_INCLUDEDIR="${prefix}/include";
18160 eval LLVM_INFODIR="${prefix}/info";
18161 eval LLVM_MANDIR="${prefix}/man";
18162 LLVM_CONFIGTIME=`date`
18173 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18174 LLVM_CONFIGTIME="(timestamp not enabled)"
18178 cat >>confdefs.h <<_ACEOF
18179 #define LLVM_PREFIX "$LLVM_PREFIX"
18183 cat >>confdefs.h <<_ACEOF
18184 #define LLVM_BINDIR "$LLVM_BINDIR"
18188 cat >>confdefs.h <<_ACEOF
18189 #define LLVM_DATADIR "$LLVM_DATADIR"
18193 cat >>confdefs.h <<_ACEOF
18194 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18198 cat >>confdefs.h <<_ACEOF
18199 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18203 cat >>confdefs.h <<_ACEOF
18204 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18208 cat >>confdefs.h <<_ACEOF
18209 #define LLVM_INFODIR "$LLVM_INFODIR"
18213 cat >>confdefs.h <<_ACEOF
18214 #define LLVM_MANDIR "$LLVM_MANDIR"
18218 cat >>confdefs.h <<_ACEOF
18219 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18223 cat >>confdefs.h <<_ACEOF
18224 #define LLVM_HOST_TRIPLE "$host"
18228 cat >>confdefs.h <<_ACEOF
18229 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18233 if test "$BINDINGS_TO_BUILD" = auto ; then
18234 BINDINGS_TO_BUILD=""
18235 if test "x$OCAMLFIND" != x ; then
18236 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18238 if test "x$GO" != x ; then
18239 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18240 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18244 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18247 binding_prereqs_failed=0
18248 for a_binding in $BINDINGS_TO_BUILD ; do
18249 case "$a_binding" in
18251 if test "x$OCAMLFIND" = x ; then
18252 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18253 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18254 binding_prereqs_failed=1
18257 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18264 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18265 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18266 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18267 binding_prereqs_failed=1
18270 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18274 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18275 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18279 if test "x$with_ocaml_libdir" != xauto ; then
18280 OCAML_LIBDIR=$with_ocaml_libdir
18283 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18284 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18286 # ocaml stdlib is beneath our prefix; use stdlib
18287 OCAML_LIBDIR=$ocaml_stdlib
18290 # ocaml stdlib is outside our prefix; use libdir/ocaml
18291 OCAML_LIBDIR=${prefix}/lib/ocaml
18297 if test "x$GO" = x ; then
18298 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18299 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18300 binding_prereqs_failed=1
18302 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18305 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18306 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18307 binding_prereqs_failed=1
18313 if test "$binding_prereqs_failed" = 1 ; then
18314 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18315 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18316 { (exit 1); exit 1; }; }
18319 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18320 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18321 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18325 ac_cpp='$CXXCPP $CPPFLAGS'
18326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18330 oldcxxflags="$CXXFLAGS"
18331 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18347 rm -f conftest.$ac_objext
18348 if { (ac_try="$ac_compile"
18349 case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_compile") 2>conftest.er1
18356 grep -v '^ *+' conftest.er1 >conftest.err
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18362 { (case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_try") 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_try") 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381 llvm_cv_cxx_visibility_inlines_hidden=yes
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 llvm_cv_cxx_visibility_inlines_hidden=no
18389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18390 CXXFLAGS="$oldcxxflags"
18392 ac_cpp='$CPP $CPPFLAGS'
18393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18399 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18400 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18401 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18402 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18405 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18410 if test "$llvm_cv_link_use_r" = "yes" ; then
18417 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18418 RDYNAMIC="-rdynamic"
18425 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18432 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18434 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18436 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18438 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18440 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18443 ac_config_files="$ac_config_files Makefile.config"
18446 ac_config_files="$ac_config_files llvm.spec"
18449 ac_config_files="$ac_config_files docs/doxygen.cfg"
18452 if test "${clang_src_root}" = ""; then
18453 clang_src_root="$srcdir/tools/clang"
18455 if test -f ${clang_src_root}/README.txt; then
18456 configh="include/clang/Config/config.h"
18457 doxy="docs/doxygen.cfg"
18458 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18460 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18464 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18467 test "x$program_prefix" = "xNONE" && program_prefix=""
18471 ac_config_commands="$ac_config_commands setup"
18473 ac_config_commands="$ac_config_commands Makefile"
18476 ac_config_commands="$ac_config_commands Makefile.common"
18479 ac_config_commands="$ac_config_commands examples/Makefile"
18482 ac_config_commands="$ac_config_commands lib/Makefile"
18485 ac_config_commands="$ac_config_commands test/Makefile"
18488 ac_config_commands="$ac_config_commands test/Makefile.tests"
18491 ac_config_commands="$ac_config_commands unittests/Makefile"
18494 ac_config_commands="$ac_config_commands tools/Makefile"
18497 ac_config_commands="$ac_config_commands utils/Makefile"
18500 ac_config_commands="$ac_config_commands projects/Makefile"
18503 ac_config_commands="$ac_config_commands bindings/Makefile"
18506 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18510 cat >confcache <<\_ACEOF
18511 # This file is a shell script that caches the results of configure
18512 # tests run on this system so they can be shared between configure
18513 # scripts and configure runs, see configure's option --config-cache.
18514 # It is not useful on other systems. If it contains results you don't
18515 # want to keep, you may remove or edit it.
18517 # config.status only pays attention to the cache file if you give it
18518 # the --recheck option to rerun configure.
18520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18522 # following values.
18526 # The following way of writing the cache mishandles newlines in values,
18527 # but we know of no workaround that is simple, portable, and efficient.
18528 # So, we kill variables containing newlines.
18529 # Ultrix sh set writes to stderr and can't be redirected directly,
18530 # and sets the high bit in the cache file unless we assign to the vars.
18532 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18533 eval ac_val=\$$ac_var
18537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18541 _ | IFS | as_nl) ;; #(
18542 *) $as_unset $ac_var ;;
18548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18549 *${as_nl}ac_space=\ *)
18550 # `set' does not quote correctly, so add quotes (double-quote
18551 # substitution turns \\\\ into \\, and sed turns \\ into \).
18554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18557 # `set' quotes correctly as required by POSIX, so do not add quotes.
18558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18572 if test -w "$cache_file"; then
18573 test "x$cache_file" != "x/dev/null" &&
18574 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18575 echo "$as_me: updating cache $cache_file" >&6;}
18576 cat confcache >$cache_file
18578 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18579 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18585 # Let make expand exec_prefix.
18586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18588 DEFS=-DHAVE_CONFIG_H
18592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18593 # 1. Remove the extension, and $U if already installed.
18594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18595 ac_i=`echo "$ac_i" | sed "$ac_script"`
18596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18597 # will be set to the directory where LIBOBJS objects are built.
18598 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18599 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18601 LIBOBJS=$ac_libobjs
18603 LTLIBOBJS=$ac_ltlibobjs
18607 : ${CONFIG_STATUS=./config.status}
18608 ac_clean_files_save=$ac_clean_files
18609 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18610 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18611 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18612 cat >$CONFIG_STATUS <<_ACEOF
18614 # Generated by $as_me.
18615 # Run this file to recreate the current configuration.
18616 # Compiler output produced by configure, useful for debugging
18617 # configure, is in config.log if it exists.
18620 ac_cs_recheck=false
18622 SHELL=\${CONFIG_SHELL-$SHELL}
18625 cat >>$CONFIG_STATUS <<\_ACEOF
18626 ## --------------------- ##
18627 ## M4sh Initialization. ##
18628 ## --------------------- ##
18630 # Be Bourne compatible
18631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18634 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18635 # is contrary to our usage. Disable this feature.
18636 alias -g '${1+"$@"}'='"$@"'
18637 setopt NO_GLOB_SUBST
18639 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18641 BIN_SH=xpg4; export BIN_SH # for Tru64
18642 DUALCASE=1; export DUALCASE # for MKS sh
18646 # Avoid depending upon Character Ranges.
18647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18650 as_cr_digits='0123456789'
18651 as_cr_alnum=$as_cr_Letters$as_cr_digits
18653 # The user is always right.
18654 if test "${PATH_SEPARATOR+set}" != set; then
18655 echo "#! /bin/sh" >conf$$.sh
18656 echo "exit 0" >>conf$$.sh
18658 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18666 # Support unset when possible.
18667 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18675 # We need space, tab and new line, in precisely that order. Quoting is
18676 # there to prevent editors from complaining about space-tab.
18677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18678 # splitting by setting IFS to empty value.)
18683 # Find who we are. Look in the path if we contain no directory separator.
18685 *[\\/]* ) as_myself=$0 ;;
18686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18687 for as_dir in $PATH
18690 test -z "$as_dir" && as_dir=.
18691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18697 # We did not find ourselves, most probably we were run as `sh COMMAND'
18698 # in which case we are not to be found in the path.
18699 if test "x$as_myself" = x; then
18702 if test ! -f "$as_myself"; then
18703 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18704 { (exit 1); exit 1; }
18707 # Work around bugs in pre-3.0 UWIN ksh.
18708 for as_var in ENV MAIL MAILPATH
18709 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18717 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18718 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18719 LC_TELEPHONE LC_TIME
18721 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18722 eval $as_var=C; export $as_var
18724 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18728 # Required to use basename.
18729 if expr a : '\(a\)' >/dev/null 2>&1 &&
18730 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18736 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18737 as_basename=basename
18743 # Name of the executable.
18744 as_me=`$as_basename -- "$0" ||
18745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18746 X"$0" : 'X\(//\)$' \| \
18747 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18749 sed '/^.*\/\([^/][^/]*\)\/*$/{
18768 as_lineno_1=$LINENO
18769 as_lineno_2=$LINENO
18770 test "x$as_lineno_1" != "x$as_lineno_2" &&
18771 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18773 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18774 # uniformly replaced by the line number. The first 'sed' inserts a
18775 # line-number line after each line using $LINENO; the second 'sed'
18776 # does the real work. The second script uses 'N' to pair each
18777 # line-number line with the line containing $LINENO, and appends
18778 # trailing '-' during substitution so that $LINENO is not a special
18779 # case at line end.
18780 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18781 # scripts with optimization help from Paolo Bonzini. Blame Lee
18782 # E. McMahon (1931-1989) for sed's syntax. :-)
18794 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18797 ' >$as_me.lineno &&
18798 chmod +x "$as_me.lineno" ||
18799 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18800 { (exit 1); exit 1; }; }
18802 # Don't try to exec as it changes $[0], causing all sort of problems
18803 # (the dirname of $[0] is not the place where we might find the
18804 # original and so on. Autoconf is especially sensitive to this).
18805 . "./$as_me.lineno"
18806 # Exit status is that of the last command.
18811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18817 ECHO_C= ECHO_N= ECHO_T=
18818 case `echo -n x` in
18820 case `echo 'x\c'` in
18821 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18828 if expr a : '\(a\)' >/dev/null 2>&1 &&
18829 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18835 rm -f conf$$ conf$$.exe conf$$.file
18836 if test -d conf$$.dir; then
18837 rm -f conf$$.dir/conf$$.file
18843 if ln -s conf$$.file conf$$ 2>/dev/null; then
18845 # ... but there are two gotchas:
18846 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18847 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18848 # In both cases, we have to default to `cp -p'.
18849 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18851 elif ln conf$$.file conf$$ 2>/dev/null; then
18856 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18857 rmdir conf$$.dir 2>/dev/null
18859 if mkdir -p . 2>/dev/null; then
18862 test -d ./-p && rmdir ./-p
18866 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18867 # systems may use methods other than mode bits to determine executability.
18868 cat >conf$$.file <<_ASEOF
18872 chmod +x conf$$.file
18873 if test -x conf$$.file >/dev/null 2>&1; then
18874 as_executable_p="test -x"
18880 # Sed expression to map a string onto a valid CPP name.
18881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18883 # Sed expression to map a string onto a valid variable name.
18884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18889 # Save the log message, to keep $[0] and so on meaningful, and to
18890 # report actual input values of CONFIG_FILES etc. instead of their
18891 # values after options handling.
18893 This file was extended by LLVM $as_me 3.6.0svn, which was
18894 generated by GNU Autoconf 2.60. Invocation command line was
18896 CONFIG_FILES = $CONFIG_FILES
18897 CONFIG_HEADERS = $CONFIG_HEADERS
18898 CONFIG_LINKS = $CONFIG_LINKS
18899 CONFIG_COMMANDS = $CONFIG_COMMANDS
18902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18907 cat >>$CONFIG_STATUS <<_ACEOF
18908 # Files that config.status was made for.
18909 config_files="$ac_config_files"
18910 config_headers="$ac_config_headers"
18911 config_commands="$ac_config_commands"
18915 cat >>$CONFIG_STATUS <<\_ACEOF
18917 \`$as_me' instantiates files from templates according to the
18918 current configuration.
18920 Usage: $0 [OPTIONS] [FILE]...
18922 -h, --help print this help, then exit
18923 -V, --version print version number, then exit
18924 -q, --quiet do not print progress messages
18925 -d, --debug don't remove temporary files
18926 --recheck update $as_me by reconfiguring in the same conditions
18927 --file=FILE[:TEMPLATE]
18928 instantiate the configuration file FILE
18929 --header=FILE[:TEMPLATE]
18930 instantiate the configuration header FILE
18932 Configuration files:
18935 Configuration headers:
18938 Configuration commands:
18941 Report bugs to <bug-autoconf@gnu.org>."
18944 cat >>$CONFIG_STATUS <<_ACEOF
18946 LLVM config.status 3.6.0svn
18947 configured by $0, generated by GNU Autoconf 2.60,
18948 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18950 Copyright (C) 2006 Free Software Foundation, Inc.
18951 This config.status script is free software; the Free Software Foundation
18952 gives unlimited permission to copy, distribute and modify it."
18959 cat >>$CONFIG_STATUS <<\_ACEOF
18960 # If no file are specified by the user, then we need to provide default
18961 # value. By we need to know if files were specified by the user.
18967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18979 # Handling of the options.
18980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18983 echo "$ac_cs_version"; exit ;;
18984 --debug | --debu | --deb | --de | --d | -d )
18986 --file | --fil | --fi | --f )
18988 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18989 ac_need_defaults=false;;
18990 --header | --heade | --head | --hea )
18992 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18993 ac_need_defaults=false;;
18995 # Conflict between --help and --header
18996 { echo "$as_me: error: ambiguous option: $1
18997 Try \`$0 --help' for more information." >&2
18998 { (exit 1); exit 1; }; };;
18999 --help | --hel | -h )
19000 echo "$ac_cs_usage"; exit ;;
19001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19005 # This is an error.
19006 -*) { echo "$as_me: error: unrecognized option: $1
19007 Try \`$0 --help' for more information." >&2
19008 { (exit 1); exit 1; }; } ;;
19010 *) ac_config_targets="$ac_config_targets $1"
19011 ac_need_defaults=false ;;
19017 ac_configure_extra_args=
19019 if $ac_cs_silent; then
19021 ac_configure_extra_args="$ac_configure_extra_args --silent"
19025 cat >>$CONFIG_STATUS <<_ACEOF
19026 if \$ac_cs_recheck; then
19027 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19028 CONFIG_SHELL=$SHELL
19029 export CONFIG_SHELL
19030 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19034 cat >>$CONFIG_STATUS <<\_ACEOF
19038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19039 ## Running $as_me. ##
19045 cat >>$CONFIG_STATUS <<_ACEOF
19049 llvm_src="${srcdir}"
19053 cat >>$CONFIG_STATUS <<\_ACEOF
19055 # Handling of arguments.
19056 for ac_config_target in $ac_config_targets
19058 case $ac_config_target in
19059 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19060 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19061 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19062 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19063 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19064 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19065 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19066 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19067 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19068 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19069 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19070 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19071 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19072 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19073 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19074 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19075 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19076 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19077 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19078 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19079 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19080 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19081 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19082 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19083 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19084 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19086 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19087 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19088 { (exit 1); exit 1; }; };;
19093 # If the user did not use the arguments to specify the items to instantiate,
19094 # then the envvar interface is used. Set only those that are not.
19095 # We use the long form for the default assignment because of an extremely
19096 # bizarre bug on SunOS 4.1.3.
19097 if $ac_need_defaults; then
19098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19100 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19103 # Have a temporary directory for convenience. Make it in the build tree
19104 # simply because there is no reason against having it here, and in addition,
19105 # creating and moving files from /tmp can sometimes cause problems.
19106 # Hook for its removal unless debugging.
19107 # Note that there is a small window in which the directory will not be cleaned:
19108 # after its creation but before its name has been assigned to `$tmp'.
19112 trap 'exit_status=$?
19113 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19115 trap '{ (exit 1); exit 1; }' 1 2 13 15
19117 # Create a (secure) tmp directory for tmp files.
19120 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19121 test -n "$tmp" && test -d "$tmp"
19124 tmp=./conf$$-$RANDOM
19125 (umask 077 && mkdir "$tmp")
19128 echo "$me: cannot create a temporary directory in ." >&2
19129 { (exit 1); exit 1; }
19133 # Set up the sed scripts for CONFIG_FILES section.
19136 # No need to generate the scripts if there are no CONFIG_FILES.
19137 # This happens for instance when ./config.status config.h
19138 if test -n "$CONFIG_FILES"; then
19145 for ac_last_try in false false false false false :; do
19146 cat >conf$$subs.sed <<_ACEOF
19147 SHELL!$SHELL$ac_delim
19148 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19149 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19150 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19151 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19152 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19153 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19154 exec_prefix!$exec_prefix$ac_delim
19155 prefix!$prefix$ac_delim
19156 program_transform_name!$program_transform_name$ac_delim
19157 bindir!$bindir$ac_delim
19158 sbindir!$sbindir$ac_delim
19159 libexecdir!$libexecdir$ac_delim
19160 datarootdir!$datarootdir$ac_delim
19161 datadir!$datadir$ac_delim
19162 sysconfdir!$sysconfdir$ac_delim
19163 sharedstatedir!$sharedstatedir$ac_delim
19164 localstatedir!$localstatedir$ac_delim
19165 includedir!$includedir$ac_delim
19166 oldincludedir!$oldincludedir$ac_delim
19167 docdir!$docdir$ac_delim
19168 infodir!$infodir$ac_delim
19169 htmldir!$htmldir$ac_delim
19170 dvidir!$dvidir$ac_delim
19171 pdfdir!$pdfdir$ac_delim
19172 psdir!$psdir$ac_delim
19173 libdir!$libdir$ac_delim
19174 localedir!$localedir$ac_delim
19175 mandir!$mandir$ac_delim
19176 DEFS!$DEFS$ac_delim
19177 ECHO_C!$ECHO_C$ac_delim
19178 ECHO_N!$ECHO_N$ac_delim
19179 ECHO_T!$ECHO_T$ac_delim
19180 LIBS!$LIBS$ac_delim
19181 build_alias!$build_alias$ac_delim
19182 host_alias!$host_alias$ac_delim
19183 target_alias!$target_alias$ac_delim
19184 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19185 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19186 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19187 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19188 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19190 CFLAGS!$CFLAGS$ac_delim
19191 LDFLAGS!$LDFLAGS$ac_delim
19192 CPPFLAGS!$CPPFLAGS$ac_delim
19193 ac_ct_CC!$ac_ct_CC$ac_delim
19194 EXEEXT!$EXEEXT$ac_delim
19195 OBJEXT!$OBJEXT$ac_delim
19197 CXXFLAGS!$CXXFLAGS$ac_delim
19198 ac_ct_CXX!$ac_ct_CXX$ac_delim
19200 subdirs!$subdirs$ac_delim
19201 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19202 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19203 build!$build$ac_delim
19204 build_cpu!$build_cpu$ac_delim
19205 build_vendor!$build_vendor$ac_delim
19206 build_os!$build_os$ac_delim
19207 host!$host$ac_delim
19208 host_cpu!$host_cpu$ac_delim
19209 host_vendor!$host_vendor$ac_delim
19210 host_os!$host_os$ac_delim
19211 target!$target$ac_delim
19212 target_cpu!$target_cpu$ac_delim
19213 target_vendor!$target_vendor$ac_delim
19214 target_os!$target_os$ac_delim
19216 HOST_OS!$HOST_OS$ac_delim
19217 TARGET_OS!$TARGET_OS$ac_delim
19218 LINKALL!$LINKALL$ac_delim
19219 NOLINKALL!$NOLINKALL$ac_delim
19220 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19221 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19222 ARCH!$ARCH$ac_delim
19223 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19224 HOST_ARCH!$HOST_ARCH$ac_delim
19225 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19226 BUILD_CC!$BUILD_CC$ac_delim
19227 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19228 BUILD_CXX!$BUILD_CXX$ac_delim
19229 CVSBUILD!$CVSBUILD$ac_delim
19230 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19231 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19232 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19233 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19234 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19235 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19236 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19237 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19238 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19239 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19240 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19241 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19242 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19243 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19246 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19248 elif $ac_last_try; then
19249 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19250 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19251 { (exit 1); exit 1; }; }
19253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19257 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19258 if test -n "$ac_eof"; then
19259 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19260 ac_eof=`expr $ac_eof + 1`
19263 cat >>$CONFIG_STATUS <<_ACEOF
19264 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19268 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19269 s/^/s,@/; s/!/@,|#_!!_#|/
19272 s/'"$ac_delim"'$/,g/; t
19274 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19275 ' >>$CONFIG_STATUS <conf$$subs.sed
19276 rm -f conf$$subs.sed
19277 cat >>$CONFIG_STATUS <<_ACEOF
19283 for ac_last_try in false false false false false :; do
19284 cat >conf$$subs.sed <<_ACEOF
19285 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19287 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19288 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19289 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19290 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19291 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19292 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19293 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19294 ENABLE_PIC!$ENABLE_PIC$ac_delim
19295 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19296 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19297 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19298 ALL_TARGETS!$ALL_TARGETS$ac_delim
19299 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19300 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19301 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19302 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19303 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19304 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19305 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19306 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19307 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19308 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19309 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19310 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19311 ifGNUmake!$ifGNUmake$ac_delim
19312 LN_S!$LN_S$ac_delim
19316 DATE!$DATE$ac_delim
19317 FIND!$FIND$ac_delim
19318 GREP!$GREP$ac_delim
19319 MKDIR!$MKDIR$ac_delim
19321 RANLIB!$RANLIB$ac_delim
19326 BINPWD!$BINPWD$ac_delim
19328 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19329 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19330 INSTALL_DATA!$INSTALL_DATA$ac_delim
19331 BZIP2!$BZIP2$ac_delim
19333 DOXYGEN!$DOXYGEN$ac_delim
19334 GROFF!$GROFF$ac_delim
19335 GZIPBIN!$GZIPBIN$ac_delim
19336 PDFROFF!$PDFROFF$ac_delim
19339 OCAMLFIND!$OCAMLFIND$ac_delim
19341 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19342 EGREP!$EGREP$ac_delim
19343 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19344 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19345 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19346 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19347 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19348 NO_COMMENT!$NO_COMMENT$ac_delim
19349 PYTHON!$PYTHON$ac_delim
19350 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19351 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19352 USE_OPROFILE!$USE_OPROFILE$ac_delim
19353 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19354 XML2CONFIG!$XML2CONFIG$ac_delim
19355 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19356 LIBXML2_INC!$LIBXML2_INC$ac_delim
19357 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19358 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19359 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19360 MMAP_FILE!$MMAP_FILE$ac_delim
19361 SHLIBEXT!$SHLIBEXT$ac_delim
19362 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19363 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19364 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19365 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19366 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19367 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19368 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19369 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19370 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19371 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19372 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19373 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19374 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19375 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19376 RPATH!$RPATH$ac_delim
19377 RDYNAMIC!$RDYNAMIC$ac_delim
19378 program_prefix!$program_prefix$ac_delim
19379 LIBOBJS!$LIBOBJS$ac_delim
19380 LTLIBOBJS!$LTLIBOBJS$ac_delim
19383 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19385 elif $ac_last_try; then
19386 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19387 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19388 { (exit 1); exit 1; }; }
19390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19394 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19395 if test -n "$ac_eof"; then
19396 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19397 ac_eof=`expr $ac_eof + 1`
19400 cat >>$CONFIG_STATUS <<_ACEOF
19401 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19405 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19406 s/^/s,@/; s/!/@,|#_!!_#|/
19409 s/'"$ac_delim"'$/,g/; t
19411 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19412 ' >>$CONFIG_STATUS <conf$$subs.sed
19413 rm -f conf$$subs.sed
19414 cat >>$CONFIG_STATUS <<_ACEOF
19419 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19420 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19421 # trailing colons and then remove the whole line if VPATH becomes empty
19422 # (actually we leave an empty line to preserve line numbers).
19423 if test "x$srcdir" = x.; then
19424 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19425 s/:*\$(srcdir):*/:/
19426 s/:*\${srcdir}:*/:/
19428 s/^\([^=]*=[ ]*\):*/\1/
19434 cat >>$CONFIG_STATUS <<\_ACEOF
19435 fi # test -n "$CONFIG_FILES"
19438 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19441 :[FHLC]) ac_mode=$ac_tag; continue;;
19443 case $ac_mode$ac_tag in
19445 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19446 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19447 { (exit 1); exit 1; }; };;
19448 :[FH]-) ac_tag=-:-;;
19449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19466 -) ac_f="$tmp/stdin";;
19467 *) # Look for the file first in the build tree, then in the source tree
19468 # (if the path is not absolute). The absolute path cannot be DOS-style,
19469 # because $ac_f cannot contain `:'.
19473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19475 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19476 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19477 { (exit 1); exit 1; }; };;
19479 ac_file_inputs="$ac_file_inputs $ac_f"
19482 # Let's still pretend it is `configure' which instantiates (i.e., don't
19483 # use $as_me), people would be surprised to read:
19484 # /* config.h. Generated by config.status. */
19485 configure_input="Generated from "`IFS=:
19486 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19487 if test x"$ac_file" != x-; then
19488 configure_input="$ac_file. $configure_input"
19489 { echo "$as_me:$LINENO: creating $ac_file" >&5
19490 echo "$as_me: creating $ac_file" >&6;}
19494 *:-:* | *:-) cat >"$tmp/stdin";;
19499 ac_dir=`$as_dirname -- "$ac_file" ||
19500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19501 X"$ac_file" : 'X\(//\)[^/]' \| \
19502 X"$ac_file" : 'X\(//\)$' \| \
19503 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19509 /^X\(\/\/\)[^/].*/{
19524 -*) as_dir=./$as_dir;;
19526 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19530 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19531 *) as_qdir=$as_dir;;
19533 as_dirs="'$as_qdir' $as_dirs"
19534 as_dir=`$as_dirname -- "$as_dir" ||
19535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19536 X"$as_dir" : 'X\(//\)[^/]' \| \
19537 X"$as_dir" : 'X\(//\)$' \| \
19538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19544 /^X\(\/\/\)[^/].*/{
19557 test -d "$as_dir" && break
19559 test -z "$as_dirs" || eval "mkdir $as_dirs"
19560 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19561 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19562 { (exit 1); exit 1; }; }; }
19566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19568 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19569 # A ".." for each directory in $ac_dir_suffix.
19570 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19571 case $ac_top_builddir_sub in
19572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19576 ac_abs_top_builddir=$ac_pwd
19577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19578 # for backward compatibility:
19579 ac_top_builddir=$ac_top_build_prefix
19582 .) # We are building in place.
19584 ac_top_srcdir=$ac_top_builddir_sub
19585 ac_abs_top_srcdir=$ac_pwd ;;
19586 [\\/]* | ?:[\\/]* ) # Absolute name.
19587 ac_srcdir=$srcdir$ac_dir_suffix;
19588 ac_top_srcdir=$srcdir
19589 ac_abs_top_srcdir=$srcdir ;;
19590 *) # Relative name.
19591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19592 ac_top_srcdir=$ac_top_build_prefix$srcdir
19593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19610 cat >>$CONFIG_STATUS <<\_ACEOF
19611 # If the template does not know about datarootdir, expand it.
19612 # FIXME: This hack should be removed a few years after 2.60.
19613 ac_datarootdir_hack=; ac_datarootdir_seen=
19615 case `sed -n '/datarootdir/ {
19624 ' $ac_file_inputs` in
19625 *datarootdir*) ac_datarootdir_seen=yes;;
19626 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19627 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19628 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19630 cat >>$CONFIG_STATUS <<_ACEOF
19631 ac_datarootdir_hack='
19632 s&@datadir@&$datadir&g
19633 s&@docdir@&$docdir&g
19634 s&@infodir@&$infodir&g
19635 s&@localedir@&$localedir&g
19636 s&@mandir@&$mandir&g
19637 s&\\\${datarootdir}&$datarootdir&g' ;;
19641 # Neutralize VPATH when `$srcdir' = `.'.
19642 # Shell code in configure.ac might set extrasub.
19643 # FIXME: do we really want to maintain this feature?
19644 cat >>$CONFIG_STATUS <<_ACEOF
19648 cat >>$CONFIG_STATUS <<\_ACEOF
19650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19651 s&@configure_input@&$configure_input&;t t
19652 s&@top_builddir@&$ac_top_builddir_sub&;t t
19653 s&@srcdir@&$ac_srcdir&;t t
19654 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19655 s&@top_srcdir@&$ac_top_srcdir&;t t
19656 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19657 s&@builddir@&$ac_builddir&;t t
19658 s&@abs_builddir@&$ac_abs_builddir&;t t
19659 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19660 s&@INSTALL@&$ac_INSTALL&;t t
19661 $ac_datarootdir_hack
19662 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19665 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19667 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19668 which seems to be undefined. Please make sure it is defined." >&5
19669 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19670 which seems to be undefined. Please make sure it is defined." >&2;}
19674 -) cat "$tmp/out"; rm -f "$tmp/out";;
19675 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19684 # Transform confdefs.h into a sed script `conftest.defines', that
19685 # substitutes the proper values into config.h.in to produce config.h.
19686 rm -f conftest.defines conftest.tail
19687 # First, append a space to every undef/define line, to ease matching.
19688 echo 's/$/ /' >conftest.defines
19689 # Then, protect against being on the right side of a sed subst, or in
19690 # an unquoted here document, in config.status. If some macros were
19691 # called several times there might be several #defines for the same
19692 # symbol, which is useless. But do not sort them, since the last
19693 # AC_DEFINE must be honored.
19694 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19695 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19696 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19697 # PARAMS is the parameter list in the macro definition--in most cases, it's
19698 # just an empty string.
19699 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19700 ac_dB='\\)[ (].*,\\1define\\2'
19708 s/^[ ]*#[ ]*define[ ][ ]*//
19713 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19714 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19715 ' >>conftest.defines
19717 # Remove the space that was appended to ease matching.
19718 # Then replace #undef with comments. This is necessary, for
19719 # example, in the case of _POSIX_SOURCE, which is predefined and required
19720 # on some systems where configure will not decide to define it.
19721 # (The regexp can be short, since the line contains either #define or #undef.)
19723 s,^[ #]*u.*,/* & */,' >>conftest.defines
19725 # Break up conftest.defines:
19726 ac_max_sed_lines=50
19728 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19729 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19730 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19732 ac_in='$ac_file_inputs'
19733 ac_out='"$tmp/out1"'
19734 ac_nxt='"$tmp/out2"'
19738 # Write a here document:
19739 cat >>$CONFIG_STATUS <<_ACEOF
19740 # First, check the format of the line:
19741 cat >"\$tmp/defines.sed" <<\\CEOF
19742 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19743 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19747 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19749 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19750 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19751 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19752 grep . conftest.tail >/dev/null || break
19753 rm -f conftest.defines
19754 mv conftest.tail conftest.defines
19756 rm -f conftest.defines conftest.tail
19758 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19759 cat >>$CONFIG_STATUS <<\_ACEOF
19760 if test x"$ac_file" != x-; then
19761 echo "/* $configure_input */" >"$tmp/config.h"
19762 cat "$ac_result" >>"$tmp/config.h"
19763 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19764 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19765 echo "$as_me: $ac_file is unchanged" >&6;}
19768 mv "$tmp/config.h" $ac_file
19771 echo "/* $configure_input */"
19777 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19778 echo "$as_me: executing $ac_file commands" >&6;}
19783 case $ac_file$ac_mode in
19784 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19785 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19786 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19787 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19788 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19789 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19790 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19791 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19792 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19793 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19794 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19795 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19796 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19797 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19798 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19799 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19800 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19801 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19802 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19803 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19804 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19805 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19806 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19807 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19813 { (exit 0); exit 0; }
19815 chmod +x $CONFIG_STATUS
19816 ac_clean_files=$ac_clean_files_save
19819 # configure is writing to config.log, and then calls config.status.
19820 # config.status does its own redirection, appending to config.log.
19821 # Unfortunately, on DOS this fails, as config.log is still kept open
19822 # by configure, so config.status won't be able to write to it; its
19823 # output is simply discarded. So we exec the FD to /dev/null,
19824 # effectively closing config.log, so it can be properly (re)opened and
19825 # appended to by config.status. When coming back to configure, we
19826 # need to make the FD available again.
19827 if test "$no_create" != yes; then
19829 ac_config_status_args=
19830 test "$silent" = yes &&
19831 ac_config_status_args="$ac_config_status_args --quiet"
19833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19836 # would make configure fail if this is the last instruction.
19837 $ac_cs_success || { (exit 1); exit 1; }
19841 # CONFIG_SUBDIRS section.
19843 if test "$no_recursion" != yes; then
19845 # Remove --cache-file and --srcdir arguments so they do not pile up.
19846 ac_sub_configure_args=
19848 eval "set x $ac_configure_args"
19852 if test -n "$ac_prev"; then
19857 -cache-file | --cache-file | --cache-fil | --cache-fi \
19858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19859 ac_prev=cache_file ;;
19860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19864 --config-cache | -C)
19866 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19868 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19870 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19872 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19876 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19878 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19882 # Always prepend --prefix to ensure using the same prefix
19883 # in subdir configurations.
19884 ac_arg="--prefix=$prefix"
19886 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19888 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19891 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19893 # Do not complain, so a configure script can configure whichever
19894 # parts of a large source tree are present.
19895 test -d "$srcdir/$ac_dir" || continue
19897 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19898 echo "$as_me:$LINENO: $ac_msg" >&5
19902 -*) as_dir=./$as_dir;;
19904 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19908 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19909 *) as_qdir=$as_dir;;
19911 as_dirs="'$as_qdir' $as_dirs"
19912 as_dir=`$as_dirname -- "$as_dir" ||
19913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19914 X"$as_dir" : 'X\(//\)[^/]' \| \
19915 X"$as_dir" : 'X\(//\)$' \| \
19916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19922 /^X\(\/\/\)[^/].*/{
19935 test -d "$as_dir" && break
19937 test -z "$as_dirs" || eval "mkdir $as_dirs"
19938 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19940 { (exit 1); exit 1; }; }; }
19944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19947 # A ".." for each directory in $ac_dir_suffix.
19948 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19949 case $ac_top_builddir_sub in
19950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19954 ac_abs_top_builddir=$ac_pwd
19955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19956 # for backward compatibility:
19957 ac_top_builddir=$ac_top_build_prefix
19960 .) # We are building in place.
19962 ac_top_srcdir=$ac_top_builddir_sub
19963 ac_abs_top_srcdir=$ac_pwd ;;
19964 [\\/]* | ?:[\\/]* ) # Absolute name.
19965 ac_srcdir=$srcdir$ac_dir_suffix;
19966 ac_top_srcdir=$srcdir
19967 ac_abs_top_srcdir=$srcdir ;;
19968 *) # Relative name.
19969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19970 ac_top_srcdir=$ac_top_build_prefix$srcdir
19971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19978 # Check for guested configure; otherwise get Cygnus style configure.
19979 if test -f "$ac_srcdir/configure.gnu"; then
19980 ac_sub_configure=$ac_srcdir/configure.gnu
19981 elif test -f "$ac_srcdir/configure"; then
19982 ac_sub_configure=$ac_srcdir/configure
19983 elif test -f "$ac_srcdir/configure.in"; then
19984 # This should be Cygnus configure.
19985 ac_sub_configure=$ac_aux_dir/configure
19987 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19988 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19992 # The recursion is here.
19993 if test -n "$ac_sub_configure"; then
19994 # Make the cache file name correct relative to the subdirectory.
19995 case $cache_file in
19996 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19997 *) # Relative name.
19998 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20001 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20002 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20003 # The eval makes quoting arguments work.
20004 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20005 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20006 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20007 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20008 { (exit 1); exit 1; }; }