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
761 HAVE_LINK_VERSION_SCRIPT
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 NO_MAYBE_UNINITIALIZED
793 ENABLE_VISIBILITY_INLINES_HIDDEN
800 ac_precious_vars='build_alias
812 ac_subdirs_all='projects/test-suite
815 projects/llvm-poolalloc
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-polly Use polly if available (default is YES)
1393 --enable-libcpp Use libc++ if available (default is NO)
1394 --enable-compiler-version-checks
1395 Check the version of the host compiler (default is
1397 --enable-cxx1y Use c++1y if available (default is NO)
1398 --enable-split-dwarf Use split-dwarf if available (default is NO)
1399 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1400 --enable-clang-plugin-support
1401 Enable plugin support in clang (default is YES)
1402 --enable-clang-static-analyzer
1403 Enable building of clang Static Analyzer (default is
1405 --enable-optimized Compile with optimizations enabled (default is NO)
1406 --enable-profiling Compile with profiling enabled (default is NO)
1407 --enable-assertions Compile with assertion checks enabled (default is
1409 --enable-werror Compile with -Werror enabled (default is NO)
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-keep-symbols Do not strip installed executables)
1418 --enable-jit Enable Just In Time Compiling (default is YES)
1419 --enable-docs Build documents (default is YES)
1420 --enable-doxygen Build doxygen documentation (default is NO)
1421 --enable-threads Use threads if available (default is YES)
1422 --enable-pthreads Use pthreads if available (default is YES)
1423 --enable-zlib Use zlib for compression/decompression if available
1425 --enable-pic Build LLVM with Position Independent Code (default
1427 --enable-shared Build a shared library and link tools against it
1429 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1430 Win32 DLL (default is NO)
1431 --enable-timestamps Enable embedding timestamp information in build
1433 --enable-backtraces Enable embedding backtraces on crash (default is
1435 --enable-crash-overrides
1436 Enable crash handling overrides (default is YES)
1437 --enable-targets Build specific host targets: all or
1438 target1,target2,... Valid targets are: host, x86,
1439 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1440 hexagon, xcore, msp430, nvptx, systemz, r600, and
1442 --enable-experimental-targets
1443 Build experimental host targets: disable or
1444 target1,target2,... (default=disable)
1445 --enable-bindings Build specific language bindings:
1446 all,auto,none,{binding-name} (default=auto)
1447 --enable-terminfo Query the terminfo database if available (default is
1449 --enable-libedit Use libedit if available (default is YES)
1450 --enable-libffi Check for the presence of libffi (default is NO)
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-srcdir Directory to the out-of-tree Clang source
1462 --with-clang-resource-dir
1463 Relative directory from the Clang binary for
1465 --with-c-include-dirs Colon separated list of directories clang will
1467 --with-gcc-toolchain Directory where gcc is installed.
1468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1469 --with-binutils-include Specify path to binutils/include/ containing
1470 plugin-api.h file for gold plugin.
1471 --with-bug-report-url Specify the URL where bug reports should be
1472 submitted (default=http://llvm.org/bugs/)
1473 --with-internal-prefix Installation directory for internal files
1474 --with-python path to python
1475 --with-oprofile=<prefix>
1476 Tell OProfile >= 0.9.4 how to symbolize JIT output
1477 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1490 CXXCPP C++ preprocessor
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <http://llvm.org/bugs/>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 LLVM configure 3.6.0svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by LLVM $as_me 3.6.0svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next=false
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next=true ;;
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1736 if test -n "$ac_subst_files"; then
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1743 for ac_var in $ac_subst_files
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1754 if test -s confdefs.h; then
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1845 # Check that the precious variables saved in the cache have kept the same
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 LLVM_VERSION_MAJOR=3
1927 LLVM_VERSION_MINOR=6
1928 LLVM_VERSION_PATCH=0
1929 LLVM_VERSION_SUFFIX=svn
1932 cat >>confdefs.h <<_ACEOF
1933 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1937 cat >>confdefs.h <<_ACEOF
1938 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1942 cat >>confdefs.h <<_ACEOF
1943 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1952 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1961 for ac_dir in autoconf "$srcdir"/autoconf; do
1962 if test -f "$ac_dir/install-sh"; then
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1966 elif test -f "$ac_dir/install.sh"; then
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1970 elif test -f "$ac_dir/shtool"; then
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1979 { (exit 1); exit 1; }; }
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992 if test ${srcdir} != "." ; then
1993 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1994 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1995 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1996 { (exit 1); exit 1; }; }
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 for ac_prog in clang gcc
2011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2048 test -n "$CC" && break
2051 if test -z "$CC"; then
2053 for ac_prog in clang gcc
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_ac_ct_CC="$ac_prog"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6; }
2087 { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2092 test -n "$ac_ct_CC" && break
2095 if test "x$ac_ct_CC" = x; then
2098 case $cross_compiling:$ac_tool_warned in
2100 { echo "$as_me:$LINENO: 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." >&5
2103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2104 whose name does not start with the host triplet. If you think this
2105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2106 ac_tool_warned=yes ;;
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO: checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (ac_try="$ac_compiler --version >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler --version >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -v >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -v >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2142 { (ac_try="$ac_compiler -V >&5"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_compiler -V >&5") 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2153 cat >conftest.$ac_ext <<_ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 # List of possible output files, starting from the most likely.
2178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2179 # only as a last resort. b.out is created by i960 compilers.
2180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2182 # The IRIX 6 linker writes into existing files which may not be
2183 # executable, retaining their permissions. Remove them first so a
2184 # subsequent execution test works.
2186 for ac_file in $ac_files
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2195 if { (ac_try="$ac_link_default"
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201 (eval "$ac_link_default") 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; then
2205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2208 # so that the user can short-circuit this test for compilers unknown to
2210 for ac_file in $ac_files
2212 test -f "$ac_file" || continue
2214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2217 # We found the default executable, but exeext='' is most
2221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225 # We set ac_cv_exeext here because the later test for it is not
2226 # safe: cross compilers may not add the suffix if given an `-o'
2227 # argument, so we may need to know it at that point already.
2228 # Even if this section looks crufty: it has the advantage of
2235 test "$ac_cv_exeext" = no && ac_cv_exeext=
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&2;}
2245 { (exit 77); exit 77; }; }
2248 ac_exeext=$ac_cv_exeext
2249 { echo "$as_me:$LINENO: result: $ac_file" >&5
2250 echo "${ECHO_T}$ac_file" >&6; }
2252 # Check that the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257 # If not cross compiling, check that we can run a simple program.
2258 if test "$cross_compiling" != yes; then
2259 if { ac_try='./$ac_file'
2260 { (case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265 (eval "$ac_try") 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2271 if test "$cross_compiling" = maybe; then
2274 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2284 { echo "$as_me:$LINENO: result: yes" >&5
2285 echo "${ECHO_T}yes" >&6; }
2287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2288 ac_clean_files=$ac_clean_files_save
2289 # Check that the compiler produces executables we can run. If not, either
2290 # the compiler is broken, or we cross compile.
2291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2294 echo "${ECHO_T}$cross_compiling" >&6; }
2296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2298 if { (ac_try="$ac_link"
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304 (eval "$ac_link") 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2310 # work properly (i.e., refer to `conftest.exe'), while it won't with
2312 for ac_file in conftest.exe conftest conftest.*; do
2313 test -f "$ac_file" || continue
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest$ac_cv_exeext
2330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2338 if test "${ac_cv_objext+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.$ac_ext <<_ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2356 rm -f conftest.o conftest.obj
2357 if { (ac_try="$ac_compile"
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_compile") 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 for ac_file in conftest.o conftest.obj conftest.*; do
2368 test -f "$ac_file" || continue;
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6; }
2390 OBJEXT=$ac_cv_objext
2392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2415 rm -f conftest.$ac_objext
2416 if { (ac_try="$ac_compile"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_compile") 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_try") 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2463 GCC=`test $ac_compiler_gnu = yes && echo yes`
2464 ac_test_CFLAGS=${CFLAGS+set}
2465 ac_save_CFLAGS=$CFLAGS
2466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_cc_g+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 ac_save_c_werror_flag=$ac_c_werror_flag
2472 ac_c_werror_flag=yes
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2490 rm -f conftest.$ac_objext
2491 if { (ac_try="$ac_compile"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_compile") 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.$ac_objext
2546 if { (ac_try="$ac_compile"
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_compile") 2>conftest.er1
2554 grep -v '^ *+' conftest.er1 >conftest.err
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_try") 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 ac_c_werror_flag=$ac_save_c_werror_flag
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 ac_c_werror_flag=$ac_save_c_werror_flag
2652 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2654 if test "$ac_test_CFLAGS" = set; then
2655 CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657 if test "$GCC" = yes; then
2663 if test "$GCC" = yes; then
2669 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2670 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_c89+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 ac_cv_prog_cc_c89=no
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2700 s = g (p, va_arg (v,int));
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2706 function prototypes and stuff, but not '\xHH' hex character constants.
2707 These don't provoke an error unfortunately, instead are silently treated
2708 as 'x'. The following induces an error, until -std is added to get
2709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2710 array size at least. It's necessary to write '\x00'==0 to get something
2711 that's true only with -std. */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2715 inside strings and character constants. */
2717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2719 int test (int i, double x);
2720 struct s1 {int (*f) (int a);};
2721 struct s2 {int (*f) (double a);};
2722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736 CC="$ac_save_CC $ac_arg"
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_try") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_prog_cc_c89=$ac_arg
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f core conftest.err conftest.$ac_objext
2780 test "x$ac_cv_prog_cc_c89" != "xno" && break
2782 rm -f conftest.$ac_ext
2787 case "x$ac_cv_prog_cc_c89" in
2789 { echo "$as_me:$LINENO: result: none needed" >&5
2790 echo "${ECHO_T}none needed" >&6; } ;;
2792 { echo "$as_me:$LINENO: result: unsupported" >&5
2793 echo "${ECHO_T}unsupported" >&6; } ;;
2795 CC="$CC $ac_cv_prog_cc_c89"
2796 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 ac_cpp='$CXXCPP $CPPFLAGS'
2809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2812 if test -z "$CXX"; then
2813 if test -n "$CCC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 for ac_prog in clang++ g++
2819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 if test -n "$CXX"; then
2827 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 if test -n "$CXX"; then
2848 { echo "$as_me:$LINENO: result: $CXX" >&5
2849 echo "${ECHO_T}$CXX" >&6; }
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2856 test -n "$CXX" && break
2859 if test -z "$CXX"; then
2861 for ac_prog in clang++ g++
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$ac_ct_CXX"; then
2871 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_CXX="$ac_prog"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2891 if test -n "$ac_ct_CXX"; then
2892 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2893 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2900 test -n "$ac_ct_CXX" && break
2903 if test "x$ac_ct_CXX" = x; then
2906 case $cross_compiling:$ac_tool_warned in
2908 { echo "$as_me:$LINENO: 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." >&5
2911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2912 whose name does not start with the host triplet. If you think this
2913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2914 ac_tool_warned=yes ;;
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2924 ac_compiler=`set X $ac_compile; echo $2`
2925 { (ac_try="$ac_compiler --version >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler --version >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -v >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -v >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2945 { (ac_try="$ac_compiler -V >&5"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compiler -V >&5") 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2956 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_try") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3025 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3026 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3027 GXX=`test $ac_compiler_gnu = yes && echo yes`
3028 ac_test_CXXFLAGS=${CXXFLAGS+set}
3029 ac_save_CXXFLAGS=$CXXFLAGS
3030 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3031 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_cxx_g+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3036 ac_cxx_werror_flag=yes
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } &&
3068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_prog_cxx_g=yes
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 ac_cv_prog_cxx_g=yes
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3218 if test "$ac_test_CXXFLAGS" = set; then
3219 CXXFLAGS=$ac_save_CXXFLAGS
3220 elif test $ac_cv_prog_cxx_g = yes; then
3221 if test "$GXX" = yes; then
3227 if test "$GXX" = yes; then
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3245 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3250 if test -z "$CPP"; then
3251 if test "${ac_cv_prog_CPP+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 # Double quotes because CPP needs to be expanded
3255 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258 for ac_c_preproc_warn_flag in '' yes
3260 # Use a header file that comes with gcc, so configuring glibc
3261 # with a fresh cross-compiler works.
3262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263 # <limits.h> exists even on freestanding compilers.
3264 # On the NeXT, cc -E runs the code through the compiler's parser,
3265 # not just through cpp. "Syntax error" is here to catch this case.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3273 # include <limits.h>
3275 # include <assert.h>
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 # Broken: fails on valid input.
3311 rm -f conftest.err conftest.$ac_ext
3313 # OK, works on sane cases. Now check whether nonexistent headers
3314 # can be detected and how.
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #include <ac_nonexistent.h>
3323 if { (ac_try="$ac_cpp conftest.$ac_ext"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3345 if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Passes both tests.
3357 rm -f conftest.err conftest.$ac_ext
3360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3361 rm -f conftest.err conftest.$ac_ext
3362 if $ac_preproc_ok; then
3374 { echo "$as_me:$LINENO: result: $CPP" >&5
3375 echo "${ECHO_T}$CPP" >&6; }
3377 for ac_c_preproc_warn_flag in '' yes
3379 # Use a header file that comes with gcc, so configuring glibc
3380 # with a fresh cross-compiler works.
3381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382 # <limits.h> exists even on freestanding compilers.
3383 # On the NeXT, cc -E runs the code through the compiler's parser,
3384 # not just through cpp. "Syntax error" is here to catch this case.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3392 # include <limits.h>
3394 # include <assert.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 if test -z "$ac_cpp_err"; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 # Broken: fails on valid input.
3430 rm -f conftest.err conftest.$ac_ext
3432 # OK, works on sane cases. Now check whether nonexistent headers
3433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <ac_nonexistent.h>
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Passes both tests.
3476 rm -f conftest.err conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3484 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test "$CXX" = "clang++" ; then
3499 { echo "$as_me:$LINENO: checking whether clang works" >&5
3500 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3502 ac_cpp='$CXXCPP $CPPFLAGS'
3503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3515 #if __has_include (<cxxabi.h>)
3518 #if __has_include (<unwind.h>)
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_compile") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_try") 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3565 { echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6; }
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3573 { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3575 { { 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
3576 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;}
3577 { (exit 1); exit 1; }; }
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3591 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3598 llvm_cv_cxx_compiler=unknown
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_compile") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3625 { (case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_try") 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest.$ac_objext'
3635 { (case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 llvm_cv_cxx_compiler=clang
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 llvm_cv_cxx_compiler=gcc
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3713 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3717 if test -d ${srcdir}/projects/test-suite ; then
3718 subdirs="$subdirs projects/test-suite"
3722 if test -d ${srcdir}/projects/llvm-test ; then
3723 subdirs="$subdirs projects/llvm-test"
3727 if test -d ${srcdir}/projects/poolalloc ; then
3728 subdirs="$subdirs projects/poolalloc"
3732 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3733 subdirs="$subdirs projects/llvm-poolalloc"
3737 for i in `ls ${srcdir}/projects`
3739 if test -d ${srcdir}/projects/${i} ; then
3741 safecode) subdirs="$subdirs projects/safecode"
3749 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3750 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3756 # Check whether --enable-polly was given.
3757 if test "${enable_polly+set}" = set; then
3758 enableval=$enable_polly;
3763 case "$enableval" in
3768 default) ENABLE_POLLY=1
3770 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3771 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3772 { (exit 1); exit 1; }; } ;;
3776 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3779 subdirs="$subdirs tools/polly"
3784 # Make sure we can run config.sub.
3785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3786 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3787 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3788 { (exit 1); exit 1; }; }
3790 { echo "$as_me:$LINENO: checking build system type" >&5
3791 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3792 if test "${ac_cv_build+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_build_alias=$build_alias
3796 test "x$ac_build_alias" = x &&
3797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3798 test "x$ac_build_alias" = x &&
3799 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3800 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3801 { (exit 1); exit 1; }; }
3802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3803 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3804 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3805 { (exit 1); exit 1; }; }
3808 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3809 echo "${ECHO_T}$ac_cv_build" >&6; }
3810 case $ac_cv_build in
3812 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3813 echo "$as_me: error: invalid value of canonical build" >&2;}
3814 { (exit 1); exit 1; }; };;
3817 ac_save_IFS=$IFS; IFS='-'
3823 # Remember, the first character of IFS is used to create $*,
3824 # except with old shells:
3827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830 { echo "$as_me:$LINENO: checking host system type" >&5
3831 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3832 if test "${ac_cv_host+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test "x$host_alias" = x; then
3836 ac_cv_host=$ac_cv_build
3838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3839 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3840 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3841 { (exit 1); exit 1; }; }
3845 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3846 echo "${ECHO_T}$ac_cv_host" >&6; }
3849 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3850 echo "$as_me: error: invalid value of canonical host" >&2;}
3851 { (exit 1); exit 1; }; };;
3854 ac_save_IFS=$IFS; IFS='-'
3860 # Remember, the first character of IFS is used to create $*,
3861 # except with old shells:
3864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867 { echo "$as_me:$LINENO: checking target system type" >&5
3868 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3869 if test "${ac_cv_target+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 if test "x$target_alias" = x; then
3873 ac_cv_target=$ac_cv_host
3875 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3876 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3877 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3878 { (exit 1); exit 1; }; }
3882 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3883 echo "${ECHO_T}$ac_cv_target" >&6; }
3884 case $ac_cv_target in
3886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3887 echo "$as_me: error: invalid value of canonical target" >&2;}
3888 { (exit 1); exit 1; }; };;
3890 target=$ac_cv_target
3891 ac_save_IFS=$IFS; IFS='-'
3897 # Remember, the first character of IFS is used to create $*,
3898 # except with old shells:
3901 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3904 # The aliases save the names the user supplied, while $host etc.
3905 # will get canonicalized.
3906 test -n "$target_alias" &&
3907 test "$program_prefix$program_suffix$program_transform_name" = \
3909 program_prefix=${target_alias}-
3911 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3912 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3913 if test "${llvm_cv_os_type+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 llvm_cv_link_all_option="-Wl,--whole-archive"
3919 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3920 llvm_cv_os_type="AIX"
3921 llvm_cv_platform_type="Unix" ;;
3923 llvm_cv_link_all_option="-Wl,--whole-archive"
3924 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3925 llvm_cv_os_type="IRIX"
3926 llvm_cv_platform_type="Unix" ;;
3928 llvm_cv_link_all_option="-Wl,--whole-archive"
3929 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3930 llvm_cv_os_type="Cygwin"
3931 llvm_cv_platform_type="Unix" ;;
3933 llvm_cv_link_all_option="-Wl,-all_load"
3934 llvm_cv_no_link_all_option="-Wl,-noall_load"
3935 llvm_cv_os_type="Darwin"
3936 llvm_cv_platform_type="Unix" ;;
3938 llvm_cv_link_all_option="-Wl,-all_load"
3939 llvm_cv_no_link_all_option="-Wl,-noall_load"
3940 llvm_cv_os_type="Minix"
3941 llvm_cv_platform_type="Unix" ;;
3943 llvm_cv_link_all_option="-Wl,--whole-archive"
3944 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3945 llvm_cv_os_type="FreeBSD"
3946 llvm_cv_platform_type="Unix" ;;
3948 llvm_cv_link_all_option="-Wl,--whole-archive"
3949 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3950 llvm_cv_os_type="GNU/kFreeBSD"
3951 llvm_cv_platform_type="Unix" ;;
3953 llvm_cv_link_all_option="-Wl,--whole-archive"
3954 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3955 llvm_cv_os_type="OpenBSD"
3956 llvm_cv_platform_type="Unix" ;;
3958 llvm_cv_link_all_option="-Wl,--whole-archive"
3959 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3960 llvm_cv_os_type="NetBSD"
3961 llvm_cv_platform_type="Unix" ;;
3963 llvm_cv_link_all_option="-Wl,--whole-archive"
3964 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3965 llvm_cv_os_type="DragonFly"
3966 llvm_cv_platform_type="Unix" ;;
3968 llvm_cv_link_all_option="-Wl,--whole-archive"
3969 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3970 llvm_cv_os_type="HP-UX"
3971 llvm_cv_platform_type="Unix" ;;
3973 llvm_cv_link_all_option="-Wl,--whole-archive"
3974 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3975 llvm_cv_os_type="Interix"
3976 llvm_cv_platform_type="Unix" ;;
3978 llvm_cv_link_all_option="-Wl,--whole-archive"
3979 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3980 llvm_cv_os_type="Linux"
3981 llvm_cv_platform_type="Unix" ;;
3983 llvm_cv_link_all_option="-Wl,--whole-archive"
3984 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3985 llvm_cv_os_type="GNU"
3986 llvm_cv_platform_type="Unix" ;;
3988 llvm_cv_link_all_option="-Wl,-z,allextract"
3989 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3990 llvm_cv_os_type="SunOS"
3991 llvm_cv_platform_type="Unix" ;;
3993 llvm_cv_link_all_option="-Wl,--whole-archive"
3994 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3995 llvm_cv_os_type="Win32"
3996 llvm_cv_platform_type="Win32" ;;
3998 llvm_cv_link_all_option="-Wl,--whole-archive"
3999 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4000 llvm_cv_os_type="MingW"
4001 llvm_cv_platform_type="Win32" ;;
4003 llvm_cv_link_all_option="-Wl,--whole-archive"
4004 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4005 llvm_cv_os_type="Haiku"
4006 llvm_cv_platform_type="Unix" ;;
4008 llvm_cv_link_all_option="-Wl,--whole-archive"
4009 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4010 llvm_cv_os_type="Freestanding"
4011 llvm_cv_platform_type="Unix" ;;
4013 llvm_cv_link_all_option="-Wl,--whole-archive"
4014 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4015 llvm_cv_os_type="Freestanding"
4016 llvm_cv_platform_type="Unix" ;;
4018 llvm_cv_link_all_option=""
4019 llvm_cv_no_link_all_option=""
4020 llvm_cv_os_type="Unknown"
4021 llvm_cv_platform_type="Unknown" ;;
4024 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4025 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4027 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4028 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4029 if test "${llvm_cv_target_os_type+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 llvm_cv_target_os_type="AIX" ;;
4036 llvm_cv_target_os_type="IRIX" ;;
4038 llvm_cv_target_os_type="Cygwin" ;;
4040 llvm_cv_target_os_type="Darwin" ;;
4042 llvm_cv_target_os_type="Minix" ;;
4044 llvm_cv_target_os_type="FreeBSD" ;;
4046 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4048 llvm_cv_target_os_type="OpenBSD" ;;
4050 llvm_cv_target_os_type="NetBSD" ;;
4052 llvm_cv_target_os_type="DragonFly" ;;
4054 llvm_cv_target_os_type="HP-UX" ;;
4056 llvm_cv_target_os_type="Interix" ;;
4058 llvm_cv_target_os_type="Linux" ;;
4060 llvm_cv_target_os_type="GNU" ;;
4062 llvm_cv_target_os_type="SunOS" ;;
4064 llvm_cv_target_os_type="Win32" ;;
4066 llvm_cv_target_os_type="MingW" ;;
4068 llvm_cv_target_os_type="Haiku" ;;
4070 llvm_cv_target_os_type="RTEMS" ;;
4072 llvm_cv_target_os_type="NativeClient" ;;
4074 llvm_cv_target_os_type="Freestanding" ;;
4076 llvm_cv_target_os_type="Unknown" ;;
4079 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4080 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4082 if test "$llvm_cv_os_type" = "Unknown" ; then
4083 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4084 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4085 { (exit 1); exit 1; }; }
4090 HOST_OS=$llvm_cv_os_type
4092 TARGET_OS=$llvm_cv_target_os_type
4095 LINKALL=$llvm_cv_link_all_option
4097 NOLINKALL=$llvm_cv_no_link_all_option
4100 case $llvm_cv_platform_type in
4103 cat >>confdefs.h <<\_ACEOF
4104 #define LLVM_ON_UNIX 1
4114 cat >>confdefs.h <<\_ACEOF
4115 #define LLVM_ON_WIN32 1
4125 { echo "$as_me:$LINENO: checking target architecture" >&5
4126 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4127 if test "${llvm_cv_target_arch+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 i?86-*) llvm_cv_target_arch="x86" ;;
4132 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4133 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4134 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4135 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4136 arm*-*) llvm_cv_target_arch="ARM" ;;
4137 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4138 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4139 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4140 xcore-*) llvm_cv_target_arch="XCore" ;;
4141 msp430-*) llvm_cv_target_arch="MSP430" ;;
4142 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4143 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4144 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4145 *) llvm_cv_target_arch="Unknown" ;;
4148 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4149 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4151 if test "$llvm_cv_target_arch" = "Unknown" ; then
4152 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4153 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4156 case "$llvm_cv_target_arch" in
4157 x86) LLVM_NATIVE_ARCH="X86" ;;
4158 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4159 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4162 ARCH=$llvm_cv_target_arch
4164 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4168 i?86-*) host_arch="x86" ;;
4169 amd64-* | x86_64-*) host_arch="x86_64" ;;
4170 sparc*-*) host_arch="Sparc" ;;
4171 powerpc*-*) host_arch="PowerPC" ;;
4172 arm64*-*) host_arch="AArch64" ;;
4173 arm*-*) host_arch="ARM" ;;
4174 aarch64*-*) host_arch="AArch64" ;;
4175 mips-* | mips64-*) host_arch="Mips" ;;
4176 mipsel-* | mips64el-*) host_arch="Mips" ;;
4177 xcore-*) host_arch="XCore" ;;
4178 msp430-*) host_arch="MSP430" ;;
4179 hexagon-*) host_arch="Hexagon" ;;
4180 s390x-*) host_arch="SystemZ" ;;
4181 *) host_arch="Unknown" ;;
4184 if test "$host_arch" = "Unknown" ; then
4185 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4186 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4189 HOST_ARCH=$host_arch
4192 if test "$cross_compiling" = yes; then
4193 LLVM_CROSS_COMPILING=1
4196 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4197 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4198 if test "${ac_cv_build_exeext+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4202 ac_cv_build_exeext=.exe
4204 ac_build_prefix=${build_alias}-
4206 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4207 set dummy ${ac_build_prefix}gcc; ac_word=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 if test -n "$BUILD_CC"; then
4214 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 BUILD_CC=$ac_cv_prog_BUILD_CC
4234 if test -n "$BUILD_CC"; then
4235 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4236 echo "${ECHO_T}$BUILD_CC" >&6; }
4238 { echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6; }
4243 if test -z "$BUILD_CC"; then
4244 # Extract the first word of "gcc", so it can be a program name with args.
4245 set dummy gcc; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 if test -n "$BUILD_CC"; then
4252 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_BUILD_CC="gcc"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 BUILD_CC=$ac_cv_prog_BUILD_CC
4272 if test -n "$BUILD_CC"; then
4273 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4274 echo "${ECHO_T}$BUILD_CC" >&6; }
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4281 if test -z "$BUILD_CC"; then
4282 # Extract the first word of "cc", so it can be a program name with args.
4283 set dummy cc; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 if test -n "$BUILD_CC"; then
4290 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4301 ac_prog_rejected=yes
4304 ac_cv_prog_BUILD_CC="cc"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 if test $ac_prog_rejected = yes; then
4313 # We found a bogon in the path, so make sure we never use it.
4314 set dummy $ac_cv_prog_BUILD_CC
4316 if test $# != 0; then
4317 # We chose a different compiler from the bogus one.
4318 # However, it has the same basename, so the bogon will be chosen
4319 # first if we set BUILD_CC to just the basename; use the full file name.
4321 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4326 BUILD_CC=$ac_cv_prog_BUILD_CC
4327 if test -n "$BUILD_CC"; then
4328 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4329 echo "${ECHO_T}$BUILD_CC" >&6; }
4331 { echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6; }
4338 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4339 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4340 { (exit 1); exit 1; }; }
4341 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4343 echo 'int main () { return 0; }' > conftest.$ac_ext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4346 (eval $ac_build_link) 2>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; then
4350 for file in conftest.*; do
4352 *.c | *.o | *.obj | *.dSYM) ;;
4353 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4357 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4358 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4359 { (exit 1); exit 1; }; }
4362 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4367 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4368 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4369 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4370 ac_build_exeext=$BUILD_EXEEXT
4372 ac_build_prefix=${build_alias}-
4373 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4374 set dummy ${ac_build_prefix}g++; ac_word=$2
4375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4377 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test -n "$BUILD_CXX"; then
4381 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4401 if test -n "$BUILD_CXX"; then
4402 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4403 echo "${ECHO_T}$BUILD_CXX" >&6; }
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4410 if test -z "$BUILD_CXX"; then
4411 # Extract the first word of "g++", so it can be a program name with args.
4412 set dummy g++; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 if test -n "$BUILD_CXX"; then
4419 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_BUILD_CXX="g++"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4439 if test -n "$BUILD_CXX"; then
4440 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4441 echo "${ECHO_T}$BUILD_CXX" >&6; }
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4448 if test -z "$BUILD_CXX"; then
4449 # Extract the first word of "c++", so it can be a program name with args.
4450 set dummy c++; ac_word=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 if test -n "$BUILD_CXX"; then
4457 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4468 ac_prog_rejected=yes
4471 ac_cv_prog_BUILD_CXX="c++"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 if test $ac_prog_rejected = yes; then
4480 # We found a bogon in the path, so make sure we never use it.
4481 set dummy $ac_cv_prog_BUILD_CXX
4483 if test $# != 0; then
4484 # We chose a different compiler from the bogus one.
4485 # However, it has the same basename, so the bogon will be chosen
4486 # first if we set BUILD_CXX to just the basename; use the full file name.
4488 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4493 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4494 if test -n "$BUILD_CXX"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4496 echo "${ECHO_T}$BUILD_CXX" >&6; }
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4506 LLVM_CROSS_COMPILING=0
4510 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4521 # Check whether --enable-libcpp was given.
4522 if test "${enable_libcpp+set}" = set; then
4523 enableval=$enable_libcpp;
4528 case "$enableval" in
4529 yes) ENABLE_LIBCPP=1
4533 default) ENABLE_LIBCPP=0
4535 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4536 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4537 { (exit 1); exit 1; }; } ;;
4540 # Check whether --enable-compiler-version-checks was given.
4541 if test "${enable_compiler_version_checks+set}" = set; then
4542 enableval=$enable_compiler_version_checks;
4547 case "$enableval" in
4552 ac_cpp='$CXXCPP $CPPFLAGS'
4553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4557 case "$llvm_cv_cxx_compiler" in
4559 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4560 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4561 cat >conftest.$ac_ext <<_ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4568 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4569 #error This version of Clang is too old to build LLVM
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_compile") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_try") 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 { echo "$as_me:$LINENO: result: yes" >&5
4608 echo "${ECHO_T}yes" >&6; }
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4615 { { echo "$as_me:$LINENO: error:
4616 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4617 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4618 bypass these sanity checks." >&5
4619 echo "$as_me: error:
4620 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4621 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4622 bypass these sanity checks." >&2;}
4623 { (exit 1); exit 1; }; }
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 if test "$ENABLE_LIBCPP" -eq 0 ; then
4629 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4630 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4631 llvm_cv_old_cxxflags="$CXXFLAGS"
4632 CXXFLAGS="$CXXFLAGS -std=c++0x"
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4641 std::atomic<float> x(0.0f);
4642 int main() { return (float)x; }
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_link") 2>conftest.er1
4654 grep -v '^ *+' conftest.er1 >conftest.err
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4660 { (case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665 (eval "$ac_try") 2>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest$ac_exeext'
4670 { (case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_try") 2>&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 { { echo "$as_me:$LINENO: error:
4688 We detected a missing feature in the standard C++ library that was known to be
4689 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4690 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4691 than 4.7. You will need to update your system and ensure Clang uses the newer
4694 If this error is incorrect or you need to force things to work, you may pass
4695 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4696 echo "$as_me: error:
4697 We detected a missing feature in the standard C++ library that was known to be
4698 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4699 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4700 than 4.7. You will need to update your system and ensure Clang uses the newer
4703 If this error is incorrect or you need to force things to work, you may pass
4704 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4705 { (exit 1); exit 1; }; }
4708 rm -f core conftest.err conftest.$ac_objext \
4709 conftest$ac_exeext conftest.$ac_ext
4710 CXXFLAGS="$llvm_cv_old_cxxflags"
4714 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4715 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4723 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4724 #error This version of GCC is too old to build LLVM
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_compile") 2>conftest.er1
4737 grep -v '^ *+' conftest.er1 >conftest.err
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4743 { (case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_try") 2>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758 (eval "$ac_try") 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 { echo "$as_me:$LINENO: result: yes" >&5
4763 echo "${ECHO_T}yes" >&6; }
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4770 { { echo "$as_me:$LINENO: error:
4771 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4772 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4773 bypass these sanity checks." >&5
4774 echo "$as_me: error:
4775 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4776 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4777 bypass these sanity checks." >&2;}
4778 { (exit 1); exit 1; }; }
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4795 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4796 { (exit 1); exit 1; }; }
4800 # Check whether --enable-cxx1y was given.
4801 if test "${enable_cxx1y+set}" = set; then
4802 enableval=$enable_cxx1y;
4807 case "$enableval" in
4812 default) ENABLE_CXX1Y=0
4814 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4815 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4816 { (exit 1); exit 1; }; } ;;
4819 # Check whether --enable-split-dwarf was given.
4820 if test "${enable_split_dwarf+set}" = set; then
4821 enableval=$enable_split_dwarf;
4826 case "$enableval" in
4827 yes) ENABLE_SPLIT_DWARF=1
4829 no) ENABLE_SPLIT_DWARF=0
4831 default) ENABLE_SPLIT_DWARF=0
4833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4835 { (exit 1); exit 1; }; } ;;
4839 # Check whether --enable-clang-arcmt was given.
4840 if test "${enable_clang_arcmt+set}" = set; then
4841 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4846 case "$enableval" in
4847 yes) ENABLE_CLANG_ARCMT=1
4849 no) ENABLE_CLANG_ARCMT=0
4851 default) ENABLE_CLANG_ARCMT=1
4853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
4858 clang_plugin_support="yes"
4859 # Check whether --enable-clang-plugin-support was given.
4860 if test "${enable_clang_plugin_support+set}" = set; then
4861 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4866 case "$enableval" in
4867 yes) CLANG_PLUGIN_SUPPORT=1
4869 no) CLANG_PLUGIN_SUPPORT=0
4871 default) CLANG_PLUGIN_SUPPORT=1
4873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4878 clang_static_analyzer="yes"
4879 # Check whether --enable-clang-static-analyzer was given.
4880 if test "${enable_clang_static_analyzer+set}" = set; then
4881 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4886 case "$enableval" in
4887 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4890 if test ${clang_arcmt} != "no" ; then
4891 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4892 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4893 { (exit 1); exit 1; }; }
4895 ENABLE_CLANG_STATIC_ANALYZER=0
4898 default) ENABLE_CLANG_STATIC_ANALYZER=1
4900 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4901 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4902 { (exit 1); exit 1; }; } ;;
4905 # Check whether --enable-optimized was given.
4906 if test "${enable_optimized+set}" = set; then
4907 enableval=$enable_optimized;
4912 if test ${enableval} = "no" ; then
4916 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4920 # Check whether --enable-profiling was given.
4921 if test "${enable_profiling+set}" = set; then
4922 enableval=$enable_profiling;
4927 if test ${enableval} = "no" ; then
4931 ENABLE_PROFILING=ENABLE_PROFILING=1
4935 # Check whether --enable-assertions was given.
4936 if test "${enable_assertions+set}" = set; then
4937 enableval=$enable_assertions;
4942 if test ${enableval} = "yes" ; then
4946 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4950 # Check whether --enable-werror was given.
4951 if test "${enable_werror+set}" = set; then
4952 enableval=$enable_werror;
4957 case "$enableval" in
4958 yes) ENABLE_WERROR=1
4962 default) ENABLE_WERROR=0
4964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4965 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4966 { (exit 1); exit 1; }; } ;;
4969 # Check whether --enable-expensive-checks was given.
4970 if test "${enable_expensive_checks+set}" = set; then
4971 enableval=$enable_expensive_checks;
4976 if test ${enableval} = "yes" ; then
4977 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4979 EXPENSIVE_CHECKS=yes
4982 ENABLE_EXPENSIVE_CHECKS=
4988 # Check whether --enable-debug-runtime was given.
4989 if test "${enable_debug_runtime+set}" = set; then
4990 enableval=$enable_debug_runtime;
4995 if test ${enableval} = "no" ; then
4999 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5003 # Check whether --enable-debug-symbols was given.
5004 if test "${enable_debug_symbols+set}" = set; then
5005 enableval=$enable_debug_symbols;
5010 if test ${enableval} = "no" ; then
5014 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5018 # Check whether --enable-keep-symbols was given.
5019 if test "${enable_keep_symbols+set}" = set; then
5020 enableval=$enable_keep_symbols;
5025 if test ${enableval} = "no" ; then
5029 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5033 # Check whether --enable-jit was given.
5034 if test "${enable_jit+set}" = set; then
5035 enableval=$enable_jit;
5040 if test ${enableval} = "no"
5045 case "$llvm_cv_target_arch" in
5046 x86) TARGET_HAS_JIT=1
5048 Sparc) TARGET_HAS_JIT=0
5050 PowerPC) TARGET_HAS_JIT=1
5052 x86_64) TARGET_HAS_JIT=1
5054 ARM) TARGET_HAS_JIT=1
5056 Mips) TARGET_HAS_JIT=1
5058 XCore) TARGET_HAS_JIT=0
5060 MSP430) TARGET_HAS_JIT=0
5062 Hexagon) TARGET_HAS_JIT=0
5064 NVPTX) TARGET_HAS_JIT=0
5066 SystemZ) TARGET_HAS_JIT=1
5073 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5074 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5077 # Check whether --enable-docs was given.
5078 if test "${enable_docs+set}" = set; then
5079 enableval=$enable_docs;
5084 case "$enableval" in
5089 default) ENABLE_DOCS=1
5091 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5092 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5093 { (exit 1); exit 1; }; } ;;
5096 # Check whether --enable-doxygen was given.
5097 if test "${enable_doxygen+set}" = set; then
5098 enableval=$enable_doxygen;
5103 case "$enableval" in
5104 yes) ENABLE_DOXYGEN=1
5106 no) ENABLE_DOXYGEN=0
5108 default) ENABLE_DOXYGEN=0
5110 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5111 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5112 { (exit 1); exit 1; }; } ;;
5115 # Check whether --enable-threads was given.
5116 if test "${enable_threads+set}" = set; then
5117 enableval=$enable_threads;
5122 case "$enableval" in
5123 yes) LLVM_ENABLE_THREADS=1
5125 no) LLVM_ENABLE_THREADS=0
5127 default) LLVM_ENABLE_THREADS=1
5129 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5130 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5131 { (exit 1); exit 1; }; } ;;
5134 cat >>confdefs.h <<_ACEOF
5135 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5139 # Check whether --enable-pthreads was given.
5140 if test "${enable_pthreads+set}" = set; then
5141 enableval=$enable_pthreads;
5146 case "$enableval" in
5147 yes) ENABLE_PTHREADS=1
5149 no) ENABLE_PTHREADS=0
5151 default) ENABLE_PTHREADS=1
5153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5158 # Check whether --enable-zlib was given.
5159 if test "${enable_zlib+set}" = set; then
5160 enableval=$enable_zlib;
5165 case "$enableval" in
5166 yes) LLVM_ENABLE_ZLIB=1
5168 no) LLVM_ENABLE_ZLIB=0
5170 default) LLVM_ENABLE_ZLIB=1
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5177 cat >>confdefs.h <<_ACEOF
5178 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5182 # Check whether --enable-pic was given.
5183 if test "${enable_pic+set}" = set; then
5184 enableval=$enable_pic;
5189 case "$enableval" in
5194 default) ENABLE_PIC=1
5196 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5201 cat >>confdefs.h <<_ACEOF
5202 #define ENABLE_PIC $ENABLE_PIC
5206 # Check whether --enable-shared was given.
5207 if test "${enable_shared+set}" = set; then
5208 enableval=$enable_shared;
5213 case "$enableval" in
5214 yes) ENABLE_SHARED=1
5218 default) ENABLE_SHARED=0
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5225 # Check whether --enable-embed-stdcxx was given.
5226 if test "${enable_embed_stdcxx+set}" = set; then
5227 enableval=$enable_embed_stdcxx;
5232 case "$enableval" in
5233 yes) ENABLE_EMBED_STDCXX=1
5235 no) ENABLE_EMBED_STDCXX=0
5237 default) ENABLE_EMBED_STDCXX=0
5239 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5244 # Check whether --enable-timestamps was given.
5245 if test "${enable_timestamps+set}" = set; then
5246 enableval=$enable_timestamps;
5251 case "$enableval" in
5252 yes) ENABLE_TIMESTAMPS=1
5254 no) ENABLE_TIMESTAMPS=0
5256 default) ENABLE_TIMESTAMPS=1
5258 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5259 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5263 cat >>confdefs.h <<_ACEOF
5264 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5268 # Check whether --enable-backtraces was given.
5269 if test "${enable_backtraces+set}" = set; then
5270 enableval=$enable_backtraces; case "$enableval" in
5271 yes) llvm_cv_enable_backtraces="yes" ;;
5272 no) llvm_cv_enable_backtraces="no" ;;
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5278 llvm_cv_enable_backtraces="yes"
5281 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5283 cat >>confdefs.h <<\_ACEOF
5284 #define ENABLE_BACKTRACES 1
5289 # Check whether --enable-crash-overrides was given.
5290 if test "${enable_crash_overrides+set}" = set; then
5291 enableval=$enable_crash_overrides; case "$enableval" in
5292 yes) llvm_cv_enable_crash_overrides="yes" ;;
5293 no) llvm_cv_enable_crash_overrides="no" ;;
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5299 llvm_cv_enable_crash_overrides="yes"
5302 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5304 cat >>confdefs.h <<\_ACEOF
5305 #define ENABLE_CRASH_OVERRIDES 1
5310 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5311 ALL_TARGETS=$ALL_TARGETS
5315 # Check whether --enable-targets was given.
5316 if test "${enable_targets+set}" = set; then
5317 enableval=$enable_targets;
5322 if test "$enableval" = host-only ; then
5325 case "$enableval" in
5326 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5327 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5329 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5335 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5336 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5340 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5342 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5343 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5344 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5345 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5346 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5347 host) case "$llvm_cv_target_arch" in
5348 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5350 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5351 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5352 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5353 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5354 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5355 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5356 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5357 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5358 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5359 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5360 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5361 echo "$as_me: error: Can not set target to build" >&2;}
5362 { (exit 1); exit 1; }; } ;;
5364 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5365 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5366 { (exit 1); exit 1; }; } ;;
5372 # Check whether --enable-experimental-targets was given.
5373 if test "${enable_experimental_targets+set}" = set; then
5374 enableval=$enable_experimental_targets;
5380 if test ${enableval} != "disable"
5382 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5385 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5388 for a_target in $TARGETS_TO_BUILD; do
5389 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5395 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5396 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5397 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5398 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5400 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5402 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5406 cat >>confdefs.h <<_ACEOF
5407 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5411 cat >>confdefs.h <<_ACEOF
5412 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5425 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5432 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5442 LLVM_ENUM_TARGETS=""
5443 LLVM_ENUM_ASM_PRINTERS=""
5444 LLVM_ENUM_ASM_PARSERS=""
5445 LLVM_ENUM_DISASSEMBLERS=""
5446 for target_to_build in $TARGETS_TO_BUILD; do
5447 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5448 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5449 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5451 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5452 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5454 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5455 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5464 # Check whether --with-optimize-option was given.
5465 if test "${with_optimize_option+set}" = set; then
5466 withval=$with_optimize_option;
5471 { echo "$as_me:$LINENO: checking optimization flags" >&5
5472 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5475 case "$llvm_cv_os_type" in
5476 FreeBSD) optimize_option=-O2 ;;
5477 MingW) optimize_option=-O2 ;;
5478 *) optimize_option=-O3 ;;
5480 *) optimize_option="$withval" ;;
5482 OPTIMIZE_OPTION=$optimize_option
5484 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5485 echo "${ECHO_T}$optimize_option" >&6; }
5488 # Check whether --with-extra-options was given.
5489 if test "${with_extra_options+set}" = set; then
5490 withval=$with_extra_options;
5496 default) EXTRA_OPTIONS= ;;
5497 *) EXTRA_OPTIONS=$withval ;;
5499 EXTRA_OPTIONS=$EXTRA_OPTIONS
5503 # Check whether --with-extra-ld-options was given.
5504 if test "${with_extra_ld_options+set}" = set; then
5505 withval=$with_extra_ld_options;
5511 default) EXTRA_LD_OPTIONS= ;;
5512 *) EXTRA_LD_OPTIONS=$withval ;;
5514 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5517 # Check whether --enable-bindings was given.
5518 if test "${enable_bindings+set}" = set; then
5519 enableval=$enable_bindings;
5524 BINDINGS_TO_BUILD=""
5525 case "$enableval" in
5526 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5527 all ) BINDINGS_TO_BUILD="ocaml" ;;
5528 none | no) BINDINGS_TO_BUILD="" ;;
5529 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5530 case "$a_binding" in
5531 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5532 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5533 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5534 { (exit 1); exit 1; }; } ;;
5541 # Check whether --with-ocaml-libdir was given.
5542 if test "${with_ocaml_libdir+set}" = set; then
5543 withval=$with_ocaml_libdir;
5549 auto) with_ocaml_libdir="$withval" ;;
5550 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5551 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5552 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5553 { (exit 1); exit 1; }; } ;;
5557 # Check whether --with-clang-srcdir was given.
5558 if test "${with_clang_srcdir+set}" = set; then
5559 withval=$with_clang_srcdir;
5565 -) clang_src_root="" ;;
5566 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5567 *) clang_src_root="$ac_pwd/$withval" ;;
5569 CLANG_SRC_ROOT=$clang_src_root
5573 # Check whether --with-clang-resource-dir was given.
5574 if test "${with_clang_resource_dir+set}" = set; then
5575 withval=$with_clang_resource_dir;
5581 cat >>confdefs.h <<_ACEOF
5582 #define CLANG_RESOURCE_DIR "$withval"
5587 # Check whether --with-c-include-dirs was given.
5588 if test "${with_c_include_dirs+set}" = set; then
5589 withval=$with_c_include_dirs;
5595 cat >>confdefs.h <<_ACEOF
5596 #define C_INCLUDE_DIRS "$withval"
5600 # Clang normally uses the system c++ headers and libraries. With this option,
5601 # clang will use the ones provided by a gcc installation instead. This option should
5602 # be passed the same value that was used with --prefix when configuring gcc.
5604 # Check whether --with-gcc-toolchain was given.
5605 if test "${with_gcc_toolchain+set}" = set; then
5606 withval=$with_gcc_toolchain;
5612 cat >>confdefs.h <<_ACEOF
5613 #define GCC_INSTALL_PREFIX "$withval"
5618 # Check whether --with-default-sysroot was given.
5619 if test "${with_default_sysroot+set}" = set; then
5620 withval=$with_default_sysroot;
5626 cat >>confdefs.h <<_ACEOF
5627 #define DEFAULT_SYSROOT "$withval"
5632 # Check whether --with-binutils-include was given.
5633 if test "${with_binutils_include+set}" = set; then
5634 withval=$with_binutils_include;
5640 default) WITH_BINUTILS_INCDIR=default ;;
5641 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5642 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5643 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5644 { (exit 1); exit 1; }; } ;;
5646 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5647 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5649 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5650 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5651 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5652 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5653 { (exit 1); exit 1; }; };
5658 # Check whether --with-bug-report-url was given.
5659 if test "${with_bug_report_url+set}" = set; then
5660 withval=$with_bug_report_url;
5662 withval="http://llvm.org/bugs/"
5666 cat >>confdefs.h <<_ACEOF
5667 #define BUG_REPORT_URL "$withval"
5671 # Check whether --enable-terminfo was given.
5672 if test "${enable_terminfo+set}" = set; then
5673 enableval=$enable_terminfo; case "$enableval" in
5674 yes) llvm_cv_enable_terminfo="yes" ;;
5675 no) llvm_cv_enable_terminfo="no" ;;
5676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5677 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5678 { (exit 1); exit 1; }; } ;;
5681 llvm_cv_enable_terminfo="yes"
5684 case "$llvm_cv_enable_terminfo" in
5685 yes) ENABLE_TERMINFO=1
5687 no) ENABLE_TERMINFO=0
5691 # Check whether --enable-libedit was given.
5692 if test "${enable_libedit+set}" = set; then
5693 enableval=$enable_libedit; case "$enableval" in
5694 yes) llvm_cv_enable_libedit="yes" ;;
5695 no) llvm_cv_enable_libedit="no" ;;
5696 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5697 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5698 { (exit 1); exit 1; }; } ;;
5701 llvm_cv_enable_libedit="yes"
5705 # Check whether --enable-libffi was given.
5706 if test "${enable_libffi+set}" = set; then
5707 enableval=$enable_libffi; case "$enableval" in
5708 yes) llvm_cv_enable_libffi="yes" ;;
5709 no) llvm_cv_enable_libffi="no" ;;
5710 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5711 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5712 { (exit 1); exit 1; }; } ;;
5715 llvm_cv_enable_libffi=no
5720 # Check whether --with-internal-prefix was given.
5721 if test "${with_internal_prefix+set}" = set; then
5722 withval=$with_internal_prefix;
5727 INTERNAL_PREFIX=$withval
5731 { echo "$as_me:$LINENO: checking for GNU make" >&5
5732 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5733 if test "${llvm_cv_gnu_make_command+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 llvm_cv_gnu_make_command=''
5737 for a in "$MAKE" make gmake gnumake ; do
5738 if test -z "$a" ; then continue ; fi ;
5739 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5741 llvm_cv_gnu_make_command=$a ;
5746 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5747 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5748 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5752 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5753 echo "${ECHO_T}\"Not found\"" >&6; };
5757 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5758 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5760 if test "$LN_S" = "ln -s"; then
5761 { echo "$as_me:$LINENO: result: yes" >&5
5762 echo "${ECHO_T}yes" >&6; }
5764 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5765 echo "${ECHO_T}no, using $LN_S" >&6; }
5768 # Extract the first word of "nm", so it can be a program name with args.
5769 set dummy nm; ac_word=$2
5770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5772 if test "${ac_cv_path_NM+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5800 if test -n "$NM"; then
5801 { echo "$as_me:$LINENO: result: $NM" >&5
5802 echo "${ECHO_T}$NM" >&6; }
5804 { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5809 # Extract the first word of "cmp", so it can be a program name with args.
5810 set dummy cmp; ac_word=$2
5811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5813 if test "${ac_cv_path_CMP+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5841 if test -n "$CMP"; then
5842 { echo "$as_me:$LINENO: result: $CMP" >&5
5843 echo "${ECHO_T}$CMP" >&6; }
5845 { echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6; }
5850 # Extract the first word of "cp", so it can be a program name with args.
5851 set dummy cp; ac_word=$2
5852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854 if test "${ac_cv_path_CP+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5869 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5882 if test -n "$CP"; then
5883 { echo "$as_me:$LINENO: result: $CP" >&5
5884 echo "${ECHO_T}$CP" >&6; }
5886 { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5891 # Extract the first word of "date", so it can be a program name with args.
5892 set dummy date; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_path_DATE+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5922 DATE=$ac_cv_path_DATE
5923 if test -n "$DATE"; then
5924 { echo "$as_me:$LINENO: result: $DATE" >&5
5925 echo "${ECHO_T}$DATE" >&6; }
5927 { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5932 # Extract the first word of "find", so it can be a program name with args.
5933 set dummy find; ac_word=$2
5934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5936 if test "${ac_cv_path_FIND+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5963 FIND=$ac_cv_path_FIND
5964 if test -n "$FIND"; then
5965 { echo "$as_me:$LINENO: result: $FIND" >&5
5966 echo "${ECHO_T}$FIND" >&6; }
5968 { echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6; }
5973 # Extract the first word of "grep", so it can be a program name with args.
5974 set dummy grep; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_path_GREP+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6004 GREP=$ac_cv_path_GREP
6005 if test -n "$GREP"; then
6006 { echo "$as_me:$LINENO: result: $GREP" >&5
6007 echo "${ECHO_T}$GREP" >&6; }
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6014 # Extract the first word of "mkdir", so it can be a program name with args.
6015 set dummy mkdir; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_path_MKDIR+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6045 MKDIR=$ac_cv_path_MKDIR
6046 if test -n "$MKDIR"; then
6047 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6048 echo "${ECHO_T}$MKDIR" >&6; }
6050 { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6055 # Extract the first word of "mv", so it can be a program name with args.
6056 set dummy mv; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_path_MV+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6087 if test -n "$MV"; then
6088 { echo "$as_me:$LINENO: result: $MV" >&5
6089 echo "${ECHO_T}$MV" >&6; }
6091 { echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6; }
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_RANLIB+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 if test -n "$RANLIB"; then
6105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 RANLIB=$ac_cv_prog_RANLIB
6125 if test -n "$RANLIB"; then
6126 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6127 echo "${ECHO_T}$RANLIB" >&6; }
6129 { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6135 if test -z "$ac_cv_prog_RANLIB"; then
6136 ac_ct_RANLIB=$RANLIB
6137 # Extract the first word of "ranlib", so it can be a program name with args.
6138 set dummy ranlib; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 if test -n "$ac_ct_RANLIB"; then
6145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_ac_ct_RANLIB="ranlib"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165 if test -n "$ac_ct_RANLIB"; then
6166 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6167 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6173 if test "x$ac_ct_RANLIB" = x; then
6176 case $cross_compiling:$ac_tool_warned in
6178 { echo "$as_me:$LINENO: 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." >&5
6181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6182 whose name does not start with the host triplet. If you think this
6183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6184 ac_tool_warned=yes ;;
6186 RANLIB=$ac_ct_RANLIB
6189 RANLIB="$ac_cv_prog_RANLIB"
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}ar; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_AR+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 if test -n "$AR"; then
6201 ac_cv_prog_AR="$AR" # Let the user override the test.
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_AR="${ac_tool_prefix}ar"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 if test -n "$AR"; then
6222 { echo "$as_me:$LINENO: result: $AR" >&5
6223 echo "${ECHO_T}$AR" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6231 if test -z "$ac_cv_prog_AR"; then
6233 # Extract the first word of "ar", so it can be a program name with args.
6234 set dummy ar; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 if test -n "$ac_ct_AR"; then
6241 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_AR="ar"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6261 if test -n "$ac_ct_AR"; then
6262 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6263 echo "${ECHO_T}$ac_ct_AR" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6269 if test "x$ac_ct_AR" = x; then
6272 case $cross_compiling:$ac_tool_warned in
6274 { echo "$as_me:$LINENO: 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." >&5
6277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6278 whose name does not start with the host triplet. If you think this
6279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6280 ac_tool_warned=yes ;;
6288 # Extract the first word of "rm", so it can be a program name with args.
6289 set dummy rm; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_path_RM+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6320 if test -n "$RM"; then
6321 { echo "$as_me:$LINENO: result: $RM" >&5
6322 echo "${ECHO_T}$RM" >&6; }
6324 { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6329 # Extract the first word of "sed", so it can be a program name with args.
6330 set dummy sed; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_path_SED+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6361 if test -n "$SED"; then
6362 { echo "$as_me:$LINENO: result: $SED" >&5
6363 echo "${ECHO_T}$SED" >&6; }
6365 { echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6; }
6370 # Extract the first word of "tar", so it can be a program name with args.
6371 set dummy tar; ac_word=$2
6372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374 if test "${ac_cv_path_TAR+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6402 if test -n "$TAR"; then
6403 { echo "$as_me:$LINENO: result: $TAR" >&5
6404 echo "${ECHO_T}$TAR" >&6; }
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6411 # Extract the first word of "pwd", so it can be a program name with args.
6412 set dummy pwd; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_path_BINPWD+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6442 BINPWD=$ac_cv_path_BINPWD
6443 if test -n "$BINPWD"; then
6444 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6445 echo "${ECHO_T}$BINPWD" >&6; }
6447 { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6453 # Extract the first word of "dot", so it can be a program name with args.
6454 set dummy dot; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_path_DOT+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6485 if test -n "$DOT"; then
6486 { echo "$as_me:$LINENO: result: $DOT" >&5
6487 echo "${ECHO_T}$DOT" >&6; }
6489 { echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6; }
6494 if test "$DOT" != "echo dot" ; then
6496 cat >>confdefs.h <<\_ACEOF
6500 if test "$llvm_cv_os_type" = "MingW" ; then
6501 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6504 cat >>confdefs.h <<_ACEOF
6505 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6510 # Find a good install program. We prefer a C program (faster),
6511 # so one script is as good as another. But avoid the broken or
6512 # incompatible versions:
6513 # SysV /etc/install, /usr/sbin/install
6514 # SunOS /usr/etc/install
6515 # IRIX /sbin/install
6517 # AmigaOS /C/install, which installs bootblocks on floppy discs
6518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6521 # OS/2's system install, which has a completely different semantic
6522 # ./install, which can be erroneously created by make from ./install.sh.
6523 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6524 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6525 if test -z "$INSTALL"; then
6526 if test "${ac_cv_path_install+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 # Account for people who put trailing slashes in PATH elements.
6536 ./ | .// | /cC/* | \
6537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6538 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6541 # OSF1 and SCO ODT 3.0 have their own names for install.
6542 # Don't use installbsd from OSF since it installs stuff as root
6544 for ac_prog in ginstall scoinst install; do
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6547 if test $ac_prog = install &&
6548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6549 # AIX install. It has an incompatible calling convention.
6551 elif test $ac_prog = install &&
6552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6553 # program-specific install script used by HP pwplus--don't use.
6556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6569 if test "${ac_cv_path_install+set}" = set; then
6570 INSTALL=$ac_cv_path_install
6572 # As a last resort, use the slow shell script. Don't cache a
6573 # value for INSTALL within a source directory, because that will
6574 # break other packages using the cache if that directory is
6575 # removed, or if the value is a relative name.
6576 INSTALL=$ac_install_sh
6579 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6580 echo "${ECHO_T}$INSTALL" >&6; }
6582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6583 # It thinks the first close brace ends the variable substitution.
6584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6591 [\\/$]* | ?:[\\/]* ) ;;
6592 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6595 # Extract the first word of "bzip2", so it can be a program name with args.
6596 set dummy bzip2; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_path_BZIP2+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 BZIP2=$ac_cv_path_BZIP2
6626 if test -n "$BZIP2"; then
6627 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6628 echo "${ECHO_T}$BZIP2" >&6; }
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6635 # Extract the first word of "cat", so it can be a program name with args.
6636 set dummy cat; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_path_CAT+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 if test -n "$CAT"; then
6667 { echo "$as_me:$LINENO: result: $CAT" >&5
6668 echo "${ECHO_T}$CAT" >&6; }
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6675 # Extract the first word of "doxygen", so it can be a program name with args.
6676 set dummy doxygen; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 DOXYGEN=$ac_cv_path_DOXYGEN
6706 if test -n "$DOXYGEN"; then
6707 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6708 echo "${ECHO_T}$DOXYGEN" >&6; }
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6715 # Extract the first word of "groff", so it can be a program name with args.
6716 set dummy groff; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_path_GROFF+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 GROFF=$ac_cv_path_GROFF
6746 if test -n "$GROFF"; then
6747 { echo "$as_me:$LINENO: result: $GROFF" >&5
6748 echo "${ECHO_T}$GROFF" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6755 # Extract the first word of "gzip", so it can be a program name with args.
6756 set dummy gzip; ac_word=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 GZIPBIN=$ac_cv_path_GZIPBIN
6786 if test -n "$GZIPBIN"; then
6787 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6788 echo "${ECHO_T}$GZIPBIN" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6795 # Extract the first word of "pdfroff", so it can be a program name with args.
6796 set dummy pdfroff; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_PDFROFF+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 PDFROFF=$ac_cv_path_PDFROFF
6826 if test -n "$PDFROFF"; then
6827 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6828 echo "${ECHO_T}$PDFROFF" >&6; }
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6835 # Extract the first word of "zip", so it can be a program name with args.
6836 set dummy zip; ac_word=$2
6837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6839 if test "${ac_cv_path_ZIP+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 if test -n "$ZIP"; then
6867 { echo "$as_me:$LINENO: result: $ZIP" >&5
6868 echo "${ECHO_T}$ZIP" >&6; }
6870 { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6875 # Extract the first word of "go", so it can be a program name with args.
6876 set dummy go; ac_word=$2
6877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6879 if test "${ac_cv_path_GO+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 if test -n "$GO"; then
6907 { echo "$as_me:$LINENO: result: $GO" >&5
6908 echo "${ECHO_T}$GO" >&6; }
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6915 for ac_prog in ocamlc
6917 # Extract the first word of "$ac_prog", so it can be a program name with args.
6918 set dummy $ac_prog; ac_word=$2
6919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6921 if test "${ac_cv_path_OCAMLC+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 OCAMLC=$ac_cv_path_OCAMLC
6948 if test -n "$OCAMLC"; then
6949 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6950 echo "${ECHO_T}$OCAMLC" >&6; }
6952 { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6957 test -n "$OCAMLC" && break
6960 for ac_prog in ocamlopt
6962 # Extract the first word of "$ac_prog", so it can be a program name with args.
6963 set dummy $ac_prog; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 OCAMLOPT=$ac_cv_path_OCAMLOPT
6993 if test -n "$OCAMLOPT"; then
6994 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6995 echo "${ECHO_T}$OCAMLOPT" >&6; }
6997 { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
7002 test -n "$OCAMLOPT" && break
7005 for ac_prog in ocamldep
7007 # Extract the first word of "$ac_prog", so it can be a program name with args.
7008 set dummy $ac_prog; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 OCAMLDEP=$ac_cv_path_OCAMLDEP
7038 if test -n "$OCAMLDEP"; then
7039 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7040 echo "${ECHO_T}$OCAMLDEP" >&6; }
7042 { echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6; }
7047 test -n "$OCAMLDEP" && break
7050 for ac_prog in ocamldoc
7052 # Extract the first word of "$ac_prog", so it can be a program name with args.
7053 set dummy $ac_prog; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 OCAMLDOC=$ac_cv_path_OCAMLDOC
7083 if test -n "$OCAMLDOC"; then
7084 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7085 echo "${ECHO_T}$OCAMLDOC" >&6; }
7087 { echo "$as_me:$LINENO: result: no" >&5
7088 echo "${ECHO_T}no" >&6; }
7092 test -n "$OCAMLDOC" && break
7095 for ac_prog in gas as
7097 # Extract the first word of "$ac_prog", so it can be a program name with args.
7098 set dummy $ac_prog; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_GAS+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 if test -n "$GAS"; then
7129 { echo "$as_me:$LINENO: result: $GAS" >&5
7130 echo "${ECHO_T}$GAS" >&6; }
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7137 test -n "$GAS" && break
7141 { echo "$as_me:$LINENO: checking for linker version" >&5
7142 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7143 if test "${llvm_cv_link_version+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7150 if (echo "$version_string" | grep -q "ld64"); then
7151 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7153 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7157 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7158 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7160 cat >>confdefs.h <<_ACEOF
7161 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7167 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7168 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7169 if test "${llvm_cv_link_use_r+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 ac_cpp='$CPP $CPPFLAGS'
7174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7179 CFLAGS="$CFLAGS -Wl,-R."
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (ac_try="$ac_link"
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_link") 2>conftest.er1
7204 grep -v '^ *+' conftest.er1 >conftest.err
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7210 { (case "(($ac_try" in
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 (eval "$ac_try") 2>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try='test -s conftest$ac_exeext'
7220 { (case "(($ac_try" in
7221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225 (eval "$ac_try") 2>&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 llvm_cv_link_use_r=yes
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 llvm_cv_link_use_r=no
7237 rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7248 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7249 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7250 if test "$llvm_cv_link_use_r" = yes ; then
7252 cat >>confdefs.h <<\_ACEOF
7253 #define HAVE_LINK_R 1
7259 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7260 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7261 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7271 CFLAGS="$CFLAGS -rdynamic"
7272 cat >conftest.$ac_ext <<_ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7287 rm -f conftest.$ac_objext conftest$ac_exeext
7288 if { (ac_try="$ac_link"
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_link") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } &&
7301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7302 { (case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_try") 2>&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest$ac_exeext'
7312 { (case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_try") 2>&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 llvm_cv_link_use_export_dynamic=yes
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 llvm_cv_link_use_export_dynamic=no
7329 rm -f core conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7340 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7341 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7342 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7344 cat >>confdefs.h <<\_ACEOF
7345 #define HAVE_LINK_EXPORT_DYNAMIC 1
7351 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7352 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7353 if test "${llvm_cv_link_use_version_script+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364 # The following code is from the autoconf manual,
7365 # "11.13: Limitations of Usual Tools".
7366 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7367 # Use mktemp if possible; otherwise fall back on mkdir,
7368 # with $RANDOM to make collisions less likely.
7372 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7374 test -n "$tmp" && test -d "$tmp"
7376 tmp=$TMPDIR/foo$$-$RANDOM
7377 (umask 077 && mkdir "$tmp")
7380 echo "{" > "$tmp/export.map"
7381 echo " global: main;" >> "$tmp/export.map"
7382 echo " local: *;" >> "$tmp/export.map"
7383 echo "};" >> "$tmp/export.map"
7385 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (ac_try="$ac_link"
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_link") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } &&
7415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7416 { (case "(($ac_try" in
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_try") 2>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; } &&
7425 { ac_try='test -s conftest$ac_exeext'
7426 { (case "(($ac_try" in
7427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428 *) ac_try_echo=$ac_try;;
7430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431 (eval "$ac_try") 2>&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 llvm_cv_link_use_version_script=yes
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 llvm_cv_link_use_version_script=no
7443 rm -f core conftest.err conftest.$ac_objext \
7444 conftest$ac_exeext conftest.$ac_ext
7445 rm "$tmp/export.map"
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7457 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7458 if test "$llvm_cv_link_use_version_script" = yes ; then
7459 HAVE_LINK_VERSION_SCRIPT=1
7465 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7466 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_GREP+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 # Extract the first word of "grep ggrep" to use in msg output
7471 if test -z "$GREP"; then
7472 set dummy grep ggrep; ac_prog_name=$2
7473 if test "${ac_cv_path_GREP+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 ac_path_GREP_found=false
7477 # Loop through the user's path and test for each of PROGNAME-LIST
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7482 test -z "$as_dir" && as_dir=.
7483 for ac_prog in grep ggrep; do
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7486 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7487 # Check for GNU ac_path_GREP and select it if it is found.
7488 # Check for GNU $ac_path_GREP
7489 case `"$ac_path_GREP" --version 2>&1` in
7491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7494 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7497 cat "conftest.in" "conftest.in" >"conftest.tmp"
7498 mv "conftest.tmp" "conftest.in"
7499 cp "conftest.in" "conftest.nl"
7500 echo 'GREP' >> "conftest.nl"
7501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7503 ac_count=`expr $ac_count + 1`
7504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7505 # Best one so far, save it but keep looking for a better one
7506 ac_cv_path_GREP="$ac_path_GREP"
7507 ac_path_GREP_max=$ac_count
7509 # 10*(2^10) chars as input seems more than enough
7510 test $ac_count -gt 10 && break
7512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7516 $ac_path_GREP_found && break 3
7526 GREP="$ac_cv_path_GREP"
7527 if test -z "$GREP"; then
7528 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7529 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7530 { (exit 1); exit 1; }; }
7534 ac_cv_path_GREP=$GREP
7539 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7540 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7541 GREP="$ac_cv_path_GREP"
7544 { echo "$as_me:$LINENO: checking for egrep" >&5
7545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7546 if test "${ac_cv_path_EGREP+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7550 then ac_cv_path_EGREP="$GREP -E"
7552 # Extract the first word of "egrep" to use in msg output
7553 if test -z "$EGREP"; then
7554 set dummy egrep; ac_prog_name=$2
7555 if test "${ac_cv_path_EGREP+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_path_EGREP_found=false
7559 # Loop through the user's path and test for each of PROGNAME-LIST
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7564 test -z "$as_dir" && as_dir=.
7565 for ac_prog in egrep; do
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7568 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7569 # Check for GNU ac_path_EGREP and select it if it is found.
7570 # Check for GNU $ac_path_EGREP
7571 case `"$ac_path_EGREP" --version 2>&1` in
7573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7576 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7579 cat "conftest.in" "conftest.in" >"conftest.tmp"
7580 mv "conftest.tmp" "conftest.in"
7581 cp "conftest.in" "conftest.nl"
7582 echo 'EGREP' >> "conftest.nl"
7583 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7585 ac_count=`expr $ac_count + 1`
7586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7587 # Best one so far, save it but keep looking for a better one
7588 ac_cv_path_EGREP="$ac_path_EGREP"
7589 ac_path_EGREP_max=$ac_count
7591 # 10*(2^10) chars as input seems more than enough
7592 test $ac_count -gt 10 && break
7594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7598 $ac_path_EGREP_found && break 3
7608 EGREP="$ac_cv_path_EGREP"
7609 if test -z "$EGREP"; then
7610 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7612 { (exit 1); exit 1; }; }
7616 ac_cv_path_EGREP=$EGREP
7622 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7623 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7624 EGREP="$ac_cv_path_EGREP"
7627 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7628 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7629 if test "${ac_cv_header_stdc+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 cat >conftest.$ac_ext <<_ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658 (eval "$ac_compile") 2>conftest.er1
7660 grep -v '^ *+' conftest.er1 >conftest.err
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666 { (case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_try") 2>&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try='test -s conftest.$ac_objext'
7676 { (case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_try") 2>&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; }; then
7685 ac_cv_header_stdc=yes
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 ac_cv_header_stdc=no
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 if test $ac_cv_header_stdc = yes; then
7696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7697 cat >conftest.$ac_ext <<_ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 $EGREP "memchr" >/dev/null 2>&1; then
7710 ac_cv_header_stdc=no
7716 if test $ac_cv_header_stdc = yes; then
7717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7718 cat >conftest.$ac_ext <<_ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728 $EGREP "free" >/dev/null 2>&1; then
7731 ac_cv_header_stdc=no
7737 if test $ac_cv_header_stdc = yes; then
7738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7739 if test "$cross_compiling" = yes; then
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7750 #if ((' ' & 0x0FF) == 0x020)
7751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7754 # define ISLOWER(c) \
7755 (('a' <= (c) && (c) <= 'i') \
7756 || ('j' <= (c) && (c) <= 'r') \
7757 || ('s' <= (c) && (c) <= 'z'))
7758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7766 for (i = 0; i < 256; i++)
7767 if (XOR (islower (i), ISLOWER (i))
7768 || toupper (i) != TOUPPER (i))
7773 rm -f conftest$ac_exeext
7774 if { (ac_try="$ac_link"
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_link") 2>&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7784 { (case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_try") 2>&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7795 echo "$as_me: program exited with status $ac_status" >&5
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7800 ac_cv_header_stdc=no
7802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7808 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7809 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7810 if test $ac_cv_header_stdc = yes; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define STDC_HEADERS 1
7818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7828 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7829 inttypes.h stdint.h unistd.h
7831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 $ac_includes_default
7845 #include <$ac_header>
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7856 grep -v '^ *+' conftest.er1 >conftest.err
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7862 { (case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_try") 2>&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; } &&
7871 { ac_try='test -s conftest.$ac_objext'
7872 { (case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_try") 2>&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 eval "$as_ac_Header=yes"
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 eval "$as_ac_Header=no"
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891 ac_res=`eval echo '${'$as_ac_Header'}'`
7892 { echo "$as_me:$LINENO: result: $ac_res" >&5
7893 echo "${ECHO_T}$ac_res" >&6; }
7894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7895 cat >>confdefs.h <<_ACEOF
7896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905 for ac_header in errno.h
7907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 ac_res=`eval echo '${'$as_ac_Header'}'`
7915 { echo "$as_me:$LINENO: result: $ac_res" >&5
7916 echo "${ECHO_T}$ac_res" >&6; }
7918 # Is the header compilable?
7919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7921 cat >conftest.$ac_ext <<_ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 $ac_includes_default
7928 #include <$ac_header>
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7939 grep -v '^ *+' conftest.er1 >conftest.err
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7945 { (case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_try") 2>&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; } &&
7954 { ac_try='test -s conftest.$ac_objext'
7955 { (case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_try") 2>&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 ac_header_compiler=yes
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 ac_header_compiler=no
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7974 echo "${ECHO_T}$ac_header_compiler" >&6; }
7976 # Is the header present?
7977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7979 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 #include <$ac_header>
7987 if { (ac_try="$ac_cpp conftest.$ac_ext"
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } >/dev/null; then
8000 if test -s conftest.err; then
8001 ac_cpp_err=$ac_c_preproc_warn_flag
8002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8009 if test -z "$ac_cpp_err"; then
8010 ac_header_preproc=yes
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 ac_header_preproc=no
8018 rm -f conftest.err conftest.$ac_ext
8019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8020 echo "${ECHO_T}$ac_header_preproc" >&6; }
8022 # So? What about this header?
8023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8029 ac_header_preproc=yes
8032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8045 ## ------------------------------------ ##
8046 ## Report this to http://llvm.org/bugs/ ##
8047 ## ------------------------------------ ##
8049 ) | sed "s/^/$as_me: WARNING: /" >&2
8052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 eval "$as_ac_Header=\$ac_header_preproc"
8059 ac_res=`eval echo '${'$as_ac_Header'}'`
8060 { echo "$as_me:$LINENO: result: $ac_res" >&5
8061 echo "${ECHO_T}$ac_res" >&6; }
8064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8065 cat >>confdefs.h <<_ACEOF
8066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8074 case "$llvm_cv_os_type" in
8075 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8076 Darwin) llvm_shlib_ext=.dylib ;;
8077 *) llvm_shlib_ext=.so ;;
8081 cat >>confdefs.h <<_ACEOF
8082 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8086 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8087 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8100 if test "$GCC" != "yes" && test "$ICC" != "yes"
8102 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8103 echo "$as_me: error: gcc|icc required but not found" >&2;}
8104 { (exit 1); exit 1; }; }
8107 if test "$GXX" != "yes" && test "$IXX" != "yes"
8109 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8110 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8111 { (exit 1); exit 1; }; }
8114 if test "$GCC" = "yes"
8116 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8124 #if !defined(__GNUC__) || __GNUC__ < 3
8125 #error Unsupported GCC version
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8170 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8171 { (exit 1); exit 1; }; }
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 if test -z "$llvm_cv_gnu_make_command"
8179 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8180 echo "$as_me: error: GNU Make required but not found" >&2;}
8181 { (exit 1); exit 1; }; }
8184 { echo "$as_me:$LINENO: result: ok" >&5
8185 echo "${ECHO_T}ok" >&6; }
8187 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8188 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8189 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8191 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8193 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8197 NO_MAYBE_UNINITIALIZED=
8198 if test "$GXX" = "yes"
8200 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8202 if test -z "$NO_MAYBE_UNINITIALIZED"
8204 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8208 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8209 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8212 # Check whether --with-python was given.
8213 if test "${with_python+set}" = set; then
8214 withval=$with_python; PYTHON="$withval"
8218 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8219 { echo "$as_me:$LINENO: checking for python" >&5
8220 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8221 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8222 echo "${ECHO_T}user defined: $with_python" >&6; }
8224 if test -n "$PYTHON" ; then
8225 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8226 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8229 # Extract the first word of "python python2 python26", so it can be a program name with args.
8230 set dummy python python2 python26; ac_word=$2
8231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8233 if test "${ac_cv_path_PYTHON+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8257 echo "${ECHO_T}not found" >&6; }
8258 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8259 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8260 { (exit 1); exit 1; }; }"
8264 PYTHON=$ac_cv_path_PYTHON
8265 if test -n "$PYTHON"; then
8266 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8267 echo "${ECHO_T}$PYTHON" >&6; }
8269 { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8276 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8277 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8278 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8279 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8280 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8281 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8282 if test "$ac_python_version_major" -gt "2" || \
8283 (test "$ac_python_version_major" -eq "2" && \
8284 test "$ac_python_version_minor" -ge "5") ; then
8285 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8286 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8288 { echo "$as_me:$LINENO: result: not found" >&5
8289 echo "${ECHO_T}not found" >&6; }
8290 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8291 See \`config.log' for more details." >&5
8292 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8293 See \`config.log' for more details." >&2;}
8294 { (exit 1); exit 1; }; }
8299 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8300 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8301 if test "${ac_cv_lib_m_sin+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 ac_check_lib_save_LIBS=$LIBS
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8313 /* Override any GCC internal prototype to avoid an error.
8314 Use char because int might match the return type of a GCC
8315 builtin and then its argument prototype would still apply. */
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (ac_try="$ac_link"
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335 (eval "$ac_link") 2>conftest.er1
8337 grep -v '^ *+' conftest.er1 >conftest.err
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8343 { (case "(($ac_try" in
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_try") 2>&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8370 rm -f core conftest.err conftest.$ac_objext \
8371 conftest$ac_exeext conftest.$ac_ext
8372 LIBS=$ac_check_lib_save_LIBS
8374 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8375 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8376 if test $ac_cv_lib_m_sin = yes; then
8377 cat >>confdefs.h <<_ACEOF
8385 if test "$llvm_cv_os_type" = "MingW" ; then
8387 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8388 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8389 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 ac_check_lib_save_LIBS=$LIBS
8393 LIBS="-limagehlp $LIBS"
8394 cat >conftest.$ac_ext <<_ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (ac_try="$ac_link"
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_link") 2>conftest.er1
8419 grep -v '^ *+' conftest.er1 >conftest.err
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8425 { (case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_try") 2>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; } &&
8434 { ac_try='test -s conftest$ac_exeext'
8435 { (case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_try") 2>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_lib_imagehlp_main=yes
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_lib_imagehlp_main=no
8452 rm -f core conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 LIBS=$ac_check_lib_save_LIBS
8456 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8457 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8458 if test $ac_cv_lib_imagehlp_main = yes; then
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_LIBIMAGEHLP 1
8463 LIBS="-limagehlp $LIBS"
8468 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8469 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8470 if test "${ac_cv_lib_psapi_main+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 ac_check_lib_save_LIBS=$LIBS
8474 LIBS="-lpsapi $LIBS"
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (ac_try="$ac_link"
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_link") 2>conftest.er1
8500 grep -v '^ *+' conftest.er1 >conftest.err
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8506 { (case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_try") 2>&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; } &&
8515 { ac_try='test -s conftest$ac_exeext'
8516 { (case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_try") 2>&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 ac_cv_lib_psapi_main=yes
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8530 ac_cv_lib_psapi_main=no
8533 rm -f core conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535 LIBS=$ac_check_lib_save_LIBS
8537 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8538 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8539 if test $ac_cv_lib_psapi_main = yes; then
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_LIBPSAPI 1
8544 LIBS="-lpsapi $LIBS"
8549 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8550 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8551 if test "${ac_cv_lib_shell32_main+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 ac_check_lib_save_LIBS=$LIBS
8555 LIBS="-lshell32 $LIBS"
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (ac_try="$ac_link"
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_link") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest$ac_exeext'
8597 { (case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_try") 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_cv_lib_shell32_main=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_cv_lib_shell32_main=no
8614 rm -f core conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 LIBS=$ac_check_lib_save_LIBS
8618 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8619 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8620 if test $ac_cv_lib_shell32_main = yes; then
8621 cat >>confdefs.h <<_ACEOF
8622 #define HAVE_LIBSHELL32 1
8625 LIBS="-lshell32 $LIBS"
8631 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8632 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8633 if test "${ac_cv_search_dlopen+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 ac_func_search_save_LIBS=$LIBS
8637 cat >conftest.$ac_ext <<_ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8659 for ac_lib in '' dl; do
8660 if test -z "$ac_lib"; then
8661 ac_res="none required"
8664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_link") 2>conftest.er1
8675 grep -v '^ *+' conftest.er1 >conftest.err
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8681 { (case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_try") 2>&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest$ac_exeext'
8691 { (case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_try") 2>&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_search_dlopen=$ac_res
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8708 rm -f core conftest.err conftest.$ac_objext \
8710 if test "${ac_cv_search_dlopen+set}" = set; then
8714 if test "${ac_cv_search_dlopen+set}" = set; then
8717 ac_cv_search_dlopen=no
8720 LIBS=$ac_func_search_save_LIBS
8722 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8723 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8724 ac_res=$ac_cv_search_dlopen
8725 if test "$ac_res" != no; then
8726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8729 cat >>confdefs.h <<\_ACEOF
8730 #define HAVE_DLOPEN 1
8737 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8738 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8742 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8743 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8744 if test "${ac_cv_search_clock_gettime+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 ac_func_search_save_LIBS=$LIBS
8748 cat >conftest.$ac_ext <<_ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8755 /* Override any GCC internal prototype to avoid an error.
8756 Use char because int might match the return type of a GCC
8757 builtin and then its argument prototype would still apply. */
8761 char clock_gettime ();
8765 return clock_gettime ();
8770 for ac_lib in '' rt; do
8771 if test -z "$ac_lib"; then
8772 ac_res="none required"
8775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8777 rm -f conftest.$ac_objext conftest$ac_exeext
8778 if { (ac_try="$ac_link"
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_link") 2>conftest.er1
8786 grep -v '^ *+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8792 { (case "(($ac_try" in
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_try") 2>&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; } &&
8801 { ac_try='test -s conftest$ac_exeext'
8802 { (case "(($ac_try" in
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_try") 2>&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_cv_search_clock_gettime=$ac_res
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8819 rm -f core conftest.err conftest.$ac_objext \
8821 if test "${ac_cv_search_clock_gettime+set}" = set; then
8825 if test "${ac_cv_search_clock_gettime+set}" = set; then
8828 ac_cv_search_clock_gettime=no
8831 LIBS=$ac_func_search_save_LIBS
8833 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8834 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8835 ac_res=$ac_cv_search_clock_gettime
8836 if test "$ac_res" != no; then
8837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8842 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8843 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8844 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8845 if test "${ac_cv_search_setupterm+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 ac_func_search_save_LIBS=$LIBS
8849 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8866 return setupterm ();
8871 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8872 if test -z "$ac_lib"; then
8873 ac_res="none required"
8876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (ac_try="$ac_link"
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_link") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1 >conftest.err
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8893 { (case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_try") 2>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (case "(($ac_try" in
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908 (eval "$ac_try") 2>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_search_setupterm=$ac_res
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8920 rm -f core conftest.err conftest.$ac_objext \
8922 if test "${ac_cv_search_setupterm+set}" = set; then
8926 if test "${ac_cv_search_setupterm+set}" = set; then
8929 ac_cv_search_setupterm=no
8932 LIBS=$ac_func_search_save_LIBS
8934 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8935 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8936 ac_res=$ac_cv_search_setupterm
8937 if test "$ac_res" != no; then
8938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8941 cat >>confdefs.h <<\_ACEOF
8942 #define HAVE_TERMINFO 1
8952 if test "$llvm_cv_enable_libedit" = "yes" ; then
8953 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8954 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8955 if test "${ac_cv_search_el_init+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 ac_func_search_save_LIBS=$LIBS
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 /* Override any GCC internal prototype to avoid an error.
8967 Use char because int might match the return type of a GCC
8968 builtin and then its argument prototype would still apply. */
8981 for ac_lib in '' edit; do
8982 if test -z "$ac_lib"; then
8983 ac_res="none required"
8986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (ac_try="$ac_link"
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_link") 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (case "(($ac_try" in
9004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_try") 2>&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_search_el_init=$ac_res
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9030 rm -f core conftest.err conftest.$ac_objext \
9032 if test "${ac_cv_search_el_init+set}" = set; then
9036 if test "${ac_cv_search_el_init+set}" = set; then
9039 ac_cv_search_el_init=no
9042 LIBS=$ac_func_search_save_LIBS
9044 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9045 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9046 ac_res=$ac_cv_search_el_init
9047 if test "$ac_res" != no; then
9048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9050 cat >>confdefs.h <<\_ACEOF
9051 #define HAVE_LIBEDIT 1
9058 if test "$llvm_cv_enable_libffi" = "yes" ; then
9059 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9060 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9061 if test "${ac_cv_search_ffi_call+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 ac_func_search_save_LIBS=$LIBS
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9072 /* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
9087 for ac_lib in '' ffi; do
9088 if test -z "$ac_lib"; then
9089 ac_res="none required"
9092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9094 rm -f conftest.$ac_objext conftest$ac_exeext
9095 if { (ac_try="$ac_link"
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_link") 2>conftest.er1
9103 grep -v '^ *+' conftest.er1 >conftest.err
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9109 { (case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_try") 2>&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest$ac_exeext'
9119 { (case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_try") 2>&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_search_ffi_call=$ac_res
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9136 rm -f core conftest.err conftest.$ac_objext \
9138 if test "${ac_cv_search_ffi_call+set}" = set; then
9142 if test "${ac_cv_search_ffi_call+set}" = set; then
9145 ac_cv_search_ffi_call=no
9148 LIBS=$ac_func_search_save_LIBS
9150 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9151 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9152 ac_res=$ac_cv_search_ffi_call
9153 if test "$ac_res" != no; then
9154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9156 cat >>confdefs.h <<\_ACEOF
9157 #define HAVE_FFI_CALL 1
9161 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9162 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9163 { (exit 1); exit 1; }; }
9168 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9169 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9170 if test "${ac_cv_search_mallinfo+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 ac_func_search_save_LIBS=$LIBS
9174 cat >conftest.$ac_ext <<_ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9181 /* Override any GCC internal prototype to avoid an error.
9182 Use char because int might match the return type of a GCC
9183 builtin and then its argument prototype would still apply. */
9196 for ac_lib in '' malloc; do
9197 if test -z "$ac_lib"; then
9198 ac_res="none required"
9201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9203 rm -f conftest.$ac_objext conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_link") 2>conftest.er1
9212 grep -v '^ *+' conftest.er1 >conftest.err
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_try") 2>&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest$ac_exeext'
9228 { (case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_try") 2>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 ac_cv_search_mallinfo=$ac_res
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9245 rm -f core conftest.err conftest.$ac_objext \
9247 if test "${ac_cv_search_mallinfo+set}" = set; then
9251 if test "${ac_cv_search_mallinfo+set}" = set; then
9254 ac_cv_search_mallinfo=no
9257 LIBS=$ac_func_search_save_LIBS
9259 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9260 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9261 ac_res=$ac_cv_search_mallinfo
9262 if test "$ac_res" != no; then
9263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9265 cat >>confdefs.h <<\_ACEOF
9266 #define HAVE_MALLINFO 1
9272 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9274 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9275 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9276 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 ac_check_lib_save_LIBS=$LIBS
9280 LIBS="-lpthread $LIBS"
9281 cat >conftest.$ac_ext <<_ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9288 /* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9294 char pthread_mutex_init ();
9298 return pthread_mutex_init ();
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (ac_try="$ac_link"
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_link") 2>conftest.er1
9312 grep -v '^ *+' conftest.er1 >conftest.err
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9318 { (case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_try") 2>&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try='test -s conftest$ac_exeext'
9328 { (case "(($ac_try" in
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333 (eval "$ac_try") 2>&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_cv_lib_pthread_pthread_mutex_init=yes
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_cv_lib_pthread_pthread_mutex_init=no
9345 rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 LIBS=$ac_check_lib_save_LIBS
9349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9350 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9351 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9352 cat >>confdefs.h <<_ACEOF
9353 #define HAVE_LIBPTHREAD 1
9356 LIBS="-lpthread $LIBS"
9360 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9361 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9362 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 ac_func_search_save_LIBS=$LIBS
9366 cat >conftest.$ac_ext <<_ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9379 char pthread_mutex_lock ();
9383 return pthread_mutex_lock ();
9388 for ac_lib in '' pthread; do
9389 if test -z "$ac_lib"; then
9390 ac_res="none required"
9393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9404 grep -v '^ *+' conftest.er1 >conftest.err
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9410 { (case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_try") 2>&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try='test -s conftest$ac_exeext'
9420 { (case "(($ac_try" in
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429 ac_cv_search_pthread_mutex_lock=$ac_res
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9437 rm -f core conftest.err conftest.$ac_objext \
9439 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9443 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9446 ac_cv_search_pthread_mutex_lock=no
9449 LIBS=$ac_func_search_save_LIBS
9451 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9452 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9453 ac_res=$ac_cv_search_pthread_mutex_lock
9454 if test "$ac_res" != no; then
9455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_PTHREAD_MUTEX_LOCK 1
9463 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9464 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9465 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 ac_func_search_save_LIBS=$LIBS
9469 cat >conftest.$ac_ext <<_ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9476 /* Override any GCC internal prototype to avoid an error.
9477 Use char because int might match the return type of a GCC
9478 builtin and then its argument prototype would still apply. */
9482 char pthread_rwlock_init ();
9486 return pthread_rwlock_init ();
9491 for ac_lib in '' pthread; do
9492 if test -z "$ac_lib"; then
9493 ac_res="none required"
9496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_link") 2>conftest.er1
9507 grep -v '^ *+' conftest.er1 >conftest.err
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9513 { (case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_try") 2>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; } &&
9522 { ac_try='test -s conftest$ac_exeext'
9523 { (case "(($ac_try" in
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_try") 2>&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_cv_search_pthread_rwlock_init=$ac_res
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9540 rm -f core conftest.err conftest.$ac_objext \
9542 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9546 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9549 ac_cv_search_pthread_rwlock_init=no
9552 LIBS=$ac_func_search_save_LIBS
9554 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9555 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9556 ac_res=$ac_cv_search_pthread_rwlock_init
9557 if test "$ac_res" != no; then
9558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9560 cat >>confdefs.h <<\_ACEOF
9561 #define HAVE_PTHREAD_RWLOCK_INIT 1
9566 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9567 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9568 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 ac_func_search_save_LIBS=$LIBS
9572 cat >conftest.$ac_ext <<_ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9585 char pthread_getspecific ();
9589 return pthread_getspecific ();
9594 for ac_lib in '' pthread; do
9595 if test -z "$ac_lib"; then
9596 ac_res="none required"
9599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616 { (case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_try") 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_try") 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_cv_search_pthread_getspecific=$ac_res
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9643 rm -f core conftest.err conftest.$ac_objext \
9645 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9649 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9652 ac_cv_search_pthread_getspecific=no
9655 LIBS=$ac_func_search_save_LIBS
9657 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9658 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9659 ac_res=$ac_cv_search_pthread_getspecific
9660 if test "$ac_res" != no; then
9661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_PTHREAD_GETSPECIFIC 1
9671 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9673 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9674 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9675 if test "${ac_cv_lib_z_compress2+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 ac_check_lib_save_LIBS=$LIBS
9680 cat >conftest.$ac_ext <<_ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9697 return compress2 ();
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
9711 grep -v '^ *+' conftest.er1 >conftest.err
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_try") 2>&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_cv_lib_z_compress2=yes
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_cv_lib_z_compress2=no
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_lib_save_LIBS
9748 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9749 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9750 if test $ac_cv_lib_z_compress2 = yes; then
9751 cat >>confdefs.h <<_ACEOF
9762 # Check whether --with-oprofile was given.
9763 if test "${with_oprofile+set}" = set; then
9764 withval=$with_oprofile;
9768 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9772 *) llvm_cv_oppath="${withval}/lib/oprofile"
9773 CPPFLAGS="-I${withval}/include";;
9775 case $llvm_cv_os_type in
9777 if test -n "$llvm_cv_oppath" ; then
9778 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9779 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9780 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9781 if test "${ac_cv_search_bfd_init+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 ac_func_search_save_LIBS=$LIBS
9785 cat >conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9792 /* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
9807 for ac_lib in '' bfd; do
9808 if test -z "$ac_lib"; then
9809 ac_res="none required"
9812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (ac_try="$ac_link"
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_link") 2>conftest.er1
9823 grep -v '^ *+' conftest.er1 >conftest.err
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; } &&
9838 { ac_try='test -s conftest$ac_exeext'
9839 { (case "(($ac_try" in
9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844 (eval "$ac_try") 2>&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_cv_search_bfd_init=$ac_res
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9856 rm -f core conftest.err conftest.$ac_objext \
9858 if test "${ac_cv_search_bfd_init+set}" = set; then
9862 if test "${ac_cv_search_bfd_init+set}" = set; then
9865 ac_cv_search_bfd_init=no
9868 LIBS=$ac_func_search_save_LIBS
9870 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9871 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9872 ac_res=$ac_cv_search_bfd_init
9873 if test "$ac_res" != no; then
9874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9878 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9879 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9880 if test "${ac_cv_search_op_open_agent+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 ac_func_search_save_LIBS=$LIBS
9884 cat >conftest.$ac_ext <<_ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
9897 char op_open_agent ();
9901 return op_open_agent ();
9906 for ac_lib in '' opagent; do
9907 if test -z "$ac_lib"; then
9908 ac_res="none required"
9911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_link") 2>conftest.er1
9922 grep -v '^ *+' conftest.er1 >conftest.err
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_search_op_open_agent=$ac_res
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9955 rm -f core conftest.err conftest.$ac_objext \
9957 if test "${ac_cv_search_op_open_agent+set}" = set; then
9961 if test "${ac_cv_search_op_open_agent+set}" = set; then
9964 ac_cv_search_op_open_agent=no
9967 LIBS=$ac_func_search_save_LIBS
9969 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9970 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9971 ac_res=$ac_cv_search_op_open_agent
9972 if test "$ac_res" != no; then
9973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9977 echo "Error! You need to have libopagent around."
9982 if test "${ac_cv_header_opagent_h+set}" = set; then
9983 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9984 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9985 if test "${ac_cv_header_opagent_h+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9989 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9991 # Is the header compilable?
9992 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9993 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 #include <opagent.h>
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest.$ac_objext'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_header_compiler=yes
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 ac_header_compiler=no
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10047 echo "${ECHO_T}$ac_header_compiler" >&6; }
10049 # Is the header present?
10050 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10051 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 #include <opagent.h>
10060 if { (ac_try="$ac_cpp conftest.$ac_ext"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10068 grep -v '^ *+' conftest.er1 >conftest.err
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } >/dev/null; then
10073 if test -s conftest.err; then
10074 ac_cpp_err=$ac_c_preproc_warn_flag
10075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10082 if test -z "$ac_cpp_err"; then
10083 ac_header_preproc=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_header_preproc=no
10091 rm -f conftest.err conftest.$ac_ext
10092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10093 echo "${ECHO_T}$ac_header_preproc" >&6; }
10095 # So? What about this header?
10096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10098 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10099 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10100 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10101 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10102 ac_header_preproc=yes
10105 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10106 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10107 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10108 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10109 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10110 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10111 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10112 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10113 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10114 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10116 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10118 ## ------------------------------------ ##
10119 ## Report this to http://llvm.org/bugs/ ##
10120 ## ------------------------------------ ##
10122 ) | sed "s/^/$as_me: WARNING: /" >&2
10125 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10126 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10127 if test "${ac_cv_header_opagent_h+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 ac_cv_header_opagent_h=$ac_header_preproc
10132 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10133 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10136 if test $ac_cv_header_opagent_h = yes; then
10140 echo "Error! You need to have opagent.h around."
10148 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10149 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10150 { (exit 1); exit 1; }; } ;;
10161 cat >>confdefs.h <<_ACEOF
10162 #define LLVM_USE_OPROFILE $USE_OPROFILE
10167 # Check whether --with-intel-jitevents was given.
10168 if test "${with_intel_jitevents+set}" = set; then
10169 withval=$with_intel_jitevents;
10171 yes) USE_INTEL_JITEVENTS=1
10173 no) USE_INTEL_JITEVENTS=0
10175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10176 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10177 { (exit 1); exit 1; }; };;
10180 case $llvm_cv_os_type in
10181 Linux|Win32|Cygwin|MingW) ;;
10182 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10183 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10184 { (exit 1); exit 1; }; };;
10187 case "$llvm_cv_target_arch" in
10189 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10190 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10191 { (exit 1); exit 1; }; };;
10196 USE_INTEL_JITEVENTS=0
10202 cat >>confdefs.h <<_ACEOF
10203 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10207 for ac_prog in xml2-config
10209 # Extract the first word of "$ac_prog", so it can be a program name with args.
10210 set dummy $ac_prog; ac_word=$2
10211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10213 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 if test -n "$XML2CONFIG"; then
10217 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in $PATH
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10226 ac_cv_prog_XML2CONFIG="$ac_prog"
10227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10237 if test -n "$XML2CONFIG"; then
10238 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10239 echo "${ECHO_T}$XML2CONFIG" >&6; }
10241 { echo "$as_me:$LINENO: result: no" >&5
10242 echo "${ECHO_T}no" >&6; }
10246 test -n "$XML2CONFIG" && break
10250 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10251 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10252 if test "x$XML2CONFIG" = "x"; then
10253 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10254 echo "${ECHO_T}xml2-config not found" >&6; }
10256 LIBXML2_INC=`$XML2CONFIG --cflags`
10257 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10258 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10259 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10260 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-lxml2 $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10279 char xmlReadFile ();
10283 return xmlReadFile ();
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10297 grep -v '^ *+' conftest.er1 >conftest.err
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_try") 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_cv_lib_xml2_xmlReadFile=yes
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 ac_cv_lib_xml2_xmlReadFile=no
10330 rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10332 LIBS=$ac_check_lib_save_LIBS
10334 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10335 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10336 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10338 cat >>confdefs.h <<\_ACEOF
10339 #define CLANG_HAVE_LIBXML 1
10342 LIBXML2_LIBS="-lxml2"
10355 ac_header_dirent=no
10356 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10357 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10358 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10359 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 cat >conftest.$ac_ext <<_ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 #include <sys/types.h>
10381 rm -f conftest.$ac_objext
10382 if { (ac_try="$ac_compile"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_compile") 2>conftest.er1
10390 grep -v '^ *+' conftest.er1 >conftest.err
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest.$ac_objext'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 eval "$as_ac_Header=yes"
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 eval "$as_ac_Header=no"
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10425 ac_res=`eval echo '${'$as_ac_Header'}'`
10426 { echo "$as_me:$LINENO: result: $ac_res" >&5
10427 echo "${ECHO_T}$ac_res" >&6; }
10428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10429 cat >>confdefs.h <<_ACEOF
10430 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10433 ac_header_dirent=$ac_hdr; break
10437 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10438 if test $ac_header_dirent = dirent.h; then
10439 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10440 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10441 if test "${ac_cv_search_opendir+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 ac_func_search_save_LIBS=$LIBS
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10452 /* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10467 for ac_lib in '' dir; do
10468 if test -z "$ac_lib"; then
10469 ac_res="none required"
10472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (ac_try="$ac_link"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_link") 2>conftest.er1
10483 grep -v '^ *+' conftest.er1 >conftest.err
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest$ac_exeext'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_cv_search_opendir=$ac_res
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10516 rm -f core conftest.err conftest.$ac_objext \
10518 if test "${ac_cv_search_opendir+set}" = set; then
10522 if test "${ac_cv_search_opendir+set}" = set; then
10525 ac_cv_search_opendir=no
10527 rm conftest.$ac_ext
10528 LIBS=$ac_func_search_save_LIBS
10530 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10531 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10532 ac_res=$ac_cv_search_opendir
10533 if test "$ac_res" != no; then
10534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10539 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10540 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10541 if test "${ac_cv_search_opendir+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 ac_func_search_save_LIBS=$LIBS
10545 cat >conftest.$ac_ext <<_ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10552 /* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10567 for ac_lib in '' x; do
10568 if test -z "$ac_lib"; then
10569 ac_res="none required"
10572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (ac_try="$ac_link"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_link") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10589 { (case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_try") 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try='test -s conftest$ac_exeext'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_cv_search_opendir=$ac_res
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10616 rm -f core conftest.err conftest.$ac_objext \
10618 if test "${ac_cv_search_opendir+set}" = set; then
10622 if test "${ac_cv_search_opendir+set}" = set; then
10625 ac_cv_search_opendir=no
10627 rm conftest.$ac_ext
10628 LIBS=$ac_func_search_save_LIBS
10630 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10631 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10632 ac_res=$ac_cv_search_opendir
10633 if test "$ac_res" != no; then
10634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10640 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10641 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10642 if test "${ac_cv_header_mmap_anon+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 ac_cpp='$CPP $CPPFLAGS'
10647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10651 cat >conftest.$ac_ext <<_ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657 #include <sys/mman.h>
10658 #include <unistd.h>
10663 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10668 rm -f conftest.$ac_objext
10669 if { (ac_try="$ac_compile"
10670 case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_compile") 2>conftest.er1
10677 grep -v '^ *+' conftest.er1 >conftest.err
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10683 { (case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_try") 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest.$ac_objext'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 ac_cv_header_mmap_anon=yes
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ac_cv_header_mmap_anon=no
10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712 ac_cpp='$CPP $CPPFLAGS'
10713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10719 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10720 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10721 if test "$ac_cv_header_mmap_anon" = yes; then
10723 cat >>confdefs.h <<\_ACEOF
10724 #define HAVE_MMAP_ANONYMOUS 1
10729 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10730 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10731 if test "${ac_cv_header_stat_broken+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <sys/types.h>
10741 #include <sys/stat.h>
10743 #if defined S_ISBLK && defined S_IFDIR
10744 # if S_ISBLK (S_IFDIR)
10749 #if defined S_ISBLK && defined S_IFCHR
10750 # if S_ISBLK (S_IFCHR)
10755 #if defined S_ISLNK && defined S_IFREG
10756 # if S_ISLNK (S_IFREG)
10761 #if defined S_ISSOCK && defined S_IFREG
10762 # if S_ISSOCK (S_IFREG)
10768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10769 $EGREP "You lose" >/dev/null 2>&1; then
10770 ac_cv_header_stat_broken=yes
10772 ac_cv_header_stat_broken=no
10777 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10778 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10779 if test $ac_cv_header_stat_broken = yes; then
10781 cat >>confdefs.h <<\_ACEOF
10782 #define STAT_MACROS_BROKEN 1
10787 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10788 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10789 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.$ac_ext <<_ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 #include <sys/types.h>
10799 #include <sys/wait.h>
10800 #ifndef WEXITSTATUS
10801 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10804 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10812 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10817 rm -f conftest.$ac_objext
10818 if { (ac_try="$ac_compile"
10819 case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_compile") 2>conftest.er1
10826 grep -v '^ *+' conftest.er1 >conftest.err
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10832 { (case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_try") 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_try") 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_header_sys_wait_h=yes
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_cv_header_sys_wait_h=no
10859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10861 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10862 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10863 if test $ac_cv_header_sys_wait_h = yes; then
10865 cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_SYS_WAIT_H 1
10871 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10872 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10873 if test "${ac_cv_header_time+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 cat >conftest.$ac_ext <<_ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <sys/types.h>
10883 #include <sys/time.h>
10889 if ((struct tm *) 0)
10895 rm -f conftest.$ac_objext
10896 if { (ac_try="$ac_compile"
10897 case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_compile") 2>conftest.er1
10904 grep -v '^ *+' conftest.er1 >conftest.err
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10910 { (case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_try") 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; } &&
10919 { ac_try='test -s conftest.$ac_objext'
10920 { (case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_try") 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 ac_cv_header_time=yes
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_cv_header_time=no
10937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10939 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10940 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10941 if test $ac_cv_header_time = yes; then
10943 cat >>confdefs.h <<\_ACEOF
10944 #define TIME_WITH_SYS_TIME 1
10951 ac_cpp='$CXXCPP $CPPFLAGS'
10952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10957 ac_cpp='$CXXCPP $CPPFLAGS'
10958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10961 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10962 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10963 if test -z "$CXXCPP"; then
10964 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 # Double quotes because CXXCPP needs to be expanded
10968 for CXXCPP in "$CXX -E" "/lib/cpp"
10970 ac_preproc_ok=false
10971 for ac_cxx_preproc_warn_flag in '' yes
10973 # Use a header file that comes with gcc, so configuring glibc
10974 # with a fresh cross-compiler works.
10975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10976 # <limits.h> exists even on freestanding compilers.
10977 # On the NeXT, cc -E runs the code through the compiler's parser,
10978 # not just through cpp. "Syntax error" is here to catch this case.
10979 cat >conftest.$ac_ext <<_ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10986 # include <limits.h>
10988 # include <assert.h>
10992 if { (ac_try="$ac_cpp conftest.$ac_ext"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } >/dev/null; then
11005 if test -s conftest.err; then
11006 ac_cpp_err=$ac_cxx_preproc_warn_flag
11007 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11014 if test -z "$ac_cpp_err"; then
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 # Broken: fails on valid input.
11024 rm -f conftest.err conftest.$ac_ext
11026 # OK, works on sane cases. Now check whether nonexistent headers
11027 # can be detected and how.
11028 cat >conftest.$ac_ext <<_ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 #include <ac_nonexistent.h>
11036 if { (ac_try="$ac_cpp conftest.$ac_ext"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11044 grep -v '^ *+' conftest.er1 >conftest.err
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } >/dev/null; then
11049 if test -s conftest.err; then
11050 ac_cpp_err=$ac_cxx_preproc_warn_flag
11051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11058 if test -z "$ac_cpp_err"; then
11059 # Broken: success on invalid input.
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 # Passes both tests.
11070 rm -f conftest.err conftest.$ac_ext
11073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11074 rm -f conftest.err conftest.$ac_ext
11075 if $ac_preproc_ok; then
11080 ac_cv_prog_CXXCPP=$CXXCPP
11083 CXXCPP=$ac_cv_prog_CXXCPP
11085 ac_cv_prog_CXXCPP=$CXXCPP
11087 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11088 echo "${ECHO_T}$CXXCPP" >&6; }
11089 ac_preproc_ok=false
11090 for ac_cxx_preproc_warn_flag in '' yes
11092 # Use a header file that comes with gcc, so configuring glibc
11093 # with a fresh cross-compiler works.
11094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11095 # <limits.h> exists even on freestanding compilers.
11096 # On the NeXT, cc -E runs the code through the compiler's parser,
11097 # not just through cpp. "Syntax error" is here to catch this case.
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11105 # include <limits.h>
11107 # include <assert.h>
11111 if { (ac_try="$ac_cpp conftest.$ac_ext"
11112 case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11119 grep -v '^ *+' conftest.er1 >conftest.err
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } >/dev/null; then
11124 if test -s conftest.err; then
11125 ac_cpp_err=$ac_cxx_preproc_warn_flag
11126 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11133 if test -z "$ac_cpp_err"; then
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 # Broken: fails on valid input.
11143 rm -f conftest.err conftest.$ac_ext
11145 # OK, works on sane cases. Now check whether nonexistent headers
11146 # can be detected and how.
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 #include <ac_nonexistent.h>
11155 if { (ac_try="$ac_cpp conftest.$ac_ext"
11156 case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11163 grep -v '^ *+' conftest.er1 >conftest.err
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } >/dev/null; then
11168 if test -s conftest.err; then
11169 ac_cpp_err=$ac_cxx_preproc_warn_flag
11170 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11177 if test -z "$ac_cpp_err"; then
11178 # Broken: success on invalid input.
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 # Passes both tests.
11189 rm -f conftest.err conftest.$ac_ext
11192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11193 rm -f conftest.err conftest.$ac_ext
11194 if $ac_preproc_ok; then
11197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11198 See \`config.log' for more details." >&5
11199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11200 See \`config.log' for more details." >&2;}
11201 { (exit 1); exit 1; }; }
11205 ac_cpp='$CXXCPP $CPPFLAGS'
11206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11212 for ac_header in cxxabi.h
11214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 ac_res=`eval echo '${'$as_ac_Header'}'`
11222 { echo "$as_me:$LINENO: result: $ac_res" >&5
11223 echo "${ECHO_T}$ac_res" >&6; }
11225 # Is the header compilable?
11226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 $ac_includes_default
11235 #include <$ac_header>
11237 rm -f conftest.$ac_objext
11238 if { (ac_try="$ac_compile"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_compile") 2>conftest.er1
11246 grep -v '^ *+' conftest.er1 >conftest.err
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11252 { (case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_try") 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; } &&
11261 { ac_try='test -s conftest.$ac_objext'
11262 { (case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_try") 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_header_compiler=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_header_compiler=no
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11281 echo "${ECHO_T}$ac_header_compiler" >&6; }
11283 # Is the header present?
11284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11286 cat >conftest.$ac_ext <<_ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11292 #include <$ac_header>
11294 if { (ac_try="$ac_cpp conftest.$ac_ext"
11295 case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11302 grep -v '^ *+' conftest.er1 >conftest.err
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } >/dev/null; then
11307 if test -s conftest.err; then
11308 ac_cpp_err=$ac_cxx_preproc_warn_flag
11309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11316 if test -z "$ac_cpp_err"; then
11317 ac_header_preproc=yes
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11322 ac_header_preproc=no
11325 rm -f conftest.err conftest.$ac_ext
11326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11327 echo "${ECHO_T}$ac_header_preproc" >&6; }
11329 # So? What about this header?
11330 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11336 ac_header_preproc=yes
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11352 ## ------------------------------------ ##
11353 ## Report this to http://llvm.org/bugs/ ##
11354 ## ------------------------------------ ##
11356 ) | sed "s/^/$as_me: WARNING: /" >&2
11359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 eval "$as_ac_Header=\$ac_header_preproc"
11366 ac_res=`eval echo '${'$as_ac_Header'}'`
11367 { echo "$as_me:$LINENO: result: $ac_res" >&5
11368 echo "${ECHO_T}$ac_res" >&6; }
11371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11372 cat >>confdefs.h <<_ACEOF
11373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11381 ac_cpp='$CPP $CPPFLAGS'
11382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11391 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 ac_res=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11404 # Is the header compilable?
11405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11407 cat >conftest.$ac_ext <<_ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11413 $ac_includes_default
11414 #include <$ac_header>
11416 rm -f conftest.$ac_objext
11417 if { (ac_try="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11431 { (case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_try") 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest.$ac_objext'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_header_compiler=yes
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_header_compiler=no
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11460 echo "${ECHO_T}$ac_header_compiler" >&6; }
11462 # Is the header present?
11463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 #include <$ac_header>
11473 if { (ac_try="$ac_cpp conftest.$ac_ext"
11474 case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } >/dev/null; then
11486 if test -s conftest.err; then
11487 ac_cpp_err=$ac_c_preproc_warn_flag
11488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11495 if test -z "$ac_cpp_err"; then
11496 ac_header_preproc=yes
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ac_header_preproc=no
11504 rm -f conftest.err conftest.$ac_ext
11505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11506 echo "${ECHO_T}$ac_header_preproc" >&6; }
11508 # So? What about this header?
11509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11515 ac_header_preproc=yes
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11531 ## ------------------------------------ ##
11532 ## Report this to http://llvm.org/bugs/ ##
11533 ## ------------------------------------ ##
11535 ) | sed "s/^/$as_me: WARNING: /" >&2
11538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 eval "$as_ac_Header=\$ac_header_preproc"
11545 ac_res=`eval echo '${'$as_ac_Header'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11551 cat >>confdefs.h <<_ACEOF
11552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 ac_res=`eval echo '${'$as_ac_Header'}'`
11575 { echo "$as_me:$LINENO: result: $ac_res" >&5
11576 echo "${ECHO_T}$ac_res" >&6; }
11578 # Is the header compilable?
11579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11581 cat >conftest.$ac_ext <<_ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11587 $ac_includes_default
11588 #include <$ac_header>
11590 rm -f conftest.$ac_objext
11591 if { (ac_try="$ac_compile"
11592 case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_compile") 2>conftest.er1
11599 grep -v '^ *+' conftest.er1 >conftest.err
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11605 { (case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_try") 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
11615 { (case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_try") 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_header_compiler=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_header_compiler=no
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634 echo "${ECHO_T}$ac_header_compiler" >&6; }
11636 # Is the header present?
11637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <$ac_header>
11647 if { (ac_try="$ac_cpp conftest.$ac_ext"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11655 grep -v '^ *+' conftest.er1 >conftest.err
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } >/dev/null; then
11660 if test -s conftest.err; then
11661 ac_cpp_err=$ac_c_preproc_warn_flag
11662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11669 if test -z "$ac_cpp_err"; then
11670 ac_header_preproc=yes
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ac_header_preproc=no
11678 rm -f conftest.err conftest.$ac_ext
11679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11680 echo "${ECHO_T}$ac_header_preproc" >&6; }
11682 # So? What about this header?
11683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11689 ac_header_preproc=yes
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11705 ## ------------------------------------ ##
11706 ## Report this to http://llvm.org/bugs/ ##
11707 ## ------------------------------------ ##
11709 ) | sed "s/^/$as_me: WARNING: /" >&2
11712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 eval "$as_ac_Header=\$ac_header_preproc"
11719 ac_res=`eval echo '${'$as_ac_Header'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11734 for ac_header in utime.h
11736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 ac_res=`eval echo '${'$as_ac_Header'}'`
11744 { echo "$as_me:$LINENO: result: $ac_res" >&5
11745 echo "${ECHO_T}$ac_res" >&6; }
11747 # Is the header compilable?
11748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11750 cat >conftest.$ac_ext <<_ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 $ac_includes_default
11757 #include <$ac_header>
11759 rm -f conftest.$ac_objext
11760 if { (ac_try="$ac_compile"
11761 case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_compile") 2>conftest.er1
11768 grep -v '^ *+' conftest.er1 >conftest.err
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11774 { (case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_try") 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; } &&
11783 { ac_try='test -s conftest.$ac_objext'
11784 { (case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_try") 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 ac_header_compiler=yes
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 ac_header_compiler=no
11801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11803 echo "${ECHO_T}$ac_header_compiler" >&6; }
11805 # Is the header present?
11806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11808 cat >conftest.$ac_ext <<_ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <$ac_header>
11816 if { (ac_try="$ac_cpp conftest.$ac_ext"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11824 grep -v '^ *+' conftest.er1 >conftest.err
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } >/dev/null; then
11829 if test -s conftest.err; then
11830 ac_cpp_err=$ac_c_preproc_warn_flag
11831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11838 if test -z "$ac_cpp_err"; then
11839 ac_header_preproc=yes
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 ac_header_preproc=no
11847 rm -f conftest.err conftest.$ac_ext
11848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11849 echo "${ECHO_T}$ac_header_preproc" >&6; }
11851 # So? What about this header?
11852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11858 ac_header_preproc=yes
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11874 ## ------------------------------------ ##
11875 ## Report this to http://llvm.org/bugs/ ##
11876 ## ------------------------------------ ##
11878 ) | sed "s/^/$as_me: WARNING: /" >&2
11881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 eval "$as_ac_Header=\$ac_header_preproc"
11888 ac_res=`eval echo '${'$as_ac_Header'}'`
11889 { echo "$as_me:$LINENO: result: $ac_res" >&5
11890 echo "${ECHO_T}$ac_res" >&6; }
11893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11907 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 ac_res=`eval echo '${'$as_ac_Header'}'`
11917 { echo "$as_me:$LINENO: result: $ac_res" >&5
11918 echo "${ECHO_T}$ac_res" >&6; }
11920 # Is the header compilable?
11921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11923 cat >conftest.$ac_ext <<_ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 $ac_includes_default
11930 #include <$ac_header>
11932 rm -f conftest.$ac_objext
11933 if { (ac_try="$ac_compile"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_compile") 2>conftest.er1
11941 grep -v '^ *+' conftest.er1 >conftest.err
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest.$ac_objext'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 ac_header_compiler=yes
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 ac_header_compiler=no
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11976 echo "${ECHO_T}$ac_header_compiler" >&6; }
11978 # Is the header present?
11979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11981 cat >conftest.$ac_ext <<_ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11987 #include <$ac_header>
11989 if { (ac_try="$ac_cpp conftest.$ac_ext"
11990 case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11997 grep -v '^ *+' conftest.er1 >conftest.err
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } >/dev/null; then
12002 if test -s conftest.err; then
12003 ac_cpp_err=$ac_c_preproc_warn_flag
12004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12011 if test -z "$ac_cpp_err"; then
12012 ac_header_preproc=yes
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ac_header_preproc=no
12020 rm -f conftest.err conftest.$ac_ext
12021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12022 echo "${ECHO_T}$ac_header_preproc" >&6; }
12024 # So? What about this header?
12025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12031 ac_header_preproc=yes
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12047 ## ------------------------------------ ##
12048 ## Report this to http://llvm.org/bugs/ ##
12049 ## ------------------------------------ ##
12051 ) | sed "s/^/$as_me: WARNING: /" >&2
12054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 eval "$as_ac_Header=\$ac_header_preproc"
12061 ac_res=`eval echo '${'$as_ac_Header'}'`
12062 { echo "$as_me:$LINENO: result: $ac_res" >&5
12063 echo "${ECHO_T}$ac_res" >&6; }
12066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12067 cat >>confdefs.h <<_ACEOF
12068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12078 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 ac_res=`eval echo '${'$as_ac_Header'}'`
12088 { echo "$as_me:$LINENO: result: $ac_res" >&5
12089 echo "${ECHO_T}$ac_res" >&6; }
12091 # Is the header compilable?
12092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12094 cat >conftest.$ac_ext <<_ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 $ac_includes_default
12101 #include <$ac_header>
12103 rm -f conftest.$ac_objext
12104 if { (ac_try="$ac_compile"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_compile") 2>conftest.er1
12112 grep -v '^ *+' conftest.er1 >conftest.err
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12118 { (case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_try") 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest.$ac_objext'
12128 { (case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_try") 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_header_compiler=yes
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_header_compiler=no
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12147 echo "${ECHO_T}$ac_header_compiler" >&6; }
12149 # Is the header present?
12150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12152 cat >conftest.$ac_ext <<_ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12158 #include <$ac_header>
12160 if { (ac_try="$ac_cpp conftest.$ac_ext"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12168 grep -v '^ *+' conftest.er1 >conftest.err
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } >/dev/null; then
12173 if test -s conftest.err; then
12174 ac_cpp_err=$ac_c_preproc_warn_flag
12175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12182 if test -z "$ac_cpp_err"; then
12183 ac_header_preproc=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_header_preproc=no
12191 rm -f conftest.err conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12193 echo "${ECHO_T}$ac_header_preproc" >&6; }
12195 # So? What about this header?
12196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12202 ac_header_preproc=yes
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12218 ## ------------------------------------ ##
12219 ## Report this to http://llvm.org/bugs/ ##
12220 ## ------------------------------------ ##
12222 ) | sed "s/^/$as_me: WARNING: /" >&2
12225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 eval "$as_ac_Header=\$ac_header_preproc"
12232 ac_res=`eval echo '${'$as_ac_Header'}'`
12233 { echo "$as_me:$LINENO: result: $ac_res" >&5
12234 echo "${ECHO_T}$ac_res" >&6; }
12237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12247 for ac_header in valgrind/valgrind.h
12249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 ac_res=`eval echo '${'$as_ac_Header'}'`
12257 { echo "$as_me:$LINENO: result: $ac_res" >&5
12258 echo "${ECHO_T}$ac_res" >&6; }
12260 # Is the header compilable?
12261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12269 $ac_includes_default
12270 #include <$ac_header>
12272 rm -f conftest.$ac_objext
12273 if { (ac_try="$ac_compile"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_compile") 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287 { (case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_try") 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest.$ac_objext'
12297 { (case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_try") 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 ac_header_compiler=yes
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 ac_header_compiler=no
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12316 echo "${ECHO_T}$ac_header_compiler" >&6; }
12318 # Is the header present?
12319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12321 cat >conftest.$ac_ext <<_ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 #include <$ac_header>
12329 if { (ac_try="$ac_cpp conftest.$ac_ext"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12337 grep -v '^ *+' conftest.er1 >conftest.err
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } >/dev/null; then
12342 if test -s conftest.err; then
12343 ac_cpp_err=$ac_c_preproc_warn_flag
12344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12351 if test -z "$ac_cpp_err"; then
12352 ac_header_preproc=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_header_preproc=no
12360 rm -f conftest.err conftest.$ac_ext
12361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12362 echo "${ECHO_T}$ac_header_preproc" >&6; }
12364 # So? What about this header?
12365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12371 ac_header_preproc=yes
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12387 ## ------------------------------------ ##
12388 ## Report this to http://llvm.org/bugs/ ##
12389 ## ------------------------------------ ##
12391 ) | sed "s/^/$as_me: WARNING: /" >&2
12394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 eval "$as_ac_Header=\$ac_header_preproc"
12401 ac_res=`eval echo '${'$as_ac_Header'}'`
12402 { echo "$as_me:$LINENO: result: $ac_res" >&5
12403 echo "${ECHO_T}$ac_res" >&6; }
12406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12407 cat >>confdefs.h <<_ACEOF
12408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12416 for ac_header in fenv.h
12418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 ac_res=`eval echo '${'$as_ac_Header'}'`
12426 { echo "$as_me:$LINENO: result: $ac_res" >&5
12427 echo "${ECHO_T}$ac_res" >&6; }
12429 # Is the header compilable?
12430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12432 cat >conftest.$ac_ext <<_ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12438 $ac_includes_default
12439 #include <$ac_header>
12441 rm -f conftest.$ac_objext
12442 if { (ac_try="$ac_compile"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_compile") 2>conftest.er1
12450 grep -v '^ *+' conftest.er1 >conftest.err
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456 { (case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_try") 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest.$ac_objext'
12466 { (case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_try") 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_header_compiler=yes
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ac_header_compiler=no
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12485 echo "${ECHO_T}$ac_header_compiler" >&6; }
12487 # Is the header present?
12488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 #include <$ac_header>
12498 if { (ac_try="$ac_cpp conftest.$ac_ext"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } >/dev/null; then
12511 if test -s conftest.err; then
12512 ac_cpp_err=$ac_c_preproc_warn_flag
12513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12520 if test -z "$ac_cpp_err"; then
12521 ac_header_preproc=yes
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_header_preproc=no
12529 rm -f conftest.err conftest.$ac_ext
12530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12531 echo "${ECHO_T}$ac_header_preproc" >&6; }
12533 # So? What about this header?
12534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12540 ac_header_preproc=yes
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12556 ## ------------------------------------ ##
12557 ## Report this to http://llvm.org/bugs/ ##
12558 ## ------------------------------------ ##
12560 ) | sed "s/^/$as_me: WARNING: /" >&2
12563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 eval "$as_ac_Header=\$ac_header_preproc"
12570 ac_res=`eval echo '${'$as_ac_Header'}'`
12571 { echo "$as_me:$LINENO: result: $ac_res" >&5
12572 echo "${ECHO_T}$ac_res" >&6; }
12575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12576 cat >>confdefs.h <<_ACEOF
12577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12584 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12585 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12586 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12600 #ifndef FE_ALL_EXCEPT
12601 char *p = (char *) FE_ALL_EXCEPT;
12609 rm -f conftest.$ac_objext
12610 if { (ac_try="$ac_compile"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_compile") 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12624 { (case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_try") 2>&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; } &&
12633 { ac_try='test -s conftest.$ac_objext'
12634 { (case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_try") 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_cv_have_decl_FE_ALL_EXCEPT=no
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12654 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12655 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12657 cat >>confdefs.h <<_ACEOF
12658 #define HAVE_DECL_FE_ALL_EXCEPT 1
12663 cat >>confdefs.h <<_ACEOF
12664 #define HAVE_DECL_FE_ALL_EXCEPT 0
12669 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12670 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12671 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 cat >conftest.$ac_ext <<_ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12686 char *p = (char *) FE_INEXACT;
12694 rm -f conftest.$ac_objext
12695 if { (ac_try="$ac_compile"
12696 case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_compile") 2>conftest.er1
12703 grep -v '^ *+' conftest.er1 >conftest.err
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12709 { (case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_try") 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } &&
12718 { ac_try='test -s conftest.$ac_objext'
12719 { (case "(($ac_try" in
12720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721 *) ac_try_echo=$ac_try;;
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_try") 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 ac_cv_have_decl_FE_INEXACT=yes
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ac_cv_have_decl_FE_INEXACT=no
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12739 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12740 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12742 cat >>confdefs.h <<_ACEOF
12743 #define HAVE_DECL_FE_INEXACT 1
12748 cat >>confdefs.h <<_ACEOF
12749 #define HAVE_DECL_FE_INEXACT 0
12756 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12758 for ac_header in pthread.h
12760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 ac_res=`eval echo '${'$as_ac_Header'}'`
12768 { echo "$as_me:$LINENO: result: $ac_res" >&5
12769 echo "${ECHO_T}$ac_res" >&6; }
12771 # Is the header compilable?
12772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12774 cat >conftest.$ac_ext <<_ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12780 $ac_includes_default
12781 #include <$ac_header>
12783 rm -f conftest.$ac_objext
12784 if { (ac_try="$ac_compile"
12785 case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_compile") 2>conftest.er1
12792 grep -v '^ *+' conftest.er1 >conftest.err
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12798 { (case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_try") 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; } &&
12807 { ac_try='test -s conftest.$ac_objext'
12808 { (case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_try") 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_header_compiler=yes
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 ac_header_compiler=no
12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12827 echo "${ECHO_T}$ac_header_compiler" >&6; }
12829 # Is the header present?
12830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12832 cat >conftest.$ac_ext <<_ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 #include <$ac_header>
12840 if { (ac_try="$ac_cpp conftest.$ac_ext"
12841 case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12848 grep -v '^ *+' conftest.er1 >conftest.err
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } >/dev/null; then
12853 if test -s conftest.err; then
12854 ac_cpp_err=$ac_c_preproc_warn_flag
12855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12862 if test -z "$ac_cpp_err"; then
12863 ac_header_preproc=yes
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ac_header_preproc=no
12871 rm -f conftest.err conftest.$ac_ext
12872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12873 echo "${ECHO_T}$ac_header_preproc" >&6; }
12875 # So? What about this header?
12876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12882 ac_header_preproc=yes
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12898 ## ------------------------------------ ##
12899 ## Report this to http://llvm.org/bugs/ ##
12900 ## ------------------------------------ ##
12902 ) | sed "s/^/$as_me: WARNING: /" >&2
12905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12910 eval "$as_ac_Header=\$ac_header_preproc"
12912 ac_res=`eval echo '${'$as_ac_Header'}'`
12913 { echo "$as_me:$LINENO: result: $ac_res" >&5
12914 echo "${ECHO_T}$ac_res" >&6; }
12917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12918 cat >>confdefs.h <<_ACEOF
12919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12934 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12936 for ac_header in zlib.h
12938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 ac_res=`eval echo '${'$as_ac_Header'}'`
12946 { echo "$as_me:$LINENO: result: $ac_res" >&5
12947 echo "${ECHO_T}$ac_res" >&6; }
12949 # Is the header compilable?
12950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12952 cat >conftest.$ac_ext <<_ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 $ac_includes_default
12959 #include <$ac_header>
12961 rm -f conftest.$ac_objext
12962 if { (ac_try="$ac_compile"
12963 case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_compile") 2>conftest.er1
12970 grep -v '^ *+' conftest.er1 >conftest.err
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12976 { (case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_try") 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_try") 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_header_compiler=yes
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13000 ac_header_compiler=no
13003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13005 echo "${ECHO_T}$ac_header_compiler" >&6; }
13007 # Is the header present?
13008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13010 cat >conftest.$ac_ext <<_ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 #include <$ac_header>
13018 if { (ac_try="$ac_cpp conftest.$ac_ext"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13026 grep -v '^ *+' conftest.er1 >conftest.err
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } >/dev/null; then
13031 if test -s conftest.err; then
13032 ac_cpp_err=$ac_c_preproc_warn_flag
13033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13040 if test -z "$ac_cpp_err"; then
13041 ac_header_preproc=yes
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13046 ac_header_preproc=no
13049 rm -f conftest.err conftest.$ac_ext
13050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13051 echo "${ECHO_T}$ac_header_preproc" >&6; }
13053 # So? What about this header?
13054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13060 ac_header_preproc=yes
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13076 ## ------------------------------------ ##
13077 ## Report this to http://llvm.org/bugs/ ##
13078 ## ------------------------------------ ##
13080 ) | sed "s/^/$as_me: WARNING: /" >&2
13083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 eval "$as_ac_Header=\$ac_header_preproc"
13090 ac_res=`eval echo '${'$as_ac_Header'}'`
13091 { echo "$as_me:$LINENO: result: $ac_res" >&5
13092 echo "${ECHO_T}$ac_res" >&6; }
13095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13096 cat >>confdefs.h <<_ACEOF
13097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13113 if test "$llvm_cv_enable_libffi" = "yes" ; then
13116 for ac_header in ffi.h ffi/ffi.h
13118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 ac_res=`eval echo '${'$as_ac_Header'}'`
13126 { echo "$as_me:$LINENO: result: $ac_res" >&5
13127 echo "${ECHO_T}$ac_res" >&6; }
13129 # Is the header compilable?
13130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 $ac_includes_default
13139 #include <$ac_header>
13141 rm -f conftest.$ac_objext
13142 if { (ac_try="$ac_compile"
13143 case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_compile") 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest.$ac_objext'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_header_compiler=yes
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ac_header_compiler=no
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13185 echo "${ECHO_T}$ac_header_compiler" >&6; }
13187 # Is the header present?
13188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 #include <$ac_header>
13198 if { (ac_try="$ac_cpp conftest.$ac_ext"
13199 case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13206 grep -v '^ *+' conftest.er1 >conftest.err
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } >/dev/null; then
13211 if test -s conftest.err; then
13212 ac_cpp_err=$ac_c_preproc_warn_flag
13213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13220 if test -z "$ac_cpp_err"; then
13221 ac_header_preproc=yes
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_header_preproc=no
13229 rm -f conftest.err conftest.$ac_ext
13230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13231 echo "${ECHO_T}$ac_header_preproc" >&6; }
13233 # So? What about this header?
13234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13240 ac_header_preproc=yes
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13256 ## ------------------------------------ ##
13257 ## Report this to http://llvm.org/bugs/ ##
13258 ## ------------------------------------ ##
13260 ) | sed "s/^/$as_me: WARNING: /" >&2
13263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 eval "$as_ac_Header=\$ac_header_preproc"
13270 ac_res=`eval echo '${'$as_ac_Header'}'`
13271 { echo "$as_me:$LINENO: result: $ac_res" >&5
13272 echo "${ECHO_T}$ac_res" >&6; }
13275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13276 cat >>confdefs.h <<_ACEOF
13277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13287 for ac_header in CrashReporterClient.h
13289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 ac_res=`eval echo '${'$as_ac_Header'}'`
13297 { echo "$as_me:$LINENO: result: $ac_res" >&5
13298 echo "${ECHO_T}$ac_res" >&6; }
13300 # Is the header compilable?
13301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13303 cat >conftest.$ac_ext <<_ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13309 $ac_includes_default
13310 #include <$ac_header>
13312 rm -f conftest.$ac_objext
13313 if { (ac_try="$ac_compile"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_compile") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest.$ac_objext'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 ac_header_compiler=yes
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 ac_header_compiler=no
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13356 echo "${ECHO_T}$ac_header_compiler" >&6; }
13358 # Is the header present?
13359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13361 cat >conftest.$ac_ext <<_ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13367 #include <$ac_header>
13369 if { (ac_try="$ac_cpp conftest.$ac_ext"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13377 grep -v '^ *+' conftest.er1 >conftest.err
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } >/dev/null; then
13382 if test -s conftest.err; then
13383 ac_cpp_err=$ac_c_preproc_warn_flag
13384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13391 if test -z "$ac_cpp_err"; then
13392 ac_header_preproc=yes
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13397 ac_header_preproc=no
13400 rm -f conftest.err conftest.$ac_ext
13401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13402 echo "${ECHO_T}$ac_header_preproc" >&6; }
13404 # So? What about this header?
13405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13411 ac_header_preproc=yes
13414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13427 ## ------------------------------------ ##
13428 ## Report this to http://llvm.org/bugs/ ##
13429 ## ------------------------------------ ##
13431 ) | sed "s/^/$as_me: WARNING: /" >&2
13434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 eval "$as_ac_Header=\$ac_header_preproc"
13441 ac_res=`eval echo '${'$as_ac_Header'}'`
13442 { echo "$as_me:$LINENO: result: $ac_res" >&5
13443 echo "${ECHO_T}$ac_res" >&6; }
13446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13447 cat >>confdefs.h <<_ACEOF
13448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13456 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13457 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13466 extern const char *__crashreporter_info__;
13468 __crashreporter_info__ = "test";
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (ac_try="$ac_link"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>conftest.er1
13483 grep -v '^ *+' conftest.er1 >conftest.err
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest$ac_exeext'
13499 { (case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13509 { echo "$as_me:$LINENO: result: yes" >&5
13510 echo "${ECHO_T}yes" >&6; }
13512 cat >>confdefs.h <<\_ACEOF
13513 #define HAVE_CRASHREPORTER_INFO 1
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13522 { echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6; }
13525 cat >>confdefs.h <<\_ACEOF
13526 #define HAVE_CRASHREPORTER_INFO 0
13532 rm -f core conftest.err conftest.$ac_objext \
13533 conftest$ac_exeext conftest.$ac_ext
13537 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13538 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13539 if test "${ac_cv_huge_val_sanity+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 ac_cpp='$CXXCPP $CPPFLAGS'
13545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13549 ac_save_CXXFLAGS=$CXXFLAGS
13550 CXXFLAGS="$CXXFLAGS -pedantic"
13551 if test "$cross_compiling" = yes; then
13552 ac_cv_huge_val_sanity=yes
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13564 double x = HUGE_VAL; return x != x;
13569 rm -f conftest$ac_exeext
13570 if { (ac_try="$ac_link"
13571 case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_link") 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13580 { (case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_try") 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_huge_val_sanity=yes
13591 echo "$as_me: program exited with status $ac_status" >&5
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13595 ( exit $ac_status )
13596 ac_cv_huge_val_sanity=no
13598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13602 CXXFLAGS=$ac_save_CXXFLAGS
13604 ac_cpp='$CPP $CPPFLAGS'
13605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13611 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13612 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13613 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13616 { echo "$as_me:$LINENO: checking for pid_t" >&5
13617 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13618 if test "${ac_cv_type_pid_t+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 cat >conftest.$ac_ext <<_ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 $ac_includes_default
13628 typedef pid_t ac__type_new_;
13632 if ((ac__type_new_ *) 0)
13634 if (sizeof (ac__type_new_))
13640 rm -f conftest.$ac_objext
13641 if { (ac_try="$ac_compile"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_compile") 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_try") 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_cv_type_pid_t=yes
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_cv_type_pid_t=no
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13685 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13686 if test $ac_cv_type_pid_t = yes; then
13690 cat >>confdefs.h <<_ACEOF
13696 { echo "$as_me:$LINENO: checking for size_t" >&5
13697 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13698 if test "${ac_cv_type_size_t+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 $ac_includes_default
13708 typedef size_t ac__type_new_;
13712 if ((ac__type_new_ *) 0)
13714 if (sizeof (ac__type_new_))
13720 rm -f conftest.$ac_objext
13721 if { (ac_try="$ac_compile"
13722 case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_compile") 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest.$ac_objext'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_cv_type_size_t=yes
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13759 ac_cv_type_size_t=no
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13765 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13766 if test $ac_cv_type_size_t = yes; then
13770 cat >>confdefs.h <<_ACEOF
13771 #define size_t unsigned int
13777 cat >>confdefs.h <<_ACEOF
13778 #define RETSIGTYPE void
13781 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13782 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13783 if test "${ac_cv_struct_tm+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <sys/types.h>
13798 struct tm *tp; tp->tm_sec;
13803 rm -f conftest.$ac_objext
13804 if { (ac_try="$ac_compile"
13805 case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_compile") 2>conftest.er1
13812 grep -v '^ *+' conftest.er1 >conftest.err
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
13817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13818 { (case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_try") 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest.$ac_objext'
13828 { (case "(($ac_try" in
13829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830 *) ac_try_echo=$ac_try;;
13832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833 (eval "$ac_try") 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_struct_tm=time.h
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13842 ac_cv_struct_tm=sys/time.h
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13848 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13849 if test $ac_cv_struct_tm = sys/time.h; then
13851 cat >>confdefs.h <<\_ACEOF
13852 #define TM_IN_SYS_TIME 1
13857 { echo "$as_me:$LINENO: checking for int64_t" >&5
13858 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13859 if test "${ac_cv_type_int64_t+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 $ac_includes_default
13869 typedef int64_t ac__type_new_;
13873 if ((ac__type_new_ *) 0)
13875 if (sizeof (ac__type_new_))
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_compile") 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13896 { (case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_try") 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest.$ac_objext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_type_int64_t=yes
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_type_int64_t=no
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13926 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13927 if test $ac_cv_type_int64_t = yes; then
13929 cat >>confdefs.h <<_ACEOF
13930 #define HAVE_INT64_T 1
13935 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13936 echo "$as_me: error: Type int64_t required but not found" >&2;}
13937 { (exit 1); exit 1; }; }
13940 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13941 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13942 if test "${ac_cv_type_uint64_t+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 cat >conftest.$ac_ext <<_ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 $ac_includes_default
13952 typedef uint64_t ac__type_new_;
13956 if ((ac__type_new_ *) 0)
13958 if (sizeof (ac__type_new_))
13964 rm -f conftest.$ac_objext
13965 if { (ac_try="$ac_compile"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_compile") 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest.$ac_objext'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_type_uint64_t=yes
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_cv_type_uint64_t=no
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14009 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14010 if test $ac_cv_type_uint64_t = yes; then
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_UINT64_T 1
14018 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14019 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14020 if test "${ac_cv_type_u_int64_t+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 $ac_includes_default
14030 typedef u_int64_t ac__type_new_;
14034 if ((ac__type_new_ *) 0)
14036 if (sizeof (ac__type_new_))
14042 rm -f conftest.$ac_objext
14043 if { (ac_try="$ac_compile"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_compile") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest.$ac_objext'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 ac_cv_type_u_int64_t=yes
14078 echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14081 ac_cv_type_u_int64_t=no
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14086 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14087 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14088 if test $ac_cv_type_u_int64_t = yes; then
14090 cat >>confdefs.h <<_ACEOF
14091 #define HAVE_U_INT64_T 1
14096 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14097 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14098 { (exit 1); exit 1; }; }
14112 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 cat >conftest.$ac_ext <<_ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14136 # include <limits.h>
14138 # include <assert.h>
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14150 /* The GNU C library defines this for functions which it implements
14151 to always fail with ENOSYS. Some functions are actually named
14152 something starting with __ and the normal name is an alias. */
14153 #if defined __stub_$ac_func || defined __stub___$ac_func
14160 return $ac_func ();
14165 rm -f conftest.$ac_objext conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>conftest.er1
14174 grep -v '^ *+' conftest.er1 >conftest.err
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14180 { (case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_try") 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest$ac_exeext'
14190 { (case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_try") 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14199 eval "$as_ac_var=yes"
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 eval "$as_ac_var=no"
14207 rm -f core conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14210 ac_res=`eval echo '${'$as_ac_var'}'`
14211 { echo "$as_me:$LINENO: result: $ac_res" >&5
14212 echo "${ECHO_T}$ac_res" >&6; }
14213 if test `eval echo '${'$as_ac_var'}'` = yes; then
14214 cat >>confdefs.h <<_ACEOF
14215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14225 for ac_func in powf fmodf strtof round
14227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14241 #define $ac_func innocuous_$ac_func
14243 /* System header to define __stub macros and hopefully few prototypes,
14244 which can conflict with char $ac_func (); below.
14245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14246 <limits.h> exists even on freestanding compilers. */
14249 # include <limits.h>
14251 # include <assert.h>
14256 /* Override any GCC internal prototype to avoid an error.
14257 Use char because int might match the return type of a GCC
14258 builtin and then its argument prototype would still apply. */
14263 /* The GNU C library defines this for functions which it implements
14264 to always fail with ENOSYS. Some functions are actually named
14265 something starting with __ and the normal name is an alias. */
14266 #if defined __stub_$ac_func || defined __stub___$ac_func
14273 return $ac_func ();
14278 rm -f conftest.$ac_objext conftest$ac_exeext
14279 if { (ac_try="$ac_link"
14280 case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_link") 2>conftest.er1
14287 grep -v '^ *+' conftest.er1 >conftest.err
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14293 { (case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_try") 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; } &&
14302 { ac_try='test -s conftest$ac_exeext'
14303 { (case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_try") 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 eval "$as_ac_var=yes"
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 eval "$as_ac_var=no"
14320 rm -f core conftest.err conftest.$ac_objext \
14321 conftest$ac_exeext conftest.$ac_ext
14323 ac_res=`eval echo '${'$as_ac_var'}'`
14324 { echo "$as_me:$LINENO: result: $ac_res" >&5
14325 echo "${ECHO_T}$ac_res" >&6; }
14326 if test `eval echo '${'$as_ac_var'}'` = yes; then
14327 cat >>confdefs.h <<_ACEOF
14328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14339 for ac_func in log log2 log10 exp exp2
14341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14355 #define $ac_func innocuous_$ac_func
14357 /* System header to define __stub macros and hopefully few prototypes,
14358 which can conflict with char $ac_func (); below.
14359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14360 <limits.h> exists even on freestanding compilers. */
14363 # include <limits.h>
14365 # include <assert.h>
14370 /* Override any GCC internal prototype to avoid an error.
14371 Use char because int might match the return type of a GCC
14372 builtin and then its argument prototype would still apply. */
14377 /* The GNU C library defines this for functions which it implements
14378 to always fail with ENOSYS. Some functions are actually named
14379 something starting with __ and the normal name is an alias. */
14380 #if defined __stub_$ac_func || defined __stub___$ac_func
14387 return $ac_func ();
14392 rm -f conftest.$ac_objext conftest$ac_exeext
14393 if { (ac_try="$ac_link"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_link") 2>conftest.er1
14401 grep -v '^ *+' conftest.er1 >conftest.err
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } &&
14406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14407 { (case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_try") 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest$ac_exeext'
14417 { (case "(($ac_try" in
14418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419 *) ac_try_echo=$ac_try;;
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422 (eval "$ac_try") 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 eval "$as_ac_var=yes"
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 eval "$as_ac_var=no"
14434 rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14437 ac_res=`eval echo '${'$as_ac_var'}'`
14438 { echo "$as_me:$LINENO: result: $ac_res" >&5
14439 echo "${ECHO_T}$ac_res" >&6; }
14440 if test `eval echo '${'$as_ac_var'}'` = yes; then
14441 cat >>confdefs.h <<_ACEOF
14442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14453 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 cat >conftest.$ac_ext <<_ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14469 #define $ac_func innocuous_$ac_func
14471 /* System header to define __stub macros and hopefully few prototypes,
14472 which can conflict with char $ac_func (); below.
14473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14474 <limits.h> exists even on freestanding compilers. */
14477 # include <limits.h>
14479 # include <assert.h>
14484 /* Override any GCC internal prototype to avoid an error.
14485 Use char because int might match the return type of a GCC
14486 builtin and then its argument prototype would still apply. */
14491 /* The GNU C library defines this for functions which it implements
14492 to always fail with ENOSYS. Some functions are actually named
14493 something starting with __ and the normal name is an alias. */
14494 #if defined __stub_$ac_func || defined __stub___$ac_func
14501 return $ac_func ();
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (ac_try="$ac_link"
14508 case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_link") 2>conftest.er1
14515 grep -v '^ *+' conftest.er1 >conftest.err
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_try") 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest$ac_exeext'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 eval "$as_ac_var=yes"
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 eval "$as_ac_var=no"
14548 rm -f core conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14551 ac_res=`eval echo '${'$as_ac_var'}'`
14552 { echo "$as_me:$LINENO: result: $ac_res" >&5
14553 echo "${ECHO_T}$ac_res" >&6; }
14554 if test `eval echo '${'$as_ac_var'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14565 for ac_func in isatty mkdtemp mkstemp
14567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 cat >conftest.$ac_ext <<_ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14581 #define $ac_func innocuous_$ac_func
14583 /* System header to define __stub macros and hopefully few prototypes,
14584 which can conflict with char $ac_func (); below.
14585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14586 <limits.h> exists even on freestanding compilers. */
14589 # include <limits.h>
14591 # include <assert.h>
14596 /* Override any GCC internal prototype to avoid an error.
14597 Use char because int might match the return type of a GCC
14598 builtin and then its argument prototype would still apply. */
14603 /* The GNU C library defines this for functions which it implements
14604 to always fail with ENOSYS. Some functions are actually named
14605 something starting with __ and the normal name is an alias. */
14606 #if defined __stub_$ac_func || defined __stub___$ac_func
14613 return $ac_func ();
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (ac_try="$ac_link"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_link") 2>conftest.er1
14627 grep -v '^ *+' conftest.er1 >conftest.err
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_try") 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest$ac_exeext'
14643 { (case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_try") 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 eval "$as_ac_var=yes"
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 eval "$as_ac_var=no"
14660 rm -f core conftest.err conftest.$ac_objext \
14661 conftest$ac_exeext conftest.$ac_ext
14663 ac_res=`eval echo '${'$as_ac_var'}'`
14664 { echo "$as_me:$LINENO: result: $ac_res" >&5
14665 echo "${ECHO_T}$ac_res" >&6; }
14666 if test `eval echo '${'$as_ac_var'}'` = yes; then
14667 cat >>confdefs.h <<_ACEOF
14668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14680 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 cat >conftest.$ac_ext <<_ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14696 #define $ac_func innocuous_$ac_func
14698 /* System header to define __stub macros and hopefully few prototypes,
14699 which can conflict with char $ac_func (); below.
14700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14701 <limits.h> exists even on freestanding compilers. */
14704 # include <limits.h>
14706 # include <assert.h>
14711 /* Override any GCC internal prototype to avoid an error.
14712 Use char because int might match the return type of a GCC
14713 builtin and then its argument prototype would still apply. */
14718 /* The GNU C library defines this for functions which it implements
14719 to always fail with ENOSYS. Some functions are actually named
14720 something starting with __ and the normal name is an alias. */
14721 #if defined __stub_$ac_func || defined __stub___$ac_func
14728 return $ac_func ();
14733 rm -f conftest.$ac_objext conftest$ac_exeext
14734 if { (ac_try="$ac_link"
14735 case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_link") 2>conftest.er1
14742 grep -v '^ *+' conftest.er1 >conftest.err
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest$ac_exeext'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 eval "$as_ac_var=yes"
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 eval "$as_ac_var=no"
14775 rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14778 ac_res=`eval echo '${'$as_ac_var'}'`
14779 { echo "$as_me:$LINENO: result: $ac_res" >&5
14780 echo "${ECHO_T}$ac_res" >&6; }
14781 if test `eval echo '${'$as_ac_var'}'` = yes; then
14782 cat >>confdefs.h <<_ACEOF
14783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14792 for ac_func in strerror strerror_r setenv
14794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14808 #define $ac_func innocuous_$ac_func
14810 /* System header to define __stub macros and hopefully few prototypes,
14811 which can conflict with char $ac_func (); below.
14812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14813 <limits.h> exists even on freestanding compilers. */
14816 # include <limits.h>
14818 # include <assert.h>
14823 /* Override any GCC internal prototype to avoid an error.
14824 Use char because int might match the return type of a GCC
14825 builtin and then its argument prototype would still apply. */
14830 /* The GNU C library defines this for functions which it implements
14831 to always fail with ENOSYS. Some functions are actually named
14832 something starting with __ and the normal name is an alias. */
14833 #if defined __stub_$ac_func || defined __stub___$ac_func
14840 return $ac_func ();
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (ac_try="$ac_link"
14847 case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_link") 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860 { (case "(($ac_try" in
14861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_try") 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; } &&
14869 { ac_try='test -s conftest$ac_exeext'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 eval "$as_ac_var=yes"
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 eval "$as_ac_var=no"
14887 rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14890 ac_res=`eval echo '${'$as_ac_var'}'`
14891 { echo "$as_me:$LINENO: result: $ac_res" >&5
14892 echo "${ECHO_T}$ac_res" >&6; }
14893 if test `eval echo '${'$as_ac_var'}'` = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14905 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 cat >conftest.$ac_ext <<_ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14921 #define $ac_func innocuous_$ac_func
14923 /* System header to define __stub macros and hopefully few prototypes,
14924 which can conflict with char $ac_func (); below.
14925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14926 <limits.h> exists even on freestanding compilers. */
14929 # include <limits.h>
14931 # include <assert.h>
14936 /* Override any GCC internal prototype to avoid an error.
14937 Use char because int might match the return type of a GCC
14938 builtin and then its argument prototype would still apply. */
14943 /* The GNU C library defines this for functions which it implements
14944 to always fail with ENOSYS. Some functions are actually named
14945 something starting with __ and the normal name is an alias. */
14946 #if defined __stub_$ac_func || defined __stub___$ac_func
14953 return $ac_func ();
14958 rm -f conftest.$ac_objext conftest$ac_exeext
14959 if { (ac_try="$ac_link"
14960 case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_link") 2>conftest.er1
14967 grep -v '^ *+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14973 { (case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_try") 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest$ac_exeext'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 eval "$as_ac_var=yes"
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 eval "$as_ac_var=no"
15000 rm -f core conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15003 ac_res=`eval echo '${'$as_ac_var'}'`
15004 { echo "$as_me:$LINENO: result: $ac_res" >&5
15005 echo "${ECHO_T}$ac_res" >&6; }
15006 if test `eval echo '${'$as_ac_var'}'` = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15019 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 cat >conftest.$ac_ext <<_ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15035 #define $ac_func innocuous_$ac_func
15037 /* System header to define __stub macros and hopefully few prototypes,
15038 which can conflict with char $ac_func (); below.
15039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15040 <limits.h> exists even on freestanding compilers. */
15043 # include <limits.h>
15045 # include <assert.h>
15050 /* Override any GCC internal prototype to avoid an error.
15051 Use char because int might match the return type of a GCC
15052 builtin and then its argument prototype would still apply. */
15057 /* The GNU C library defines this for functions which it implements
15058 to always fail with ENOSYS. Some functions are actually named
15059 something starting with __ and the normal name is an alias. */
15060 #if defined __stub_$ac_func || defined __stub___$ac_func
15067 return $ac_func ();
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (ac_try="$ac_link"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_link") 2>conftest.er1
15081 grep -v '^ *+' conftest.er1 >conftest.err
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15087 { (case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_try") 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 eval "$as_ac_var=yes"
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 eval "$as_ac_var=no"
15114 rm -f core conftest.err conftest.$ac_objext \
15115 conftest$ac_exeext conftest.$ac_ext
15117 ac_res=`eval echo '${'$as_ac_var'}'`
15118 { echo "$as_me:$LINENO: result: $ac_res" >&5
15119 echo "${ECHO_T}$ac_res" >&6; }
15120 if test `eval echo '${'$as_ac_var'}'` = yes; then
15121 cat >>confdefs.h <<_ACEOF
15122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15130 for ac_func in futimes futimens
15132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 cat >conftest.$ac_ext <<_ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h. */
15144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15146 #define $ac_func innocuous_$ac_func
15148 /* System header to define __stub macros and hopefully few prototypes,
15149 which can conflict with char $ac_func (); below.
15150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15151 <limits.h> exists even on freestanding compilers. */
15154 # include <limits.h>
15156 # include <assert.h>
15161 /* Override any GCC internal prototype to avoid an error.
15162 Use char because int might match the return type of a GCC
15163 builtin and then its argument prototype would still apply. */
15168 /* The GNU C library defines this for functions which it implements
15169 to always fail with ENOSYS. Some functions are actually named
15170 something starting with __ and the normal name is an alias. */
15171 #if defined __stub_$ac_func || defined __stub___$ac_func
15178 return $ac_func ();
15183 rm -f conftest.$ac_objext conftest$ac_exeext
15184 if { (ac_try="$ac_link"
15185 case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_link") 2>conftest.er1
15192 grep -v '^ *+' conftest.er1 >conftest.err
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15198 { (case "(($ac_try" in
15199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15200 *) ac_try_echo=$ac_try;;
15202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15203 (eval "$ac_try") 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try='test -s conftest$ac_exeext'
15208 { (case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_try") 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217 eval "$as_ac_var=yes"
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 eval "$as_ac_var=no"
15225 rm -f core conftest.err conftest.$ac_objext \
15226 conftest$ac_exeext conftest.$ac_ext
15228 ac_res=`eval echo '${'$as_ac_var'}'`
15229 { echo "$as_me:$LINENO: result: $ac_res" >&5
15230 echo "${ECHO_T}$ac_res" >&6; }
15231 if test `eval echo '${'$as_ac_var'}'` = yes; then
15232 cat >>confdefs.h <<_ACEOF
15233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15239 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15240 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15241 if test "${llvm_cv_c_printf_a+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 ac_cpp='$CPP $CPPFLAGS'
15246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15250 if test "$cross_compiling" = yes; then
15251 llvmac_cv_c_printf_a=no
15253 cat >conftest.$ac_ext <<_ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15262 #include <stdlib.h>
15268 volatile double A, B;
15272 sprintf(Buffer, "%a", A);
15276 if (A != 0x1.999999999999ap-4)
15283 rm -f conftest$ac_exeext
15284 if { (ac_try="$ac_link"
15285 case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_link") 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 llvm_cv_c_printf_a=yes
15305 echo "$as_me: program exited with status $ac_status" >&5
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15309 ( exit $ac_status )
15310 llvmac_cv_c_printf_a=no
15312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15317 ac_cpp='$CPP $CPPFLAGS'
15318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15323 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15324 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15325 if test "$llvm_cv_c_printf_a" = "yes"; then
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_PRINTF_A 1
15335 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15336 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15337 if test "${ac_cv_func_rand48+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 ac_cpp='$CXXCPP $CPPFLAGS'
15343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15347 cat >conftest.$ac_ext <<_ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 #include <stdlib.h>
15357 srand48(0);lrand48();drand48();
15362 rm -f conftest.$ac_objext
15363 if { (ac_try="$ac_compile"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_compile") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15377 { (case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_try") 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest.$ac_objext'
15387 { (case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_try") 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_cv_func_rand48=yes
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15401 ac_cv_func_rand48=no
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 ac_cpp='$CPP $CPPFLAGS'
15407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15413 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15414 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15416 if test "$ac_cv_func_rand48" = "yes" ; then
15418 cat >>confdefs.h <<\_ACEOF
15419 #define HAVE_RAND48 1
15425 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15426 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15427 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 cat >conftest.$ac_ext <<_ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 $ac_includes_default
15441 char *p = (char *) arc4random;
15449 rm -f conftest.$ac_objext
15450 if { (ac_try="$ac_compile"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_compile") 2>conftest.er1
15458 grep -v '^ *+' conftest.er1 >conftest.err
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15464 { (case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_try") 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest.$ac_objext'
15474 { (case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_try") 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_have_decl_arc4random=yes
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_cv_have_decl_arc4random=no
15491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15493 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15494 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15495 if test $ac_cv_have_decl_arc4random = yes; then
15497 cat >>confdefs.h <<_ACEOF
15498 #define HAVE_DECL_ARC4RANDOM 1
15503 cat >>confdefs.h <<_ACEOF
15504 #define HAVE_DECL_ARC4RANDOM 0
15512 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15513 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15514 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 cat >conftest.$ac_ext <<_ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15528 char *p = (char *) strerror_s;
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_compile") 2>conftest.er1
15545 grep -v '^ *+' conftest.er1 >conftest.err
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_try") 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_cv_have_decl_strerror_s=yes
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_cv_have_decl_strerror_s=no
15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15581 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15582 if test $ac_cv_have_decl_strerror_s = yes; then
15584 cat >>confdefs.h <<_ACEOF
15585 #define HAVE_DECL_STRERROR_S 1
15590 cat >>confdefs.h <<_ACEOF
15591 #define HAVE_DECL_STRERROR_S 0
15599 if test "$llvm_cv_os_type" = "MingW" ; then
15600 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15601 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15602 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 ac_check_lib_save_LIBS=$LIBS
15607 cat >conftest.$ac_ext <<_ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15614 /* Override any GCC internal prototype to avoid an error.
15615 Use char because int might match the return type of a GCC
15616 builtin and then its argument prototype would still apply. */
15629 rm -f conftest.$ac_objext conftest$ac_exeext
15630 if { (ac_try="$ac_link"
15631 case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_link") 2>conftest.er1
15638 grep -v '^ *+' conftest.er1 >conftest.err
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15644 { (case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_try") 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; } &&
15653 { ac_try='test -s conftest$ac_exeext'
15654 { (case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_try") 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_cv_lib_gcc__alloca=yes
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ac_cv_lib_gcc__alloca=no
15671 rm -f core conftest.err conftest.$ac_objext \
15672 conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15675 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15676 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15677 if test $ac_cv_lib_gcc__alloca = yes; then
15679 cat >>confdefs.h <<\_ACEOF
15680 #define HAVE__ALLOCA 1
15685 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15686 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15687 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15690 ac_check_lib_save_LIBS=$LIBS
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15699 /* Override any GCC internal prototype to avoid an error.
15700 Use char because int might match the return type of a GCC
15701 builtin and then its argument prototype would still apply. */
15709 return __alloca ();
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_link") 2>conftest.er1
15723 grep -v '^ *+' conftest.er1 >conftest.err
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest$ac_exeext'
15739 { (case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_try") 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_cv_lib_gcc___alloca=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_cv_lib_gcc___alloca=no
15756 rm -f core conftest.err conftest.$ac_objext \
15757 conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15760 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15761 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15762 if test $ac_cv_lib_gcc___alloca = yes; then
15764 cat >>confdefs.h <<\_ACEOF
15765 #define HAVE___ALLOCA 1
15770 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15771 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15772 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 ac_check_lib_save_LIBS=$LIBS
15777 cat >conftest.$ac_ext <<_ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15784 /* Override any GCC internal prototype to avoid an error.
15785 Use char because int might match the return type of a GCC
15786 builtin and then its argument prototype would still apply. */
15794 return __chkstk ();
15799 rm -f conftest.$ac_objext conftest$ac_exeext
15800 if { (ac_try="$ac_link"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15806 (eval "$ac_link") 2>conftest.er1
15808 grep -v '^ *+' conftest.er1 >conftest.err
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
15813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15814 { (case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_try") 2>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; } &&
15823 { ac_try='test -s conftest$ac_exeext'
15824 { (case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_try") 2>&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 ac_cv_lib_gcc___chkstk=yes
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 ac_cv_lib_gcc___chkstk=no
15841 rm -f core conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
15843 LIBS=$ac_check_lib_save_LIBS
15845 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15846 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15847 if test $ac_cv_lib_gcc___chkstk = yes; then
15849 cat >>confdefs.h <<\_ACEOF
15850 #define HAVE___CHKSTK 1
15855 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15856 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15857 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 ac_check_lib_save_LIBS=$LIBS
15862 cat >conftest.$ac_ext <<_ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15869 /* Override any GCC internal prototype to avoid an error.
15870 Use char because int might match the return type of a GCC
15871 builtin and then its argument prototype would still apply. */
15879 return ___chkstk ();
15884 rm -f conftest.$ac_objext conftest$ac_exeext
15885 if { (ac_try="$ac_link"
15886 case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891 (eval "$ac_link") 2>conftest.er1
15893 grep -v '^ *+' conftest.er1 >conftest.err
15895 cat conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
15898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15899 { (case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_try") 2>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; } &&
15908 { ac_try='test -s conftest$ac_exeext'
15909 { (case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914 (eval "$ac_try") 2>&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15918 ac_cv_lib_gcc____chkstk=yes
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_cv_lib_gcc____chkstk=no
15926 rm -f core conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
15928 LIBS=$ac_check_lib_save_LIBS
15930 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15931 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15932 if test $ac_cv_lib_gcc____chkstk = yes; then
15934 cat >>confdefs.h <<\_ACEOF
15935 #define HAVE____CHKSTK 1
15941 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15942 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15943 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 ac_check_lib_save_LIBS=$LIBS
15948 cat >conftest.$ac_ext <<_ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15955 /* Override any GCC internal prototype to avoid an error.
15956 Use char because int might match the return type of a GCC
15957 builtin and then its argument prototype would still apply. */
15965 return __ashldi3 ();
15970 rm -f conftest.$ac_objext conftest$ac_exeext
15971 if { (ac_try="$ac_link"
15972 case "(($ac_try" in
15973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977 (eval "$ac_link") 2>conftest.er1
15979 grep -v '^ *+' conftest.er1 >conftest.err
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15985 { (case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_try") 2>&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest$ac_exeext'
15995 { (case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_try") 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004 ac_cv_lib_gcc___ashldi3=yes
16006 echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16009 ac_cv_lib_gcc___ashldi3=no
16012 rm -f core conftest.err conftest.$ac_objext \
16013 conftest$ac_exeext conftest.$ac_ext
16014 LIBS=$ac_check_lib_save_LIBS
16016 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16017 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16018 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16020 cat >>confdefs.h <<\_ACEOF
16021 #define HAVE___ASHLDI3 1
16026 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16027 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16028 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 ac_check_lib_save_LIBS=$LIBS
16033 cat >conftest.$ac_ext <<_ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16040 /* Override any GCC internal prototype to avoid an error.
16041 Use char because int might match the return type of a GCC
16042 builtin and then its argument prototype would still apply. */
16050 return __ashrdi3 ();
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (ac_try="$ac_link"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest$ac_exeext'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_lib_gcc___ashrdi3=yes
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ac_cv_lib_gcc___ashrdi3=no
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099 LIBS=$ac_check_lib_save_LIBS
16101 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16102 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16103 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16105 cat >>confdefs.h <<\_ACEOF
16106 #define HAVE___ASHRDI3 1
16111 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16112 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16113 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 ac_check_lib_save_LIBS=$LIBS
16118 cat >conftest.$ac_ext <<_ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16125 /* Override any GCC internal prototype to avoid an error.
16126 Use char because int might match the return type of a GCC
16127 builtin and then its argument prototype would still apply. */
16135 return __divdi3 ();
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (ac_try="$ac_link"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>conftest.er1
16149 grep -v '^ *+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest$ac_exeext'
16165 { (case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_try") 2>&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; }; then
16174 ac_cv_lib_gcc___divdi3=yes
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_cv_lib_gcc___divdi3=no
16182 rm -f core conftest.err conftest.$ac_objext \
16183 conftest$ac_exeext conftest.$ac_ext
16184 LIBS=$ac_check_lib_save_LIBS
16186 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16187 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16188 if test $ac_cv_lib_gcc___divdi3 = yes; then
16190 cat >>confdefs.h <<\_ACEOF
16191 #define HAVE___DIVDI3 1
16196 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16197 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16198 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 ac_check_lib_save_LIBS=$LIBS
16203 cat >conftest.$ac_ext <<_ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16210 /* Override any GCC internal prototype to avoid an error.
16211 Use char because int might match the return type of a GCC
16212 builtin and then its argument prototype would still apply. */
16220 return __fixdfdi ();
16225 rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (ac_try="$ac_link"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_link") 2>conftest.er1
16234 grep -v '^ *+' conftest.er1 >conftest.err
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16240 { (case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_try") 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest$ac_exeext'
16250 { (case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_try") 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_cv_lib_gcc___fixdfdi=yes
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 ac_cv_lib_gcc___fixdfdi=no
16267 rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269 LIBS=$ac_check_lib_save_LIBS
16271 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16272 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16273 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16275 cat >>confdefs.h <<\_ACEOF
16276 #define HAVE___FIXDFDI 1
16281 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16282 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16283 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 ac_check_lib_save_LIBS=$LIBS
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16295 /* Override any GCC internal prototype to avoid an error.
16296 Use char because int might match the return type of a GCC
16297 builtin and then its argument prototype would still apply. */
16305 return __fixsfdi ();
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_link") 2>conftest.er1
16319 grep -v '^ *+' conftest.er1 >conftest.err
16321 cat conftest.err >&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } &&
16324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16325 { (case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330 (eval "$ac_try") 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; } &&
16334 { ac_try='test -s conftest$ac_exeext'
16335 { (case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_try") 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 ac_cv_lib_gcc___fixsfdi=yes
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 ac_cv_lib_gcc___fixsfdi=no
16352 rm -f core conftest.err conftest.$ac_objext \
16353 conftest$ac_exeext conftest.$ac_ext
16354 LIBS=$ac_check_lib_save_LIBS
16356 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16357 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16358 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE___FIXSFDI 1
16366 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16367 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16368 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 ac_check_lib_save_LIBS=$LIBS
16373 cat >conftest.$ac_ext <<_ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16380 /* Override any GCC internal prototype to avoid an error.
16381 Use char because int might match the return type of a GCC
16382 builtin and then its argument prototype would still apply. */
16386 char __floatdidf ();
16390 return __floatdidf ();
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (ac_try="$ac_link"
16397 case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_link") 2>conftest.er1
16404 grep -v '^ *+' conftest.er1 >conftest.err
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest$ac_exeext'
16420 { (case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_try") 2>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 ac_cv_lib_gcc___floatdidf=yes
16431 echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.$ac_ext >&5
16434 ac_cv_lib_gcc___floatdidf=no
16437 rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439 LIBS=$ac_check_lib_save_LIBS
16441 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16442 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16443 if test $ac_cv_lib_gcc___floatdidf = yes; then
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE___FLOATDIDF 1
16451 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16452 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16453 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 ac_check_lib_save_LIBS=$LIBS
16458 cat >conftest.$ac_ext <<_ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h. */
16465 /* Override any GCC internal prototype to avoid an error.
16466 Use char because int might match the return type of a GCC
16467 builtin and then its argument prototype would still apply. */
16475 return __lshrdi3 ();
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_link") 2>conftest.er1
16489 grep -v '^ *+' conftest.er1 >conftest.err
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16495 { (case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_try") 2>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; } &&
16504 { ac_try='test -s conftest$ac_exeext'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 ac_cv_lib_gcc___lshrdi3=yes
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_cv_lib_gcc___lshrdi3=no
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16526 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16527 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16528 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16530 cat >>confdefs.h <<\_ACEOF
16531 #define HAVE___LSHRDI3 1
16536 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16537 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16538 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 ac_check_lib_save_LIBS=$LIBS
16543 cat >conftest.$ac_ext <<_ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16550 /* Override any GCC internal prototype to avoid an error.
16551 Use char because int might match the return type of a GCC
16552 builtin and then its argument prototype would still apply. */
16560 return __moddi3 ();
16565 rm -f conftest.$ac_objext conftest$ac_exeext
16566 if { (ac_try="$ac_link"
16567 case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_link") 2>conftest.er1
16574 grep -v '^ *+' conftest.er1 >conftest.err
16576 cat conftest.err >&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16580 { (case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_try") 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try='test -s conftest$ac_exeext'
16590 { (case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_try") 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_cv_lib_gcc___moddi3=yes
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 ac_cv_lib_gcc___moddi3=no
16607 rm -f core conftest.err conftest.$ac_objext \
16608 conftest$ac_exeext conftest.$ac_ext
16609 LIBS=$ac_check_lib_save_LIBS
16611 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16612 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16613 if test $ac_cv_lib_gcc___moddi3 = yes; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define HAVE___MODDI3 1
16621 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16622 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16623 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 ac_check_lib_save_LIBS=$LIBS
16628 cat >conftest.$ac_ext <<_ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16635 /* Override any GCC internal prototype to avoid an error.
16636 Use char because int might match the return type of a GCC
16637 builtin and then its argument prototype would still apply. */
16645 return __udivdi3 ();
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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_lib_gcc___udivdi3=yes
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ac_cv_lib_gcc___udivdi3=no
16692 rm -f core conftest.err conftest.$ac_objext \
16693 conftest$ac_exeext conftest.$ac_ext
16694 LIBS=$ac_check_lib_save_LIBS
16696 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16697 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16698 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16700 cat >>confdefs.h <<\_ACEOF
16701 #define HAVE___UDIVDI3 1
16706 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16707 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16708 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 ac_check_lib_save_LIBS=$LIBS
16713 cat >conftest.$ac_ext <<_ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16720 /* Override any GCC internal prototype to avoid an error.
16721 Use char because int might match the return type of a GCC
16722 builtin and then its argument prototype would still apply. */
16730 return __umoddi3 ();
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_link") 2>conftest.er1
16744 grep -v '^ *+' conftest.er1 >conftest.err
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750 { (case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_try") 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest$ac_exeext'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769 ac_cv_lib_gcc___umoddi3=yes
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ac_cv_lib_gcc___umoddi3=no
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16779 LIBS=$ac_check_lib_save_LIBS
16781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16782 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16783 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16785 cat >>confdefs.h <<\_ACEOF
16786 #define HAVE___UMODDI3 1
16792 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16793 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16794 if test "${ac_cv_lib_gcc___main+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16797 ac_check_lib_save_LIBS=$LIBS
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16855 ac_cv_lib_gcc___main=yes
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_cv_lib_gcc___main=no
16863 rm -f core conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_check_lib_save_LIBS
16867 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16868 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16869 if test $ac_cv_lib_gcc___main = yes; then
16871 cat >>confdefs.h <<\_ACEOF
16872 #define HAVE___MAIN 1
16877 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16878 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16879 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 ac_check_lib_save_LIBS=$LIBS
16884 cat >conftest.$ac_ext <<_ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16891 /* Override any GCC internal prototype to avoid an error.
16892 Use char because int might match the return type of a GCC
16893 builtin and then its argument prototype would still apply. */
16901 return __cmpdi2 ();
16906 rm -f conftest.$ac_objext conftest$ac_exeext
16907 if { (ac_try="$ac_link"
16908 case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_link") 2>conftest.er1
16915 grep -v '^ *+' conftest.er1 >conftest.err
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest$ac_exeext'
16931 { (case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_try") 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_lib_gcc___cmpdi2=yes
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_cv_lib_gcc___cmpdi2=no
16948 rm -f core conftest.err conftest.$ac_objext \
16949 conftest$ac_exeext conftest.$ac_ext
16950 LIBS=$ac_check_lib_save_LIBS
16952 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16953 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16954 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE___CMPDI2 1
16964 if test "$llvm_cv_os_type" = "MingW" ; then
16965 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16966 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16967 cat >conftest.$ac_ext <<_ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16975 #include <windows.h>
16976 #include <imagehlp.h>
16977 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16978 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16982 rm -f conftest.$ac_objext
16983 if { (ac_try="$ac_compile"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_compile") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16997 { (case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002 (eval "$ac_try") 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest.$ac_objext'
17007 { (case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_try") 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17017 { echo "$as_me:$LINENO: result: yes" >&5
17018 echo "${ECHO_T}yes" >&6; }
17019 llvm_cv_win32_elmcb_pcstr="PCSTR"
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17026 { echo "$as_me:$LINENO: result: no" >&5
17027 echo "${ECHO_T}no" >&6; }
17028 llvm_cv_win32_elmcb_pcstr="PSTR"
17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 cat >>confdefs.h <<_ACEOF
17035 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17042 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17043 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17044 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 ac_cpp='$CXXCPP $CPPFLAGS'
17050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17069 rm -f conftest.$ac_objext
17070 if { (ac_try="$ac_compile"
17071 case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_compile") 2>conftest.er1
17078 grep -v '^ *+' conftest.er1 >conftest.err
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } &&
17083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest.$ac_objext'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_cv_func_isnan_in_math_h=yes
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 ac_cv_func_isnan_in_math_h=no
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113 ac_cpp='$CPP $CPPFLAGS'
17114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17120 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17121 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17124 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17126 cat >>confdefs.h <<\_ACEOF
17127 #define HAVE_ISNAN_IN_MATH_H 1
17133 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17134 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17135 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 ac_cpp='$CXXCPP $CPPFLAGS'
17141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17145 cat >conftest.$ac_ext <<_ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17160 rm -f conftest.$ac_objext
17161 if { (ac_try="$ac_compile"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_compile") 2>conftest.er1
17169 grep -v '^ *+' conftest.er1 >conftest.err
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest.$ac_objext'
17185 { (case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_try") 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_func_isnan_in_cmath=yes
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17199 ac_cv_func_isnan_in_cmath=no
17202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204 ac_cpp='$CPP $CPPFLAGS'
17205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17211 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17212 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17214 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17216 cat >>confdefs.h <<\_ACEOF
17217 #define HAVE_ISNAN_IN_CMATH 1
17223 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17224 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17225 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 ac_cpp='$CXXCPP $CPPFLAGS'
17231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17235 cat >conftest.$ac_ext <<_ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17245 float f; std::isnan(f);
17250 rm -f conftest.$ac_objext
17251 if { (ac_try="$ac_compile"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_compile") 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17265 { (case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_try") 2>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; } &&
17274 { ac_try='test -s conftest.$ac_objext'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 ac_cv_func_std_isnan_in_cmath=yes
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 ac_cv_func_std_isnan_in_cmath=no
17292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17294 ac_cpp='$CPP $CPPFLAGS'
17295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17301 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17302 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17304 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17306 cat >>confdefs.h <<\_ACEOF
17307 #define HAVE_STD_ISNAN_IN_CMATH 1
17315 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17316 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17317 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 ac_cpp='$CXXCPP $CPPFLAGS'
17323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17327 cat >conftest.$ac_ext <<_ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17342 rm -f conftest.$ac_objext
17343 if { (ac_try="$ac_compile"
17344 case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_compile") 2>conftest.er1
17351 grep -v '^ *+' conftest.er1 >conftest.err
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17357 { (case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_try") 2>&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_cv_func_isinf_in_math_h=yes
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 ac_cv_func_isinf_in_math_h=no
17384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386 ac_cpp='$CPP $CPPFLAGS'
17387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17393 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17394 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17396 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17398 cat >>confdefs.h <<\_ACEOF
17399 #define HAVE_ISINF_IN_MATH_H 1
17405 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17406 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17407 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 ac_cpp='$CXXCPP $CPPFLAGS'
17413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17432 rm -f conftest.$ac_objext
17433 if { (ac_try="$ac_compile"
17434 case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_compile") 2>conftest.er1
17441 grep -v '^ *+' conftest.er1 >conftest.err
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest.$ac_objext'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_try") 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_cv_func_isinf_in_cmath=yes
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_cv_func_isinf_in_cmath=no
17474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17476 ac_cpp='$CPP $CPPFLAGS'
17477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17483 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17484 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17486 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17488 cat >>confdefs.h <<\_ACEOF
17489 #define HAVE_ISINF_IN_CMATH 1
17495 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17496 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17497 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 ac_cpp='$CXXCPP $CPPFLAGS'
17503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17507 cat >conftest.$ac_ext <<_ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17517 float f; std::isinf(f);
17522 rm -f conftest.$ac_objext
17523 if { (ac_try="$ac_compile"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_compile") 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest.$ac_objext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 ac_cv_func_std_isinf_in_cmath=yes
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 ac_cv_func_std_isinf_in_cmath=no
17564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17566 ac_cpp='$CPP $CPPFLAGS'
17567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17573 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17574 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17576 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17578 cat >>confdefs.h <<\_ACEOF
17579 #define HAVE_STD_ISINF_IN_CMATH 1
17585 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17586 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17587 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 ac_cpp='$CXXCPP $CPPFLAGS'
17593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17597 cat >conftest.$ac_ext <<_ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 #include <ieeefp.h>
17607 float f; finite(f);
17612 rm -f conftest.$ac_objext
17613 if { (ac_try="$ac_compile"
17614 case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_compile") 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_try") 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest.$ac_objext'
17637 { (case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_try") 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_func_finite_in_ieeefp_h=yes
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ac_cv_func_finite_in_ieeefp_h=no
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17656 ac_cpp='$CPP $CPPFLAGS'
17657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17664 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17666 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17668 cat >>confdefs.h <<\_ACEOF
17669 #define HAVE_FINITE_IN_IEEEFP_H 1
17676 if test "$llvm_cv_platform_type" = "Unix" ; then
17679 for ac_header in stdlib.h unistd.h
17681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 ac_res=`eval echo '${'$as_ac_Header'}'`
17689 { echo "$as_me:$LINENO: result: $ac_res" >&5
17690 echo "${ECHO_T}$ac_res" >&6; }
17692 # Is the header compilable?
17693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17695 cat >conftest.$ac_ext <<_ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 $ac_includes_default
17702 #include <$ac_header>
17704 rm -f conftest.$ac_objext
17705 if { (ac_try="$ac_compile"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_compile") 2>conftest.er1
17713 grep -v '^ *+' conftest.er1 >conftest.err
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } &&
17718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17719 { (case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_try") 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_try") 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 ac_header_compiler=yes
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 ac_header_compiler=no
17746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17748 echo "${ECHO_T}$ac_header_compiler" >&6; }
17750 # Is the header present?
17751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17753 cat >conftest.$ac_ext <<_ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 #include <$ac_header>
17761 if { (ac_try="$ac_cpp conftest.$ac_ext"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17769 grep -v '^ *+' conftest.er1 >conftest.err
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } >/dev/null; then
17774 if test -s conftest.err; then
17775 ac_cpp_err=$ac_c_preproc_warn_flag
17776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17783 if test -z "$ac_cpp_err"; then
17784 ac_header_preproc=yes
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 ac_header_preproc=no
17792 rm -f conftest.err conftest.$ac_ext
17793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17794 echo "${ECHO_T}$ac_header_preproc" >&6; }
17796 # So? What about this header?
17797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17803 ac_header_preproc=yes
17806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17819 ## ------------------------------------ ##
17820 ## Report this to http://llvm.org/bugs/ ##
17821 ## ------------------------------------ ##
17823 ) | sed "s/^/$as_me: WARNING: /" >&2
17826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17831 eval "$as_ac_Header=\$ac_header_preproc"
17833 ac_res=`eval echo '${'$as_ac_Header'}'`
17834 { echo "$as_me:$LINENO: result: $ac_res" >&5
17835 echo "${ECHO_T}$ac_res" >&6; }
17838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17839 cat >>confdefs.h <<_ACEOF
17840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17848 for ac_func in getpagesize
17850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 cat >conftest.$ac_ext <<_ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17864 #define $ac_func innocuous_$ac_func
17866 /* System header to define __stub macros and hopefully few prototypes,
17867 which can conflict with char $ac_func (); below.
17868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17869 <limits.h> exists even on freestanding compilers. */
17872 # include <limits.h>
17874 # include <assert.h>
17879 /* Override any GCC internal prototype to avoid an error.
17880 Use char because int might match the return type of a GCC
17881 builtin and then its argument prototype would still apply. */
17886 /* The GNU C library defines this for functions which it implements
17887 to always fail with ENOSYS. Some functions are actually named
17888 something starting with __ and the normal name is an alias. */
17889 #if defined __stub_$ac_func || defined __stub___$ac_func
17896 return $ac_func ();
17901 rm -f conftest.$ac_objext conftest$ac_exeext
17902 if { (ac_try="$ac_link"
17903 case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_link") 2>conftest.er1
17910 grep -v '^ *+' conftest.er1 >conftest.err
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest$ac_exeext'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_try") 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 eval "$as_ac_var=yes"
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 eval "$as_ac_var=no"
17943 rm -f core conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17946 ac_res=`eval echo '${'$as_ac_var'}'`
17947 { echo "$as_me:$LINENO: result: $ac_res" >&5
17948 echo "${ECHO_T}$ac_res" >&6; }
17949 if test `eval echo '${'$as_ac_var'}'` = yes; then
17950 cat >>confdefs.h <<_ACEOF
17951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17957 { echo "$as_me:$LINENO: checking for working mmap" >&5
17958 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17959 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 if test "$cross_compiling" = yes; then
17963 ac_cv_func_mmap_fixed_mapped=no
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17972 /* malloc might have been renamed as rpl_malloc. */
17975 /* Thanks to Mike Haertel and Jim Avera for this test.
17976 Here is a matrix of mmap possibilities:
17977 mmap private not fixed
17978 mmap private fixed at somewhere currently unmapped
17979 mmap private fixed at somewhere already mapped
17980 mmap shared not fixed
17981 mmap shared fixed at somewhere currently unmapped
17982 mmap shared fixed at somewhere already mapped
17983 For private mappings, we should verify that changes cannot be read()
17984 back from the file, nor mmap's back from the file at a different
17985 address. (There have been systems where private was not correctly
17986 implemented like the infamous i386 svr4.0, and systems where the
17987 VM page cache was not coherent with the file system buffer cache
17988 like early versions of FreeBSD and possibly contemporary NetBSD.)
17989 For shared mappings, we should conversely verify that changes get
17990 propagated back to all the places they're supposed to be.
17992 Grep wants private fixed already mapped.
17993 The main things grep needs to know about mmap are:
17994 * does it exist and is it safe to write into the mmap'd area
17995 * how to use it (BSD variants) */
17998 #include <sys/mman.h>
18000 #if !STDC_HEADERS && !HAVE_STDLIB_H
18004 /* This mess was copied from the GNU getpagesize.h. */
18005 #if !HAVE_GETPAGESIZE
18006 /* Assume that all systems that can run configure have sys/param.h. */
18007 # if !HAVE_SYS_PARAM_H
18008 # define HAVE_SYS_PARAM_H 1
18011 # ifdef _SC_PAGESIZE
18012 # define getpagesize() sysconf(_SC_PAGESIZE)
18013 # else /* no _SC_PAGESIZE */
18014 # if HAVE_SYS_PARAM_H
18015 # include <sys/param.h>
18016 # ifdef EXEC_PAGESIZE
18017 # define getpagesize() EXEC_PAGESIZE
18018 # else /* no EXEC_PAGESIZE */
18020 # define getpagesize() NBPG * CLSIZE
18023 # endif /* no CLSIZE */
18024 # else /* no NBPG */
18026 # define getpagesize() NBPC
18027 # else /* no NBPC */
18029 # define getpagesize() PAGESIZE
18030 # endif /* PAGESIZE */
18031 # endif /* no NBPC */
18032 # endif /* no NBPG */
18033 # endif /* no EXEC_PAGESIZE */
18034 # else /* no HAVE_SYS_PARAM_H */
18035 # define getpagesize() 8192 /* punt totally */
18036 # endif /* no HAVE_SYS_PARAM_H */
18037 # endif /* no _SC_PAGESIZE */
18039 #endif /* no HAVE_GETPAGESIZE */
18044 char *data, *data2, *data3;
18048 pagesize = getpagesize ();
18050 /* First, make a file with some known garbage in it. */
18051 data = (char *) malloc (pagesize);
18054 for (i = 0; i < pagesize; ++i)
18055 *(data + i) = rand ();
18057 fd = creat ("conftest.mmap", 0600);
18060 if (write (fd, data, pagesize) != pagesize)
18064 /* Next, try to mmap the file at a fixed address which already has
18065 something else allocated at it. If we can, also make sure that
18066 we see the same garbage. */
18067 fd = open ("conftest.mmap", O_RDWR);
18070 data2 = (char *) malloc (2 * pagesize);
18073 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18074 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18075 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18077 for (i = 0; i < pagesize; ++i)
18078 if (*(data + i) != *(data2 + i))
18081 /* Finally, make sure that changes to the mapped area do not
18082 percolate back to the file as seen by read(). (This is a bug on
18083 some variants of i386 svr4.0.) */
18084 for (i = 0; i < pagesize; ++i)
18085 *(data2 + i) = *(data2 + i) + 1;
18086 data3 = (char *) malloc (pagesize);
18089 if (read (fd, data3, pagesize) != pagesize)
18091 for (i = 0; i < pagesize; ++i)
18092 if (*(data + i) != *(data3 + i))
18098 rm -f conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_link") 2>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18109 { (case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_func_mmap_fixed_mapped=yes
18120 echo "$as_me: program exited with status $ac_status" >&5
18121 echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 ( exit $ac_status )
18125 ac_cv_func_mmap_fixed_mapped=no
18127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18132 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18133 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18134 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18136 cat >>confdefs.h <<\_ACEOF
18137 #define HAVE_MMAP 1
18141 rm -f conftest.mmap
18143 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18144 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18145 if test "${ac_cv_func_mmap_file+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 ac_cpp='$CPP $CPPFLAGS'
18150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18154 if test "$cross_compiling" = yes; then
18155 ac_cv_func_mmap_file=no
18157 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18165 #include <sys/types.h>
18166 #include <sys/mman.h>
18174 fd = creat ("foo",0777);
18175 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18177 return (fd != (int) MAP_FAILED);
18182 rm -f conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_link") 2>&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18193 { (case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_try") 2>&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202 ac_cv_func_mmap_file=yes
18204 echo "$as_me: program exited with status $ac_status" >&5
18205 echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 ( exit $ac_status )
18209 ac_cv_func_mmap_file=no
18211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18216 ac_cpp='$CPP $CPPFLAGS'
18217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18223 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18224 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18225 if test "$ac_cv_func_mmap_file" = yes; then
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE_MMAP_FILE
18235 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18236 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18237 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 if test "$llvm_cv_os_type" = "Interix" ; then
18241 ac_cv_need_dev_zero_for_mmap=yes
18243 ac_cv_need_dev_zero_for_mmap=no
18247 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18248 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18249 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18251 cat >>confdefs.h <<\_ACEOF
18252 #define NEED_DEV_ZERO_FOR_MMAP 1
18257 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18259 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18260 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18262 if test "$ac_cv_func_mmap_file" = "no"
18264 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18265 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18269 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18270 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18272 ac_cpp='$CXXCPP $CPPFLAGS'
18273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18277 cat >conftest.$ac_ext <<_ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18286 volatile unsigned long val = 1;
18287 __sync_synchronize();
18288 __sync_val_compare_and_swap(&val, 1, 0);
18289 __sync_add_and_fetch(&val, 1);
18290 __sync_sub_and_fetch(&val, 1);
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (ac_try="$ac_link"
18298 case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_link") 2>conftest.er1
18305 grep -v '^ *+' conftest.er1 >conftest.err
18307 cat conftest.err >&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
18310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18311 { (case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_try") 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try='test -s conftest$ac_exeext'
18321 { (case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_try") 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18331 { echo "$as_me:$LINENO: result: yes" >&5
18332 echo "${ECHO_T}yes" >&6; }
18334 cat >>confdefs.h <<\_ACEOF
18335 #define LLVM_HAS_ATOMICS 1
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18344 { echo "$as_me:$LINENO: result: no" >&5
18345 echo "${ECHO_T}no" >&6; }
18347 cat >>confdefs.h <<\_ACEOF
18348 #define LLVM_HAS_ATOMICS 0
18351 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18352 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18356 rm -f core conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18359 ac_cpp='$CPP $CPPFLAGS'
18360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18366 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18367 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18368 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18369 if test "${llvm_cv_linux_mixed+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 ac_cpp='$CPP $CPPFLAGS'
18374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18385 error: Not x86-64 even if uname says so!
18396 rm -f conftest.$ac_objext
18397 if { (ac_try="$ac_compile"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_compile") 2>conftest.er1
18405 grep -v '^ *+' conftest.er1 >conftest.err
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest.$ac_objext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 llvm_cv_linux_mixed=no
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 llvm_cv_linux_mixed=yes
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18440 ac_cpp='$CPP $CPPFLAGS'
18441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18447 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18448 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18450 if test "$llvm_cv_linux_mixed" = "yes"; then
18451 llvm_cv_target_arch="x86"
18457 for ac_func in __dso_handle
18459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 cat >conftest.$ac_ext <<_ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18473 #define $ac_func innocuous_$ac_func
18475 /* System header to define __stub macros and hopefully few prototypes,
18476 which can conflict with char $ac_func (); below.
18477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18478 <limits.h> exists even on freestanding compilers. */
18481 # include <limits.h>
18483 # include <assert.h>
18488 /* Override any GCC internal prototype to avoid an error.
18489 Use char because int might match the return type of a GCC
18490 builtin and then its argument prototype would still apply. */
18495 /* The GNU C library defines this for functions which it implements
18496 to always fail with ENOSYS. Some functions are actually named
18497 something starting with __ and the normal name is an alias. */
18498 #if defined __stub_$ac_func || defined __stub___$ac_func
18505 return $ac_func ();
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (ac_try="$ac_link"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_link") 2>conftest.er1
18519 grep -v '^ *+' conftest.er1 >conftest.err
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18525 { (case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_try") 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try='test -s conftest$ac_exeext'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 eval "$as_ac_var=yes"
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18549 eval "$as_ac_var=no"
18552 rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18555 ac_res=`eval echo '${'$as_ac_var'}'`
18556 { echo "$as_me:$LINENO: result: $ac_res" >&5
18557 echo "${ECHO_T}$ac_res" >&6; }
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18567 SHLIBEXT=$llvm_shlib_ext
18570 if test "${prefix}" = "NONE" ; then
18571 prefix="/usr/local"
18573 eval LLVM_PREFIX="${prefix}";
18574 eval LLVM_BINDIR="${prefix}/bin";
18575 eval LLVM_DATADIR="${prefix}/share/llvm";
18576 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18577 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18578 eval LLVM_INCLUDEDIR="${prefix}/include";
18579 eval LLVM_INFODIR="${prefix}/info";
18580 eval LLVM_MANDIR="${prefix}/man";
18581 LLVM_CONFIGTIME=`date`
18592 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18593 LLVM_CONFIGTIME="(timestamp not enabled)"
18597 cat >>confdefs.h <<_ACEOF
18598 #define LLVM_PREFIX "$LLVM_PREFIX"
18602 cat >>confdefs.h <<_ACEOF
18603 #define LLVM_BINDIR "$LLVM_BINDIR"
18607 cat >>confdefs.h <<_ACEOF
18608 #define LLVM_DATADIR "$LLVM_DATADIR"
18612 cat >>confdefs.h <<_ACEOF
18613 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18617 cat >>confdefs.h <<_ACEOF
18618 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18622 cat >>confdefs.h <<_ACEOF
18623 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18627 cat >>confdefs.h <<_ACEOF
18628 #define LLVM_INFODIR "$LLVM_INFODIR"
18632 cat >>confdefs.h <<_ACEOF
18633 #define LLVM_MANDIR "$LLVM_MANDIR"
18637 cat >>confdefs.h <<_ACEOF
18638 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18642 cat >>confdefs.h <<_ACEOF
18643 #define LLVM_HOST_TRIPLE "$host"
18647 cat >>confdefs.h <<_ACEOF
18648 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18652 if test "$BINDINGS_TO_BUILD" = auto ; then
18653 BINDINGS_TO_BUILD=""
18654 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18655 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18657 if test "x$GO" != x ; then
18658 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18659 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18663 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18666 binding_prereqs_failed=0
18667 for a_binding in $BINDINGS_TO_BUILD ; do
18668 case "$a_binding" in
18670 if test "x$OCAMLC" = x ; then
18671 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18672 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18673 binding_prereqs_failed=1
18675 if test "x$OCAMLDEP" = x ; then
18676 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18677 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18678 binding_prereqs_failed=1
18680 if test "x$OCAMLOPT" = x ; then
18681 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18682 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18684 if test "x$with_ocaml_libdir" != xauto ; then
18685 OCAML_LIBDIR=$with_ocaml_libdir
18688 ocaml_stdlib="`"$OCAMLC" -where`"
18689 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18691 # ocaml stdlib is beneath our prefix; use stdlib
18692 OCAML_LIBDIR=$ocaml_stdlib
18695 # ocaml stdlib is outside our prefix; use libdir/ocaml
18696 OCAML_LIBDIR=${prefix}/lib/ocaml
18702 if test "x$GO" = x ; then
18703 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18704 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18705 binding_prereqs_failed=1
18707 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18710 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18711 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18712 binding_prereqs_failed=1
18718 if test "$binding_prereqs_failed" = 1 ; then
18719 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18720 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18721 { (exit 1); exit 1; }; }
18724 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18725 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18726 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 ac_cpp='$CXXCPP $CPPFLAGS'
18731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18735 oldcxxflags="$CXXFLAGS"
18736 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18737 cat >conftest.$ac_ext <<_ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18752 rm -f conftest.$ac_objext
18753 if { (ac_try="$ac_compile"
18754 case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_compile") 2>conftest.er1
18761 grep -v '^ *+' conftest.er1 >conftest.err
18763 cat conftest.err >&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } &&
18766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18767 { (case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_try") 2>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; } &&
18776 { ac_try='test -s conftest.$ac_objext'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18786 llvm_cv_cxx_visibility_inlines_hidden=yes
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 llvm_cv_cxx_visibility_inlines_hidden=no
18794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18795 CXXFLAGS="$oldcxxflags"
18797 ac_cpp='$CPP $CPPFLAGS'
18798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18804 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18805 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18806 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18807 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18810 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18815 if test "$llvm_cv_link_use_r" = "yes" ; then
18822 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18823 RDYNAMIC="-rdynamic"
18830 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18837 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18839 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18841 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18843 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18845 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18848 ac_config_files="$ac_config_files Makefile.config"
18851 ac_config_files="$ac_config_files llvm.spec"
18854 ac_config_files="$ac_config_files docs/doxygen.cfg"
18857 if test "${clang_src_root}" = ""; then
18858 clang_src_root="$srcdir/tools/clang"
18860 if test -f ${clang_src_root}/README.txt; then
18861 configh="include/clang/Config/config.h"
18862 doxy="docs/doxygen.cfg"
18863 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18865 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18869 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18872 test "x$program_prefix" = "xNONE" && program_prefix=""
18876 ac_config_commands="$ac_config_commands setup"
18878 ac_config_commands="$ac_config_commands Makefile"
18881 ac_config_commands="$ac_config_commands Makefile.common"
18884 ac_config_commands="$ac_config_commands examples/Makefile"
18887 ac_config_commands="$ac_config_commands lib/Makefile"
18890 ac_config_commands="$ac_config_commands test/Makefile"
18893 ac_config_commands="$ac_config_commands test/Makefile.tests"
18896 ac_config_commands="$ac_config_commands unittests/Makefile"
18899 ac_config_commands="$ac_config_commands tools/Makefile"
18902 ac_config_commands="$ac_config_commands utils/Makefile"
18905 ac_config_commands="$ac_config_commands projects/Makefile"
18908 ac_config_commands="$ac_config_commands bindings/Makefile"
18911 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18915 cat >confcache <<\_ACEOF
18916 # This file is a shell script that caches the results of configure
18917 # tests run on this system so they can be shared between configure
18918 # scripts and configure runs, see configure's option --config-cache.
18919 # It is not useful on other systems. If it contains results you don't
18920 # want to keep, you may remove or edit it.
18922 # config.status only pays attention to the cache file if you give it
18923 # the --recheck option to rerun configure.
18925 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18926 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18927 # following values.
18931 # The following way of writing the cache mishandles newlines in values,
18932 # but we know of no workaround that is simple, portable, and efficient.
18933 # So, we kill variables containing newlines.
18934 # Ultrix sh set writes to stderr and can't be redirected directly,
18935 # and sets the high bit in the cache file unless we assign to the vars.
18937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18938 eval ac_val=\$$ac_var
18942 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18943 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18946 _ | IFS | as_nl) ;; #(
18947 *) $as_unset $ac_var ;;
18953 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18954 *${as_nl}ac_space=\ *)
18955 # `set' does not quote correctly, so add quotes (double-quote
18956 # substitution turns \\\\ into \\, and sed turns \\ into \).
18959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18962 # `set' quotes correctly as required by POSIX, so do not add quotes.
18963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18974 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18976 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18977 if test -w "$cache_file"; then
18978 test "x$cache_file" != "x/dev/null" &&
18979 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18980 echo "$as_me: updating cache $cache_file" >&6;}
18981 cat confcache >$cache_file
18983 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18984 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18990 # Let make expand exec_prefix.
18991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18993 DEFS=-DHAVE_CONFIG_H
18997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18998 # 1. Remove the extension, and $U if already installed.
18999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19000 ac_i=`echo "$ac_i" | sed "$ac_script"`
19001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19002 # will be set to the directory where LIBOBJS objects are built.
19003 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19004 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19006 LIBOBJS=$ac_libobjs
19008 LTLIBOBJS=$ac_ltlibobjs
19012 : ${CONFIG_STATUS=./config.status}
19013 ac_clean_files_save=$ac_clean_files
19014 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19015 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19016 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19017 cat >$CONFIG_STATUS <<_ACEOF
19019 # Generated by $as_me.
19020 # Run this file to recreate the current configuration.
19021 # Compiler output produced by configure, useful for debugging
19022 # configure, is in config.log if it exists.
19025 ac_cs_recheck=false
19027 SHELL=\${CONFIG_SHELL-$SHELL}
19030 cat >>$CONFIG_STATUS <<\_ACEOF
19031 ## --------------------- ##
19032 ## M4sh Initialization. ##
19033 ## --------------------- ##
19035 # Be Bourne compatible
19036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19039 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19040 # is contrary to our usage. Disable this feature.
19041 alias -g '${1+"$@"}'='"$@"'
19042 setopt NO_GLOB_SUBST
19044 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19046 BIN_SH=xpg4; export BIN_SH # for Tru64
19047 DUALCASE=1; export DUALCASE # for MKS sh
19051 # Avoid depending upon Character Ranges.
19052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19055 as_cr_digits='0123456789'
19056 as_cr_alnum=$as_cr_Letters$as_cr_digits
19058 # The user is always right.
19059 if test "${PATH_SEPARATOR+set}" != set; then
19060 echo "#! /bin/sh" >conf$$.sh
19061 echo "exit 0" >>conf$$.sh
19063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19071 # Support unset when possible.
19072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19080 # We need space, tab and new line, in precisely that order. Quoting is
19081 # there to prevent editors from complaining about space-tab.
19082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19083 # splitting by setting IFS to empty value.)
19088 # Find who we are. Look in the path if we contain no directory separator.
19090 *[\\/]* ) as_myself=$0 ;;
19091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19092 for as_dir in $PATH
19095 test -z "$as_dir" && as_dir=.
19096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19102 # We did not find ourselves, most probably we were run as `sh COMMAND'
19103 # in which case we are not to be found in the path.
19104 if test "x$as_myself" = x; then
19107 if test ! -f "$as_myself"; then
19108 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19109 { (exit 1); exit 1; }
19112 # Work around bugs in pre-3.0 UWIN ksh.
19113 for as_var in ENV MAIL MAILPATH
19114 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19122 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19123 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19124 LC_TELEPHONE LC_TIME
19126 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19127 eval $as_var=C; export $as_var
19129 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19133 # Required to use basename.
19134 if expr a : '\(a\)' >/dev/null 2>&1 &&
19135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19142 as_basename=basename
19148 # Name of the executable.
19149 as_me=`$as_basename -- "$0" ||
19150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19151 X"$0" : 'X\(//\)$' \| \
19152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19154 sed '/^.*\/\([^/][^/]*\)\/*$/{
19173 as_lineno_1=$LINENO
19174 as_lineno_2=$LINENO
19175 test "x$as_lineno_1" != "x$as_lineno_2" &&
19176 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19178 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19179 # uniformly replaced by the line number. The first 'sed' inserts a
19180 # line-number line after each line using $LINENO; the second 'sed'
19181 # does the real work. The second script uses 'N' to pair each
19182 # line-number line with the line containing $LINENO, and appends
19183 # trailing '-' during substitution so that $LINENO is not a special
19184 # case at line end.
19185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19186 # scripts with optimization help from Paolo Bonzini. Blame Lee
19187 # E. McMahon (1931-1989) for sed's syntax. :-)
19199 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19202 ' >$as_me.lineno &&
19203 chmod +x "$as_me.lineno" ||
19204 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19205 { (exit 1); exit 1; }; }
19207 # Don't try to exec as it changes $[0], causing all sort of problems
19208 # (the dirname of $[0] is not the place where we might find the
19209 # original and so on. Autoconf is especially sensitive to this).
19210 . "./$as_me.lineno"
19211 # Exit status is that of the last command.
19216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19222 ECHO_C= ECHO_N= ECHO_T=
19223 case `echo -n x` in
19225 case `echo 'x\c'` in
19226 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19233 if expr a : '\(a\)' >/dev/null 2>&1 &&
19234 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19240 rm -f conf$$ conf$$.exe conf$$.file
19241 if test -d conf$$.dir; then
19242 rm -f conf$$.dir/conf$$.file
19248 if ln -s conf$$.file conf$$ 2>/dev/null; then
19250 # ... but there are two gotchas:
19251 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19252 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19253 # In both cases, we have to default to `cp -p'.
19254 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19256 elif ln conf$$.file conf$$ 2>/dev/null; then
19261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19262 rmdir conf$$.dir 2>/dev/null
19264 if mkdir -p . 2>/dev/null; then
19267 test -d ./-p && rmdir ./-p
19271 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19272 # systems may use methods other than mode bits to determine executability.
19273 cat >conf$$.file <<_ASEOF
19277 chmod +x conf$$.file
19278 if test -x conf$$.file >/dev/null 2>&1; then
19279 as_executable_p="test -x"
19285 # Sed expression to map a string onto a valid CPP name.
19286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19288 # Sed expression to map a string onto a valid variable name.
19289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19294 # Save the log message, to keep $[0] and so on meaningful, and to
19295 # report actual input values of CONFIG_FILES etc. instead of their
19296 # values after options handling.
19298 This file was extended by LLVM $as_me 3.6.0svn, which was
19299 generated by GNU Autoconf 2.60. Invocation command line was
19301 CONFIG_FILES = $CONFIG_FILES
19302 CONFIG_HEADERS = $CONFIG_HEADERS
19303 CONFIG_LINKS = $CONFIG_LINKS
19304 CONFIG_COMMANDS = $CONFIG_COMMANDS
19307 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19312 cat >>$CONFIG_STATUS <<_ACEOF
19313 # Files that config.status was made for.
19314 config_files="$ac_config_files"
19315 config_headers="$ac_config_headers"
19316 config_commands="$ac_config_commands"
19320 cat >>$CONFIG_STATUS <<\_ACEOF
19322 \`$as_me' instantiates files from templates according to the
19323 current configuration.
19325 Usage: $0 [OPTIONS] [FILE]...
19327 -h, --help print this help, then exit
19328 -V, --version print version number, then exit
19329 -q, --quiet do not print progress messages
19330 -d, --debug don't remove temporary files
19331 --recheck update $as_me by reconfiguring in the same conditions
19332 --file=FILE[:TEMPLATE]
19333 instantiate the configuration file FILE
19334 --header=FILE[:TEMPLATE]
19335 instantiate the configuration header FILE
19337 Configuration files:
19340 Configuration headers:
19343 Configuration commands:
19346 Report bugs to <bug-autoconf@gnu.org>."
19349 cat >>$CONFIG_STATUS <<_ACEOF
19351 LLVM config.status 3.6.0svn
19352 configured by $0, generated by GNU Autoconf 2.60,
19353 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19355 Copyright (C) 2006 Free Software Foundation, Inc.
19356 This config.status script is free software; the Free Software Foundation
19357 gives unlimited permission to copy, distribute and modify it."
19364 cat >>$CONFIG_STATUS <<\_ACEOF
19365 # If no file are specified by the user, then we need to provide default
19366 # value. By we need to know if files were specified by the user.
19372 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19384 # Handling of the options.
19385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19387 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19388 echo "$ac_cs_version"; exit ;;
19389 --debug | --debu | --deb | --de | --d | -d )
19391 --file | --fil | --fi | --f )
19393 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19394 ac_need_defaults=false;;
19395 --header | --heade | --head | --hea )
19397 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19398 ac_need_defaults=false;;
19400 # Conflict between --help and --header
19401 { echo "$as_me: error: ambiguous option: $1
19402 Try \`$0 --help' for more information." >&2
19403 { (exit 1); exit 1; }; };;
19404 --help | --hel | -h )
19405 echo "$ac_cs_usage"; exit ;;
19406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19407 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19410 # This is an error.
19411 -*) { echo "$as_me: error: unrecognized option: $1
19412 Try \`$0 --help' for more information." >&2
19413 { (exit 1); exit 1; }; } ;;
19415 *) ac_config_targets="$ac_config_targets $1"
19416 ac_need_defaults=false ;;
19422 ac_configure_extra_args=
19424 if $ac_cs_silent; then
19426 ac_configure_extra_args="$ac_configure_extra_args --silent"
19430 cat >>$CONFIG_STATUS <<_ACEOF
19431 if \$ac_cs_recheck; then
19432 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19433 CONFIG_SHELL=$SHELL
19434 export CONFIG_SHELL
19435 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19439 cat >>$CONFIG_STATUS <<\_ACEOF
19443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19444 ## Running $as_me. ##
19450 cat >>$CONFIG_STATUS <<_ACEOF
19454 llvm_src="${srcdir}"
19458 cat >>$CONFIG_STATUS <<\_ACEOF
19460 # Handling of arguments.
19461 for ac_config_target in $ac_config_targets
19463 case $ac_config_target in
19464 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19465 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19466 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19467 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19468 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19469 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19470 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19471 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19472 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19473 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19474 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19475 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19476 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19477 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19478 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19479 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19480 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19481 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19482 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19483 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19484 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19485 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19486 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19487 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19488 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19489 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19493 { (exit 1); exit 1; }; };;
19498 # If the user did not use the arguments to specify the items to instantiate,
19499 # then the envvar interface is used. Set only those that are not.
19500 # We use the long form for the default assignment because of an extremely
19501 # bizarre bug on SunOS 4.1.3.
19502 if $ac_need_defaults; then
19503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19508 # Have a temporary directory for convenience. Make it in the build tree
19509 # simply because there is no reason against having it here, and in addition,
19510 # creating and moving files from /tmp can sometimes cause problems.
19511 # Hook for its removal unless debugging.
19512 # Note that there is a small window in which the directory will not be cleaned:
19513 # after its creation but before its name has been assigned to `$tmp'.
19517 trap 'exit_status=$?
19518 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19520 trap '{ (exit 1); exit 1; }' 1 2 13 15
19522 # Create a (secure) tmp directory for tmp files.
19525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19526 test -n "$tmp" && test -d "$tmp"
19529 tmp=./conf$$-$RANDOM
19530 (umask 077 && mkdir "$tmp")
19533 echo "$me: cannot create a temporary directory in ." >&2
19534 { (exit 1); exit 1; }
19538 # Set up the sed scripts for CONFIG_FILES section.
19541 # No need to generate the scripts if there are no CONFIG_FILES.
19542 # This happens for instance when ./config.status config.h
19543 if test -n "$CONFIG_FILES"; then
19550 for ac_last_try in false false false false false :; do
19551 cat >conf$$subs.sed <<_ACEOF
19552 SHELL!$SHELL$ac_delim
19553 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19554 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19555 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19556 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19557 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19558 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19559 exec_prefix!$exec_prefix$ac_delim
19560 prefix!$prefix$ac_delim
19561 program_transform_name!$program_transform_name$ac_delim
19562 bindir!$bindir$ac_delim
19563 sbindir!$sbindir$ac_delim
19564 libexecdir!$libexecdir$ac_delim
19565 datarootdir!$datarootdir$ac_delim
19566 datadir!$datadir$ac_delim
19567 sysconfdir!$sysconfdir$ac_delim
19568 sharedstatedir!$sharedstatedir$ac_delim
19569 localstatedir!$localstatedir$ac_delim
19570 includedir!$includedir$ac_delim
19571 oldincludedir!$oldincludedir$ac_delim
19572 docdir!$docdir$ac_delim
19573 infodir!$infodir$ac_delim
19574 htmldir!$htmldir$ac_delim
19575 dvidir!$dvidir$ac_delim
19576 pdfdir!$pdfdir$ac_delim
19577 psdir!$psdir$ac_delim
19578 libdir!$libdir$ac_delim
19579 localedir!$localedir$ac_delim
19580 mandir!$mandir$ac_delim
19581 DEFS!$DEFS$ac_delim
19582 ECHO_C!$ECHO_C$ac_delim
19583 ECHO_N!$ECHO_N$ac_delim
19584 ECHO_T!$ECHO_T$ac_delim
19585 LIBS!$LIBS$ac_delim
19586 build_alias!$build_alias$ac_delim
19587 host_alias!$host_alias$ac_delim
19588 target_alias!$target_alias$ac_delim
19589 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19590 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19591 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19592 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19593 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19595 CFLAGS!$CFLAGS$ac_delim
19596 LDFLAGS!$LDFLAGS$ac_delim
19597 CPPFLAGS!$CPPFLAGS$ac_delim
19598 ac_ct_CC!$ac_ct_CC$ac_delim
19599 EXEEXT!$EXEEXT$ac_delim
19600 OBJEXT!$OBJEXT$ac_delim
19602 CXXFLAGS!$CXXFLAGS$ac_delim
19603 ac_ct_CXX!$ac_ct_CXX$ac_delim
19605 subdirs!$subdirs$ac_delim
19606 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19607 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19608 build!$build$ac_delim
19609 build_cpu!$build_cpu$ac_delim
19610 build_vendor!$build_vendor$ac_delim
19611 build_os!$build_os$ac_delim
19612 host!$host$ac_delim
19613 host_cpu!$host_cpu$ac_delim
19614 host_vendor!$host_vendor$ac_delim
19615 host_os!$host_os$ac_delim
19616 target!$target$ac_delim
19617 target_cpu!$target_cpu$ac_delim
19618 target_vendor!$target_vendor$ac_delim
19619 target_os!$target_os$ac_delim
19621 HOST_OS!$HOST_OS$ac_delim
19622 TARGET_OS!$TARGET_OS$ac_delim
19623 LINKALL!$LINKALL$ac_delim
19624 NOLINKALL!$NOLINKALL$ac_delim
19625 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19626 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19627 ARCH!$ARCH$ac_delim
19628 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19629 HOST_ARCH!$HOST_ARCH$ac_delim
19630 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19631 BUILD_CC!$BUILD_CC$ac_delim
19632 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19633 BUILD_CXX!$BUILD_CXX$ac_delim
19634 CVSBUILD!$CVSBUILD$ac_delim
19635 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19636 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19637 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19638 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19639 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19640 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19641 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19642 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19643 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19644 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19645 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19646 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19647 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19648 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19651 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19653 elif $ac_last_try; then
19654 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19655 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19656 { (exit 1); exit 1; }; }
19658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19663 if test -n "$ac_eof"; then
19664 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19665 ac_eof=`expr $ac_eof + 1`
19668 cat >>$CONFIG_STATUS <<_ACEOF
19669 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19673 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19674 s/^/s,@/; s/!/@,|#_!!_#|/
19677 s/'"$ac_delim"'$/,g/; t
19679 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19680 ' >>$CONFIG_STATUS <conf$$subs.sed
19681 rm -f conf$$subs.sed
19682 cat >>$CONFIG_STATUS <<_ACEOF
19688 for ac_last_try in false false false false false :; do
19689 cat >conf$$subs.sed <<_ACEOF
19690 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19692 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19693 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19694 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19695 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19696 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19697 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19698 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19699 ENABLE_PIC!$ENABLE_PIC$ac_delim
19700 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19701 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19702 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19703 ALL_TARGETS!$ALL_TARGETS$ac_delim
19704 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19705 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19706 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19707 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19708 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19709 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19710 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19711 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19712 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19713 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19714 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19715 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19716 ifGNUmake!$ifGNUmake$ac_delim
19717 LN_S!$LN_S$ac_delim
19721 DATE!$DATE$ac_delim
19722 FIND!$FIND$ac_delim
19723 GREP!$GREP$ac_delim
19724 MKDIR!$MKDIR$ac_delim
19726 RANLIB!$RANLIB$ac_delim
19731 BINPWD!$BINPWD$ac_delim
19733 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19734 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19735 INSTALL_DATA!$INSTALL_DATA$ac_delim
19736 BZIP2!$BZIP2$ac_delim
19738 DOXYGEN!$DOXYGEN$ac_delim
19739 GROFF!$GROFF$ac_delim
19740 GZIPBIN!$GZIPBIN$ac_delim
19741 PDFROFF!$PDFROFF$ac_delim
19744 OCAMLC!$OCAMLC$ac_delim
19745 OCAMLOPT!$OCAMLOPT$ac_delim
19746 OCAMLDEP!$OCAMLDEP$ac_delim
19747 OCAMLDOC!$OCAMLDOC$ac_delim
19749 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19750 EGREP!$EGREP$ac_delim
19751 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19752 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19753 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19754 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19755 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19756 PYTHON!$PYTHON$ac_delim
19757 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19758 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19759 USE_OPROFILE!$USE_OPROFILE$ac_delim
19760 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19761 XML2CONFIG!$XML2CONFIG$ac_delim
19762 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19763 LIBXML2_INC!$LIBXML2_INC$ac_delim
19764 CXXCPP!$CXXCPP$ac_delim
19765 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19766 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19767 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19768 MMAP_FILE!$MMAP_FILE$ac_delim
19769 SHLIBEXT!$SHLIBEXT$ac_delim
19770 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19771 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19772 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19773 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19774 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19775 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19776 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19777 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19778 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19779 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19780 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19781 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19782 RPATH!$RPATH$ac_delim
19783 RDYNAMIC!$RDYNAMIC$ac_delim
19784 program_prefix!$program_prefix$ac_delim
19785 LIBOBJS!$LIBOBJS$ac_delim
19786 LTLIBOBJS!$LTLIBOBJS$ac_delim
19789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19791 elif $ac_last_try; then
19792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19794 { (exit 1); exit 1; }; }
19796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19801 if test -n "$ac_eof"; then
19802 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19803 ac_eof=`expr $ac_eof + 1`
19806 cat >>$CONFIG_STATUS <<_ACEOF
19807 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19812 s/^/s,@/; s/!/@,|#_!!_#|/
19815 s/'"$ac_delim"'$/,g/; t
19817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19818 ' >>$CONFIG_STATUS <conf$$subs.sed
19819 rm -f conf$$subs.sed
19820 cat >>$CONFIG_STATUS <<_ACEOF
19825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19827 # trailing colons and then remove the whole line if VPATH becomes empty
19828 # (actually we leave an empty line to preserve line numbers).
19829 if test "x$srcdir" = x.; then
19830 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19831 s/:*\$(srcdir):*/:/
19832 s/:*\${srcdir}:*/:/
19834 s/^\([^=]*=[ ]*\):*/\1/
19840 cat >>$CONFIG_STATUS <<\_ACEOF
19841 fi # test -n "$CONFIG_FILES"
19844 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19847 :[FHLC]) ac_mode=$ac_tag; continue;;
19849 case $ac_mode$ac_tag in
19851 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19852 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19853 { (exit 1); exit 1; }; };;
19854 :[FH]-) ac_tag=-:-;;
19855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19872 -) ac_f="$tmp/stdin";;
19873 *) # Look for the file first in the build tree, then in the source tree
19874 # (if the path is not absolute). The absolute path cannot be DOS-style,
19875 # because $ac_f cannot contain `:'.
19879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19881 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19882 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19883 { (exit 1); exit 1; }; };;
19885 ac_file_inputs="$ac_file_inputs $ac_f"
19888 # Let's still pretend it is `configure' which instantiates (i.e., don't
19889 # use $as_me), people would be surprised to read:
19890 # /* config.h. Generated by config.status. */
19891 configure_input="Generated from "`IFS=:
19892 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19893 if test x"$ac_file" != x-; then
19894 configure_input="$ac_file. $configure_input"
19895 { echo "$as_me:$LINENO: creating $ac_file" >&5
19896 echo "$as_me: creating $ac_file" >&6;}
19900 *:-:* | *:-) cat >"$tmp/stdin";;
19905 ac_dir=`$as_dirname -- "$ac_file" ||
19906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19907 X"$ac_file" : 'X\(//\)[^/]' \| \
19908 X"$ac_file" : 'X\(//\)$' \| \
19909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19915 /^X\(\/\/\)[^/].*/{
19930 -*) as_dir=./$as_dir;;
19932 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19936 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19937 *) as_qdir=$as_dir;;
19939 as_dirs="'$as_qdir' $as_dirs"
19940 as_dir=`$as_dirname -- "$as_dir" ||
19941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19942 X"$as_dir" : 'X\(//\)[^/]' \| \
19943 X"$as_dir" : 'X\(//\)$' \| \
19944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19950 /^X\(\/\/\)[^/].*/{
19963 test -d "$as_dir" && break
19965 test -z "$as_dirs" || eval "mkdir $as_dirs"
19966 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19967 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19968 { (exit 1); exit 1; }; }; }
19972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19975 # A ".." for each directory in $ac_dir_suffix.
19976 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19977 case $ac_top_builddir_sub in
19978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19982 ac_abs_top_builddir=$ac_pwd
19983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19984 # for backward compatibility:
19985 ac_top_builddir=$ac_top_build_prefix
19988 .) # We are building in place.
19990 ac_top_srcdir=$ac_top_builddir_sub
19991 ac_abs_top_srcdir=$ac_pwd ;;
19992 [\\/]* | ?:[\\/]* ) # Absolute name.
19993 ac_srcdir=$srcdir$ac_dir_suffix;
19994 ac_top_srcdir=$srcdir
19995 ac_abs_top_srcdir=$srcdir ;;
19996 *) # Relative name.
19997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19998 ac_top_srcdir=$ac_top_build_prefix$srcdir
19999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20016 cat >>$CONFIG_STATUS <<\_ACEOF
20017 # If the template does not know about datarootdir, expand it.
20018 # FIXME: This hack should be removed a few years after 2.60.
20019 ac_datarootdir_hack=; ac_datarootdir_seen=
20021 case `sed -n '/datarootdir/ {
20030 ' $ac_file_inputs` in
20031 *datarootdir*) ac_datarootdir_seen=yes;;
20032 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20033 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20034 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20036 cat >>$CONFIG_STATUS <<_ACEOF
20037 ac_datarootdir_hack='
20038 s&@datadir@&$datadir&g
20039 s&@docdir@&$docdir&g
20040 s&@infodir@&$infodir&g
20041 s&@localedir@&$localedir&g
20042 s&@mandir@&$mandir&g
20043 s&\\\${datarootdir}&$datarootdir&g' ;;
20047 # Neutralize VPATH when `$srcdir' = `.'.
20048 # Shell code in configure.ac might set extrasub.
20049 # FIXME: do we really want to maintain this feature?
20050 cat >>$CONFIG_STATUS <<_ACEOF
20054 cat >>$CONFIG_STATUS <<\_ACEOF
20056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20057 s&@configure_input@&$configure_input&;t t
20058 s&@top_builddir@&$ac_top_builddir_sub&;t t
20059 s&@srcdir@&$ac_srcdir&;t t
20060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20061 s&@top_srcdir@&$ac_top_srcdir&;t t
20062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20063 s&@builddir@&$ac_builddir&;t t
20064 s&@abs_builddir@&$ac_abs_builddir&;t t
20065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20066 s&@INSTALL@&$ac_INSTALL&;t t
20067 $ac_datarootdir_hack
20068 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
20070 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20073 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20074 which seems to be undefined. Please make sure it is defined." >&5
20075 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20076 which seems to be undefined. Please make sure it is defined." >&2;}
20080 -) cat "$tmp/out"; rm -f "$tmp/out";;
20081 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20090 # Transform confdefs.h into a sed script `conftest.defines', that
20091 # substitutes the proper values into config.h.in to produce config.h.
20092 rm -f conftest.defines conftest.tail
20093 # First, append a space to every undef/define line, to ease matching.
20094 echo 's/$/ /' >conftest.defines
20095 # Then, protect against being on the right side of a sed subst, or in
20096 # an unquoted here document, in config.status. If some macros were
20097 # called several times there might be several #defines for the same
20098 # symbol, which is useless. But do not sort them, since the last
20099 # AC_DEFINE must be honored.
20100 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20101 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20102 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20103 # PARAMS is the parameter list in the macro definition--in most cases, it's
20104 # just an empty string.
20105 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20106 ac_dB='\\)[ (].*,\\1define\\2'
20114 s/^[ ]*#[ ]*define[ ][ ]*//
20119 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20120 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20121 ' >>conftest.defines
20123 # Remove the space that was appended to ease matching.
20124 # Then replace #undef with comments. This is necessary, for
20125 # example, in the case of _POSIX_SOURCE, which is predefined and required
20126 # on some systems where configure will not decide to define it.
20127 # (The regexp can be short, since the line contains either #define or #undef.)
20129 s,^[ #]*u.*,/* & */,' >>conftest.defines
20131 # Break up conftest.defines:
20132 ac_max_sed_lines=50
20134 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20135 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20136 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20138 ac_in='$ac_file_inputs'
20139 ac_out='"$tmp/out1"'
20140 ac_nxt='"$tmp/out2"'
20144 # Write a here document:
20145 cat >>$CONFIG_STATUS <<_ACEOF
20146 # First, check the format of the line:
20147 cat >"\$tmp/defines.sed" <<\\CEOF
20148 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20149 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20153 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20155 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20156 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20157 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20158 grep . conftest.tail >/dev/null || break
20159 rm -f conftest.defines
20160 mv conftest.tail conftest.defines
20162 rm -f conftest.defines conftest.tail
20164 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20165 cat >>$CONFIG_STATUS <<\_ACEOF
20166 if test x"$ac_file" != x-; then
20167 echo "/* $configure_input */" >"$tmp/config.h"
20168 cat "$ac_result" >>"$tmp/config.h"
20169 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20170 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20171 echo "$as_me: $ac_file is unchanged" >&6;}
20174 mv "$tmp/config.h" $ac_file
20177 echo "/* $configure_input */"
20183 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20184 echo "$as_me: executing $ac_file commands" >&6;}
20189 case $ac_file$ac_mode in
20190 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20192 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20194 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20196 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20198 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20199 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20200 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20201 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20202 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20203 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20204 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20205 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20206 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20207 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20208 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20209 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20210 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20211 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20212 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20213 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20219 { (exit 0); exit 0; }
20221 chmod +x $CONFIG_STATUS
20222 ac_clean_files=$ac_clean_files_save
20225 # configure is writing to config.log, and then calls config.status.
20226 # config.status does its own redirection, appending to config.log.
20227 # Unfortunately, on DOS this fails, as config.log is still kept open
20228 # by configure, so config.status won't be able to write to it; its
20229 # output is simply discarded. So we exec the FD to /dev/null,
20230 # effectively closing config.log, so it can be properly (re)opened and
20231 # appended to by config.status. When coming back to configure, we
20232 # need to make the FD available again.
20233 if test "$no_create" != yes; then
20235 ac_config_status_args=
20236 test "$silent" = yes &&
20237 ac_config_status_args="$ac_config_status_args --quiet"
20239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20242 # would make configure fail if this is the last instruction.
20243 $ac_cs_success || { (exit 1); exit 1; }
20247 # CONFIG_SUBDIRS section.
20249 if test "$no_recursion" != yes; then
20251 # Remove --cache-file and --srcdir arguments so they do not pile up.
20252 ac_sub_configure_args=
20254 eval "set x $ac_configure_args"
20258 if test -n "$ac_prev"; then
20263 -cache-file | --cache-file | --cache-fil | --cache-fi \
20264 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20265 ac_prev=cache_file ;;
20266 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20267 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20270 --config-cache | -C)
20272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20282 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20284 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20288 # Always prepend --prefix to ensure using the same prefix
20289 # in subdir configurations.
20290 ac_arg="--prefix=$prefix"
20292 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20294 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20297 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20299 # Do not complain, so a configure script can configure whichever
20300 # parts of a large source tree are present.
20301 test -d "$srcdir/$ac_dir" || continue
20303 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20304 echo "$as_me:$LINENO: $ac_msg" >&5
20308 -*) as_dir=./$as_dir;;
20310 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20314 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20315 *) as_qdir=$as_dir;;
20317 as_dirs="'$as_qdir' $as_dirs"
20318 as_dir=`$as_dirname -- "$as_dir" ||
20319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20320 X"$as_dir" : 'X\(//\)[^/]' \| \
20321 X"$as_dir" : 'X\(//\)$' \| \
20322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20328 /^X\(\/\/\)[^/].*/{
20341 test -d "$as_dir" && break
20343 test -z "$as_dirs" || eval "mkdir $as_dirs"
20344 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20345 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20346 { (exit 1); exit 1; }; }; }
20350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20353 # A ".." for each directory in $ac_dir_suffix.
20354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20355 case $ac_top_builddir_sub in
20356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20360 ac_abs_top_builddir=$ac_pwd
20361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20362 # for backward compatibility:
20363 ac_top_builddir=$ac_top_build_prefix
20366 .) # We are building in place.
20368 ac_top_srcdir=$ac_top_builddir_sub
20369 ac_abs_top_srcdir=$ac_pwd ;;
20370 [\\/]* | ?:[\\/]* ) # Absolute name.
20371 ac_srcdir=$srcdir$ac_dir_suffix;
20372 ac_top_srcdir=$srcdir
20373 ac_abs_top_srcdir=$srcdir ;;
20374 *) # Relative name.
20375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20376 ac_top_srcdir=$ac_top_build_prefix$srcdir
20377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20384 # Check for guested configure; otherwise get Cygnus style configure.
20385 if test -f "$ac_srcdir/configure.gnu"; then
20386 ac_sub_configure=$ac_srcdir/configure.gnu
20387 elif test -f "$ac_srcdir/configure"; then
20388 ac_sub_configure=$ac_srcdir/configure
20389 elif test -f "$ac_srcdir/configure.in"; then
20390 # This should be Cygnus configure.
20391 ac_sub_configure=$ac_aux_dir/configure
20393 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20394 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20398 # The recursion is here.
20399 if test -n "$ac_sub_configure"; then
20400 # Make the cache file name correct relative to the subdirectory.
20401 case $cache_file in
20402 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20403 *) # Relative name.
20404 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20407 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20408 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20409 # The eval makes quoting arguments work.
20410 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20411 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20412 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20413 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20414 { (exit 1); exit 1; }; }