2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5.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.5.0svn'
565 PACKAGE_STRING='LLVM 3.5.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
694 ENABLE_CLANG_REWRITER
699 ENABLE_EXPENSIVE_CHECKS
719 LLVM_ENUM_ASM_PRINTERS
720 LLVM_ENUM_ASM_PARSERS
721 LLVM_ENUM_DISASSEMBLERS
769 HAVE_LINK_VERSION_SCRIPT
772 NO_MISSING_FIELD_INITIALIZERS
773 COVERED_SWITCH_DEFAULT
774 NO_MAYBE_UNINITIALIZED
803 ENABLE_VISIBILITY_INLINES_HIDDEN
810 ac_precious_vars='build_alias
822 ac_subdirs_all='projects/test-suite
825 projects/llvm-poolalloc
829 # Initialize some variables set by options.
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
841 program_transform_name=s,x,x,
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 # Accept the important Cygnus configure options, so we can diagnose typos.
893 case $ac_dashdash$ac_option in
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
915 cache_file=config.cache ;;
917 -datadir | --datadir | --datadi | --datad)
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
929 -disable-* | --disable-*)
930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934 { (exit 1); exit 1; }; }
935 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936 eval enable_$ac_feature=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
970 -help | --help | --hel | --he | -h)
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package| sed 's/-/_/g'`
1152 eval with_$ac_package=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/-/_/g'`
1161 eval with_$ac_package=no ;;
1164 # Obsolete; use --with-x.
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1181 -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183 { (exit 1); exit 1; }; }
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191 { (exit 1); exit 1; }; }
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1196 # FIXME: should be removed in autoconf 3.0.
1197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 { echo "$as_me: error: missing argument to $ac_option" >&2
1209 { (exit 1); exit 1; }; }
1212 # Be sure to have absolute directory names.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1218 eval ac_val=\$$ac_var
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 { echo "$as_me: error: Working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 { echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$0" : 'X\(//\)[^/]' \| \
1268 X"$0" : 'X\(//\)$' \| \
1269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1329 \`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of LLVM 3.5.0svn:";;
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-polly Use polly if available (default is YES)
1403 --enable-libcpp Use libc++ if available (default is NO)
1404 --enable-compiler-version-checks
1405 Check the version of the host compiler (default is
1407 --enable-cxx1y Use c++1y if available (default is NO)
1408 --enable-split-dwarf Use split-dwarf if available (default is NO)
1409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1410 --enable-clang-plugin-support
1411 Enable plugin support in clang (default is YES)
1412 --enable-clang-static-analyzer
1413 Enable building of clang Static Analyzer (default is
1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416 --enable-optimized Compile with optimizations enabled (default is NO)
1417 --enable-profiling Compile with profiling enabled (default is NO)
1418 --enable-assertions Compile with assertion checks enabled (default is
1420 --enable-werror Compile with -Werror enabled (default is NO)
1421 --enable-expensive-checks
1422 Compile with expensive debug checks enabled (default
1424 --enable-debug-runtime Build runtime libs with debug symbols (default is
1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1427 optimization is on and YES if it's off)
1428 --enable-keep-symbols Do not strip installed executables)
1429 --enable-jit Enable Just In Time Compiling (default is YES)
1430 --enable-docs Build documents (default is YES)
1431 --enable-doxygen Build doxygen documentation (default is NO)
1432 --enable-threads Use threads if available (default is YES)
1433 --enable-pthreads Use pthreads if available (default is YES)
1434 --enable-zlib Use zlib for compression/decompression if available
1436 --enable-pic Build LLVM with Position Independent Code (default
1438 --enable-shared Build a shared library and link tools against it
1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1441 Win32 DLL (default is NO)
1442 --enable-timestamps Enable embedding timestamp information in build
1444 --enable-backtraces Enable embedding backtraces on crash (default is
1446 --enable-crash-overrides
1447 Enable crash handling overrides (default is YES)
1448 --enable-targets Build specific host targets: all or
1449 target1,target2,... Valid targets are: host, x86,
1450 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1451 hexagon, xcore, msp430, nvptx, systemz, r600, and
1453 --enable-experimental-targets
1454 Build experimental host targets: disable or
1455 target1,target2,... (default=disable)
1456 --enable-bindings Build specific language bindings:
1457 all,auto,none,{binding-name} (default=auto)
1458 --enable-terminfo Query the terminfo database if available (default is
1460 --enable-libedit Use libedit if available (default is YES)
1461 --enable-libffi Check for the presence of libffi (default is NO)
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-optimize-option Select the compiler options to use for optimized
1468 --with-extra-options Specify additional options to compile LLVM with
1469 --with-extra-ld-options Specify additional options to link LLVM with
1470 --with-ocaml-libdir Specify install location for ocaml bindings (default
1472 --with-clang-srcdir Directory to the out-of-tree Clang source
1473 --with-clang-resource-dir
1474 Relative directory from the Clang binary for
1476 --with-c-include-dirs Colon separated list of directories clang will
1478 --with-gcc-toolchain Directory where gcc is installed.
1479 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1480 --with-binutils-include Specify path to binutils/include/ containing
1481 plugin-api.h file for gold plugin.
1482 --with-bug-report-url Specify the URL where bug reports should be
1483 submitted (default=http://llvm.org/bugs/)
1484 --with-internal-prefix Installation directory for internal files
1485 --with-python path to python
1486 --with-udis86=<path> Use udis86 external x86 disassembler library
1487 --with-oprofile=<prefix>
1488 Tell OProfile >= 0.9.4 how to symbolize JIT output
1489 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1507 Report bugs to <http://llvm.org/bugs/>.
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" || continue
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1535 .) # We are building in place.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1568 LLVM configure 3.5.0svn
1569 generated by GNU Autoconf 2.60
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1576 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1584 It was created by LLVM $as_me 3.5.0svn, which was
1585 generated by GNU Autoconf 2.60. Invocation command line was
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_must_keep_next=false
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 -* ) ac_must_keep_next=true ;;
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1701 # The following way of writing the cache mishandles newlines in values,
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1738 for ac_var in $ac_subst_vars
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1748 if test -n "$ac_subst_files"; then
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1755 for ac_var in $ac_subst_files
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 echo "$ac_var='\''$ac_val'\''"
1766 if test -s confdefs.h; then
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 LLVM_VERSION_MAJOR=3
1939 LLVM_VERSION_MINOR=5
1940 LLVM_VERSION_PATCH=0
1941 LLVM_VERSION_SUFFIX=svn
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1949 cat >>confdefs.h <<_ACEOF
1950 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1954 cat >>confdefs.h <<_ACEOF
1955 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1964 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1973 for ac_dir in autoconf "$srcdir"/autoconf; do
1974 if test -f "$ac_dir/install-sh"; then
1976 ac_install_sh="$ac_aux_dir/install-sh -c"
1978 elif test -f "$ac_dir/install.sh"; then
1980 ac_install_sh="$ac_aux_dir/install.sh -c"
1982 elif test -f "$ac_dir/shtool"; then
1984 ac_install_sh="$ac_aux_dir/shtool install -c"
1988 if test -z "$ac_aux_dir"; then
1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1991 { (exit 1); exit 1; }; }
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004 if test ${srcdir} != "." ; then
2005 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2006 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2007 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2008 { (exit 1); exit 1; }; }
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 if test -n "$ac_tool_prefix"; then
2021 for ac_prog in clang gcc
2023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 if test -n "$CC"; then
2052 { echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6; }
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2060 test -n "$CC" && break
2063 if test -z "$CC"; then
2065 for ac_prog in clang gcc
2067 # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy $ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_ac_ct_CC="$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$ac_ct_CC" && break
2107 if test "x$ac_ct_CC" = x; then
2110 case $cross_compiling:$ac_tool_warned in
2112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet. If you think this
2114 configuration is useful to you, please write to autoconf@gnu.org." >&5
2115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2116 whose name does not start with the host triplet. If you think this
2117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2118 ac_tool_warned=yes ;;
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO: checking for C compiler version" >&5
2133 ac_compiler=`set X $ac_compile; echo $2`
2134 { (ac_try="$ac_compiler --version >&5"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler --version >&5") 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (ac_try="$ac_compiler -v >&5"
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler -v >&5") 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (ac_try="$ac_compiler -V >&5"
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_compiler -V >&5") 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2165 cat >conftest.$ac_ext <<_ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h. */
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2185 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2189 # List of possible output files, starting from the most likely.
2190 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2191 # only as a last resort. b.out is created by i960 compilers.
2192 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2194 # The IRIX 6 linker writes into existing files which may not be
2195 # executable, retaining their permissions. Remove them first so a
2196 # subsequent execution test works.
2198 for ac_file in $ac_files
2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2207 if { (ac_try="$ac_link_default"
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_link_default") 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2219 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2220 # so that the user can short-circuit this test for compilers unknown to
2222 for ac_file in $ac_files
2224 test -f "$ac_file" || continue
2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2229 # We found the default executable, but exeext='' is most
2233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237 # We set ac_cv_exeext here because the later test for it is not
2238 # safe: cross compilers may not add the suffix if given an `-o'
2239 # argument, so we may need to know it at that point already.
2240 # Even if this section looks crufty: it has the advantage of
2247 test "$ac_cv_exeext" = no && ac_cv_exeext=
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257 { (exit 77); exit 77; }; }
2260 ac_exeext=$ac_cv_exeext
2261 { echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6; }
2264 # Check that the compiler produces executables we can run. If not, either
2265 # the compiler is broken, or we cross compile.
2266 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271 if { ac_try='./$ac_file'
2272 { (case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_try") 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2283 if test "$cross_compiling" = maybe; then
2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287 If you meant to cross compile, use \`--host'.
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot run C compiled programs.
2290 If you meant to cross compile, use \`--host'.
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2296 { echo "$as_me:$LINENO: result: yes" >&5
2297 echo "${ECHO_T}yes" >&6; }
2299 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300 ac_clean_files=$ac_clean_files_save
2301 # Check that the compiler produces executables we can run. If not, either
2302 # the compiler is broken, or we cross compile.
2303 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306 echo "${ECHO_T}$cross_compiling" >&6; }
2308 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310 if { (ac_try="$ac_link"
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316 (eval "$ac_link") 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322 # work properly (i.e., refer to `conftest.exe'), while it won't with
2324 for ac_file in conftest.exe conftest conftest.*; do
2325 test -f "$ac_file" || continue
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2341 rm -f conftest$ac_cv_exeext
2342 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2345 rm -f conftest.$ac_ext
2346 EXEEXT=$ac_cv_exeext
2348 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350 if test "${ac_cv_objext+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2368 rm -f conftest.o conftest.obj
2369 if { (ac_try="$ac_compile"
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_compile") 2>&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 for ac_file in conftest.o conftest.obj conftest.*; do
2380 test -f "$ac_file" || continue;
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2391 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394 See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }
2398 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2400 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401 echo "${ECHO_T}$ac_cv_objext" >&6; }
2402 OBJEXT=$ac_cv_objext
2404 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 cat >conftest.$ac_ext <<_ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2427 rm -f conftest.$ac_objext
2428 if { (ac_try="$ac_compile"
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_compile") 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_try") 2>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2475 GCC=`test $ac_compiler_gnu = yes && echo yes`
2476 ac_test_CFLAGS=${CFLAGS+set}
2477 ac_save_CFLAGS=$CFLAGS
2478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_cc_g+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 ac_save_c_werror_flag=$ac_c_werror_flag
2484 ac_c_werror_flag=yes
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2502 rm -f conftest.$ac_objext
2503 if { (ac_try="$ac_compile"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>conftest.er1
2511 grep -v '^ *+' conftest.er1 >conftest.err
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2566 grep -v '^ *+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 ac_c_werror_flag=$ac_save_c_werror_flag
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>conftest.er1
2622 grep -v '^ *+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_try") 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_try") 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 ac_c_werror_flag=$ac_save_c_werror_flag
2664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2666 if test "$ac_test_CFLAGS" = set; then
2667 CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669 if test "$GCC" = yes; then
2675 if test "$GCC" = yes; then
2681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_c89+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 ac_cv_prog_cc_c89=no
2688 cat >conftest.$ac_ext <<_ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2712 s = g (p, va_arg (v,int));
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2718 function prototypes and stuff, but not '\xHH' hex character constants.
2719 These don't provoke an error unfortunately, instead are silently treated
2720 as 'x'. The following induces an error, until -std is added to get
2721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2722 array size at least. It's necessary to write '\x00'==0 to get something
2723 that's true only with -std. */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727 inside strings and character constants. */
2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2731 int test (int i, double x);
2732 struct s1 {int (*f) (int a);};
2733 struct s2 {int (*f) (double a);};
2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2740 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2748 CC="$ac_save_CC $ac_arg"
2749 rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compile") 2>conftest.er1
2758 grep -v '^ *+' conftest.er1 >conftest.err
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2764 { (case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_try") 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_try") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 ac_cv_prog_cc_c89=$ac_arg
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2791 rm -f core conftest.err conftest.$ac_objext
2792 test "x$ac_cv_prog_cc_c89" != "xno" && break
2794 rm -f conftest.$ac_ext
2799 case "x$ac_cv_prog_cc_c89" in
2801 { echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6; } ;;
2804 { echo "$as_me:$LINENO: result: unsupported" >&5
2805 echo "${ECHO_T}unsupported" >&6; } ;;
2807 CC="$CC $ac_cv_prog_cc_c89"
2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820 ac_cpp='$CXXCPP $CPPFLAGS'
2821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2824 if test -z "$CXX"; then
2825 if test -n "$CCC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 for ac_prog in clang++ g++
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_CXX+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$CXX"; then
2839 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 if test -n "$CXX"; then
2860 { echo "$as_me:$LINENO: result: $CXX" >&5
2861 echo "${ECHO_T}$CXX" >&6; }
2863 { echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6; }
2868 test -n "$CXX" && break
2871 if test -z "$CXX"; then
2873 for ac_prog in clang++ g++
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$ac_ct_CXX"; then
2883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_ac_ct_CXX="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2903 if test -n "$ac_ct_CXX"; then
2904 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2905 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2912 test -n "$ac_ct_CXX" && break
2915 if test "x$ac_ct_CXX" = x; then
2918 case $cross_compiling:$ac_tool_warned in
2920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2921 whose name does not start with the host triplet. If you think this
2922 configuration is useful to you, please write to autoconf@gnu.org." >&5
2923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2924 whose name does not start with the host triplet. If you think this
2925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2926 ac_tool_warned=yes ;;
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2936 ac_compiler=`set X $ac_compile; echo $2`
2937 { (ac_try="$ac_compiler --version >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler --version >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (ac_try="$ac_compiler -v >&5"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -v >&5") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957 { (ac_try="$ac_compiler -V >&5"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compiler -V >&5") 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }
2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2969 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2970 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; }; then
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3037 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3039 GXX=`test $ac_compiler_gnu = yes && echo yes`
3040 ac_test_CXXFLAGS=${CXXFLAGS+set}
3041 ac_save_CXXFLAGS=$CXXFLAGS
3042 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3043 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_cxx_g+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3048 ac_cxx_werror_flag=yes
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_cv_prog_cxx_g=yes
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_try") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 ac_cv_prog_cxx_g=yes
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3229 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3230 if test "$ac_test_CXXFLAGS" = set; then
3231 CXXFLAGS=$ac_save_CXXFLAGS
3232 elif test $ac_cv_prog_cxx_g = yes; then
3233 if test "$GXX" = yes; then
3239 if test "$GXX" = yes; then
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3257 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3258 # On Suns, sometimes $CPP names a directory.
3259 if test -n "$CPP" && test -d "$CPP"; then
3262 if test -z "$CPP"; then
3263 if test "${ac_cv_prog_CPP+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 # Double quotes because CPP needs to be expanded
3267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3270 for ac_c_preproc_warn_flag in '' yes
3272 # Use a header file that comes with gcc, so configuring glibc
3273 # with a fresh cross-compiler works.
3274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3275 # <limits.h> exists even on freestanding compilers.
3276 # On the NeXT, cc -E runs the code through the compiler's parser,
3277 # not just through cpp. "Syntax error" is here to catch this case.
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3285 # include <limits.h>
3287 # include <assert.h>
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3313 if test -z "$ac_cpp_err"; then
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Broken: fails on valid input.
3323 rm -f conftest.err conftest.$ac_ext
3325 # OK, works on sane cases. Now check whether nonexistent headers
3326 # can be detected and how.
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #include <ac_nonexistent.h>
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 if test -z "$ac_cpp_err"; then
3358 # Broken: success on invalid input.
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 # Passes both tests.
3369 rm -f conftest.err conftest.$ac_ext
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3386 { echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6; }
3389 for ac_c_preproc_warn_flag in '' yes
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3404 # include <limits.h>
3406 # include <assert.h>
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418 grep -v '^ *+' conftest.er1 >conftest.err
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 if test -z "$ac_cpp_err"; then
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Broken: fails on valid input.
3442 rm -f conftest.err conftest.$ac_ext
3444 # OK, works on sane cases. Now check whether nonexistent headers
3445 # can be detected and how.
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 if test -z "$ac_cpp_err"; then
3477 # Broken: success on invalid input.
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 # Passes both tests.
3488 rm -f conftest.err conftest.$ac_ext
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3496 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details." >&5
3498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." >&2;}
3500 { (exit 1); exit 1; }; }
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 if test "$CXX" = "clang++" ; then
3511 { echo "$as_me:$LINENO: checking whether clang works" >&5
3512 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3514 ac_cpp='$CXXCPP $CPPFLAGS'
3515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3527 #if __has_include (<cxxabi.h>)
3530 #if __has_include (<unwind.h>)
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } &&
3556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_try") 2>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3577 { echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6; }
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3585 { echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6; }
3587 { { 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
3588 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;}
3589 { (exit 1); exit 1; }; }
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3603 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3605 ac_cpp='$CXXCPP $CPPFLAGS'
3606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3610 llvm_cv_cxx_compiler=unknown
3611 cat >conftest.$ac_ext <<_ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3631 grep -v '^ *+' conftest.er1 >conftest.err
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652 (eval "$ac_try") 2>&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 llvm_cv_cxx_compiler=clang
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3681 grep -v '^ *+' conftest.er1 >conftest.err
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } &&
3686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3687 { (case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; } &&
3696 { ac_try='test -s conftest.$ac_objext'
3697 { (case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_try") 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 llvm_cv_cxx_compiler=gcc
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3725 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3729 if test -d ${srcdir}/projects/test-suite ; then
3730 subdirs="$subdirs projects/test-suite"
3734 if test -d ${srcdir}/projects/llvm-test ; then
3735 subdirs="$subdirs projects/llvm-test"
3739 if test -d ${srcdir}/projects/poolalloc ; then
3740 subdirs="$subdirs projects/poolalloc"
3744 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3745 subdirs="$subdirs projects/llvm-poolalloc"
3749 for i in `ls ${srcdir}/projects`
3751 if test -d ${srcdir}/projects/${i} ; then
3753 safecode) subdirs="$subdirs projects/safecode"
3761 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3762 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3768 # Check whether --enable-polly was given.
3769 if test "${enable_polly+set}" = set; then
3770 enableval=$enable_polly;
3775 case "$enableval" in
3780 default) ENABLE_POLLY=1
3782 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3783 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3784 { (exit 1); exit 1; }; } ;;
3788 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3791 subdirs="$subdirs tools/polly"
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800 { (exit 1); exit 1; }; }
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 ac_build_alias=$build_alias
3808 test "x$ac_build_alias" = x &&
3809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x &&
3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813 { (exit 1); exit 1; }; }
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826 { (exit 1); exit 1; }; };;
3829 ac_save_IFS=$IFS; IFS='-'
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test "x$host_alias" = x; then
3848 ac_cv_host=$ac_cv_build
3850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863 { (exit 1); exit 1; }; };;
3866 ac_save_IFS=$IFS; IFS='-'
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3879 { echo "$as_me:$LINENO: checking target system type" >&5
3880 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3881 if test "${ac_cv_target+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 if test "x$target_alias" = x; then
3885 ac_cv_target=$ac_cv_host
3887 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3888 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3889 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3890 { (exit 1); exit 1; }; }
3894 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3895 echo "${ECHO_T}$ac_cv_target" >&6; }
3896 case $ac_cv_target in
3898 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3899 echo "$as_me: error: invalid value of canonical target" >&2;}
3900 { (exit 1); exit 1; }; };;
3902 target=$ac_cv_target
3903 ac_save_IFS=$IFS; IFS='-'
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3913 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3916 # The aliases save the names the user supplied, while $host etc.
3917 # will get canonicalized.
3918 test -n "$target_alias" &&
3919 test "$program_prefix$program_suffix$program_transform_name" = \
3921 program_prefix=${target_alias}-
3923 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3924 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3925 if test "${llvm_cv_os_type+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 llvm_cv_link_all_option="-Wl,--whole-archive"
3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932 llvm_cv_os_type="AIX"
3933 llvm_cv_platform_type="Unix" ;;
3935 llvm_cv_link_all_option="-Wl,--whole-archive"
3936 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937 llvm_cv_os_type="IRIX"
3938 llvm_cv_platform_type="Unix" ;;
3940 llvm_cv_link_all_option="-Wl,--whole-archive"
3941 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942 llvm_cv_os_type="Cygwin"
3943 llvm_cv_platform_type="Unix" ;;
3945 llvm_cv_link_all_option="-Wl,-all_load"
3946 llvm_cv_no_link_all_option="-Wl,-noall_load"
3947 llvm_cv_os_type="Darwin"
3948 llvm_cv_platform_type="Unix" ;;
3950 llvm_cv_link_all_option="-Wl,-all_load"
3951 llvm_cv_no_link_all_option="-Wl,-noall_load"
3952 llvm_cv_os_type="Minix"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="FreeBSD"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="GNU/kFreeBSD"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="OpenBSD"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="NetBSD"
3973 llvm_cv_platform_type="Unix" ;;
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="DragonFly"
3978 llvm_cv_platform_type="Unix" ;;
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="HP-UX"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="Interix"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="Linux"
3993 llvm_cv_platform_type="Unix" ;;
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="GNU"
3998 llvm_cv_platform_type="Unix" ;;
4000 llvm_cv_link_all_option="-Wl,-z,allextract"
4001 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4002 llvm_cv_os_type="SunOS"
4003 llvm_cv_platform_type="Unix" ;;
4005 llvm_cv_link_all_option="-Wl,-z,allextract"
4006 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4007 llvm_cv_os_type="AuroraUX"
4008 llvm_cv_platform_type="Unix" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Win32"
4013 llvm_cv_platform_type="Win32" ;;
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="MingW"
4018 llvm_cv_platform_type="Win32" ;;
4020 llvm_cv_link_all_option="-Wl,--whole-archive"
4021 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022 llvm_cv_os_type="Haiku"
4023 llvm_cv_platform_type="Unix" ;;
4025 llvm_cv_link_all_option="-Wl,--whole-archive"
4026 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4027 llvm_cv_os_type="Freestanding"
4028 llvm_cv_platform_type="Unix" ;;
4030 llvm_cv_link_all_option="-Wl,--whole-archive"
4031 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032 llvm_cv_os_type="Freestanding"
4033 llvm_cv_platform_type="Unix" ;;
4035 llvm_cv_link_all_option=""
4036 llvm_cv_no_link_all_option=""
4037 llvm_cv_os_type="Unknown"
4038 llvm_cv_platform_type="Unknown" ;;
4041 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4042 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4044 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4045 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4046 if test "${llvm_cv_target_os_type+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 llvm_cv_target_os_type="AIX" ;;
4053 llvm_cv_target_os_type="IRIX" ;;
4055 llvm_cv_target_os_type="Cygwin" ;;
4057 llvm_cv_target_os_type="Darwin" ;;
4059 llvm_cv_target_os_type="Minix" ;;
4061 llvm_cv_target_os_type="FreeBSD" ;;
4063 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4065 llvm_cv_target_os_type="OpenBSD" ;;
4067 llvm_cv_target_os_type="NetBSD" ;;
4069 llvm_cv_target_os_type="DragonFly" ;;
4071 llvm_cv_target_os_type="HP-UX" ;;
4073 llvm_cv_target_os_type="Interix" ;;
4075 llvm_cv_target_os_type="Linux" ;;
4077 llvm_cv_target_os_type="GNU" ;;
4079 llvm_cv_target_os_type="SunOS" ;;
4081 llvm_cv_target_os_type="AuroraUX" ;;
4083 llvm_cv_target_os_type="Win32" ;;
4085 llvm_cv_target_os_type="MingW" ;;
4087 llvm_cv_target_os_type="Haiku" ;;
4089 llvm_cv_target_os_type="RTEMS" ;;
4091 llvm_cv_target_os_type="NativeClient" ;;
4093 llvm_cv_target_os_type="Freestanding" ;;
4095 llvm_cv_target_os_type="Unknown" ;;
4098 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4099 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4101 if test "$llvm_cv_os_type" = "Unknown" ; then
4102 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4103 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4104 { (exit 1); exit 1; }; }
4109 HOST_OS=$llvm_cv_os_type
4111 TARGET_OS=$llvm_cv_target_os_type
4114 LINKALL=$llvm_cv_link_all_option
4116 NOLINKALL=$llvm_cv_no_link_all_option
4119 case $llvm_cv_platform_type in
4122 cat >>confdefs.h <<\_ACEOF
4123 #define LLVM_ON_UNIX 1
4133 cat >>confdefs.h <<\_ACEOF
4134 #define LLVM_ON_WIN32 1
4144 { echo "$as_me:$LINENO: checking target architecture" >&5
4145 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4146 if test "${llvm_cv_target_arch+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 i?86-*) llvm_cv_target_arch="x86" ;;
4151 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4152 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4153 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4154 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4155 arm*-*) llvm_cv_target_arch="ARM" ;;
4156 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4157 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4158 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4159 xcore-*) llvm_cv_target_arch="XCore" ;;
4160 msp430-*) llvm_cv_target_arch="MSP430" ;;
4161 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4162 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4163 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4164 *) llvm_cv_target_arch="Unknown" ;;
4167 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4168 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4170 if test "$llvm_cv_target_arch" = "Unknown" ; then
4171 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4172 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4175 case "$llvm_cv_target_arch" in
4176 x86) LLVM_NATIVE_ARCH="X86" ;;
4177 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4178 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4181 ARCH=$llvm_cv_target_arch
4183 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4187 i?86-*) host_arch="x86" ;;
4188 amd64-* | x86_64-*) host_arch="x86_64" ;;
4189 sparc*-*) host_arch="Sparc" ;;
4190 powerpc*-*) host_arch="PowerPC" ;;
4191 arm64*-*) host_arch="AArch64" ;;
4192 arm*-*) host_arch="ARM" ;;
4193 aarch64*-*) host_arch="AArch64" ;;
4194 mips-* | mips64-*) host_arch="Mips" ;;
4195 mipsel-* | mips64el-*) host_arch="Mips" ;;
4196 xcore-*) host_arch="XCore" ;;
4197 msp430-*) host_arch="MSP430" ;;
4198 hexagon-*) host_arch="Hexagon" ;;
4199 s390x-*) host_arch="SystemZ" ;;
4200 *) host_arch="Unknown" ;;
4203 if test "$host_arch" = "Unknown" ; then
4204 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4205 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4208 HOST_ARCH=$host_arch
4211 if test "$cross_compiling" = yes; then
4212 LLVM_CROSS_COMPILING=1
4215 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4216 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4217 if test "${ac_cv_build_exeext+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4221 ac_cv_build_exeext=.exe
4223 ac_build_prefix=${build_alias}-
4225 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4226 set dummy ${ac_build_prefix}gcc; ac_word=$2
4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test -n "$BUILD_CC"; then
4233 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 BUILD_CC=$ac_cv_prog_BUILD_CC
4253 if test -n "$BUILD_CC"; then
4254 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4255 echo "${ECHO_T}$BUILD_CC" >&6; }
4257 { echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6; }
4262 if test -z "$BUILD_CC"; then
4263 # Extract the first word of "gcc", so it can be a program name with args.
4264 set dummy gcc; ac_word=$2
4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 if test -n "$BUILD_CC"; then
4271 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_BUILD_CC="gcc"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 BUILD_CC=$ac_cv_prog_BUILD_CC
4291 if test -n "$BUILD_CC"; then
4292 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4293 echo "${ECHO_T}$BUILD_CC" >&6; }
4295 { echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6; }
4300 if test -z "$BUILD_CC"; then
4301 # Extract the first word of "cc", so it can be a program name with args.
4302 set dummy cc; ac_word=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$BUILD_CC"; then
4309 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4320 ac_prog_rejected=yes
4323 ac_cv_prog_BUILD_CC="cc"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 if test $ac_prog_rejected = yes; then
4332 # We found a bogon in the path, so make sure we never use it.
4333 set dummy $ac_cv_prog_BUILD_CC
4335 if test $# != 0; then
4336 # We chose a different compiler from the bogus one.
4337 # However, it has the same basename, so the bogon will be chosen
4338 # first if we set BUILD_CC to just the basename; use the full file name.
4340 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4345 BUILD_CC=$ac_cv_prog_BUILD_CC
4346 if test -n "$BUILD_CC"; then
4347 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4348 echo "${ECHO_T}$BUILD_CC" >&6; }
4350 { echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6; }
4357 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4358 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4359 { (exit 1); exit 1; }; }
4360 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4362 echo 'int main () { return 0; }' > conftest.$ac_ext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4365 (eval $ac_build_link) 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; then
4369 for file in conftest.*; do
4371 *.c | *.o | *.obj | *.dSYM) ;;
4372 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4376 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4377 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4378 { (exit 1); exit 1; }; }
4381 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4386 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4387 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4388 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4389 ac_build_exeext=$BUILD_EXEEXT
4391 ac_build_prefix=${build_alias}-
4392 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4393 set dummy ${ac_build_prefix}g++; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$BUILD_CXX"; then
4400 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4420 if test -n "$BUILD_CXX"; then
4421 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4422 echo "${ECHO_T}$BUILD_CXX" >&6; }
4424 { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4429 if test -z "$BUILD_CXX"; then
4430 # Extract the first word of "g++", so it can be a program name with args.
4431 set dummy g++; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$BUILD_CXX"; then
4438 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_BUILD_CXX="g++"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4458 if test -n "$BUILD_CXX"; then
4459 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4460 echo "${ECHO_T}$BUILD_CXX" >&6; }
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4467 if test -z "$BUILD_CXX"; then
4468 # Extract the first word of "c++", so it can be a program name with args.
4469 set dummy c++; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$BUILD_CXX"; then
4476 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4487 ac_prog_rejected=yes
4490 ac_cv_prog_BUILD_CXX="c++"
4491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 if test $ac_prog_rejected = yes; then
4499 # We found a bogon in the path, so make sure we never use it.
4500 set dummy $ac_cv_prog_BUILD_CXX
4502 if test $# != 0; then
4503 # We chose a different compiler from the bogus one.
4504 # However, it has the same basename, so the bogon will be chosen
4505 # first if we set BUILD_CXX to just the basename; use the full file name.
4507 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4512 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4513 if test -n "$BUILD_CXX"; then
4514 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4515 echo "${ECHO_T}$BUILD_CXX" >&6; }
4517 { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4525 LLVM_CROSS_COMPILING=0
4529 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4540 # Check whether --enable-libcpp was given.
4541 if test "${enable_libcpp+set}" = set; then
4542 enableval=$enable_libcpp;
4547 case "$enableval" in
4548 yes) ENABLE_LIBCPP=1
4552 default) ENABLE_LIBCPP=0
4554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4555 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4556 { (exit 1); exit 1; }; } ;;
4559 # Check whether --enable-compiler-version-checks was given.
4560 if test "${enable_compiler_version_checks+set}" = set; then
4561 enableval=$enable_compiler_version_checks;
4566 case "$enableval" in
4571 ac_cpp='$CXXCPP $CPPFLAGS'
4572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4576 case "$llvm_cv_cxx_compiler" in
4578 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4579 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4580 cat >conftest.$ac_ext <<_ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4587 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4588 #error This version of Clang is too old to build LLVM
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_compile") 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_try") 2>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 { echo "$as_me:$LINENO: result: yes" >&5
4627 echo "${ECHO_T}yes" >&6; }
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4634 { { echo "$as_me:$LINENO: error:
4635 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4636 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4637 bypass these sanity checks." >&5
4638 echo "$as_me: error:
4639 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4640 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4641 bypass these sanity checks." >&2;}
4642 { (exit 1); exit 1; }; }
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 if test "$ENABLE_LIBCPP" -eq 0 ; then
4648 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4649 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4650 llvm_cv_old_cxxflags="$CXXFLAGS"
4651 CXXFLAGS="$CXXFLAGS -std=c++0x"
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4660 std::atomic<float> x(0.0f);
4661 int main() { return (float)x; }
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (ac_try="$ac_link"
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_link") 2>conftest.er1
4673 grep -v '^ *+' conftest.er1 >conftest.err
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4679 { (case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_try") 2>&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try='test -s conftest$ac_exeext'
4689 { (case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_try") 2>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 { echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6; }
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4706 { { echo "$as_me:$LINENO: error:
4707 We detected a missing feature in the standard C++ library that was known to be
4708 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4709 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4710 than 4.7. You will need to update your system and ensure Clang uses the newer
4713 If this error is incorrect or you need to force things to work, you may pass
4714 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4715 echo "$as_me: error:
4716 We detected a missing feature in the standard C++ library that was known to be
4717 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4718 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4719 than 4.7. You will need to update your system and ensure Clang uses the newer
4722 If this error is incorrect or you need to force things to work, you may pass
4723 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4724 { (exit 1); exit 1; }; }
4727 rm -f core conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4729 CXXFLAGS="$llvm_cv_old_cxxflags"
4733 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4734 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4735 cat >conftest.$ac_ext <<_ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4742 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4743 #error This version of GCC is too old to build LLVM
4747 rm -f conftest.$ac_objext
4748 if { (ac_try="$ac_compile"
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_compile") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4762 { (case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_try") 2>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_try") 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 { echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6; }
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 { echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6; }
4789 { { echo "$as_me:$LINENO: error:
4790 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4791 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4792 bypass these sanity checks." >&5
4793 echo "$as_me: error:
4794 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4795 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4796 bypass these sanity checks." >&2;}
4797 { (exit 1); exit 1; }; }
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_cpp='$CPP $CPPFLAGS'
4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4814 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4815 { (exit 1); exit 1; }; }
4819 # Check whether --enable-cxx1y was given.
4820 if test "${enable_cxx1y+set}" = set; then
4821 enableval=$enable_cxx1y;
4826 case "$enableval" in
4831 default) ENABLE_CXX1Y=0
4833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4835 { (exit 1); exit 1; }; } ;;
4838 # Check whether --enable-split-dwarf was given.
4839 if test "${enable_split_dwarf+set}" = set; then
4840 enableval=$enable_split_dwarf;
4845 case "$enableval" in
4846 yes) ENABLE_SPLIT_DWARF=1
4848 no) ENABLE_SPLIT_DWARF=0
4850 default) ENABLE_SPLIT_DWARF=0
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4858 # Check whether --enable-clang-arcmt was given.
4859 if test "${enable_clang_arcmt+set}" = set; then
4860 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4865 case "$enableval" in
4866 yes) ENABLE_CLANG_ARCMT=1
4868 no) ENABLE_CLANG_ARCMT=0
4870 default) ENABLE_CLANG_ARCMT=1
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4877 clang_plugin_support="yes"
4878 # Check whether --enable-clang-plugin-support was given.
4879 if test "${enable_clang_plugin_support+set}" = set; then
4880 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4885 case "$enableval" in
4886 yes) CLANG_PLUGIN_SUPPORT=1
4888 no) CLANG_PLUGIN_SUPPORT=0
4890 default) CLANG_PLUGIN_SUPPORT=1
4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4897 clang_static_analyzer="yes"
4898 # Check whether --enable-clang-static-analyzer was given.
4899 if test "${enable_clang_static_analyzer+set}" = set; then
4900 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4905 case "$enableval" in
4906 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4909 if test ${clang_arcmt} != "no" ; then
4910 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4911 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4912 { (exit 1); exit 1; }; }
4914 ENABLE_CLANG_STATIC_ANALYZER=0
4917 default) ENABLE_CLANG_STATIC_ANALYZER=1
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4924 # Check whether --enable-clang-rewriter was given.
4925 if test "${enable_clang_rewriter+set}" = set; then
4926 enableval=$enable_clang_rewriter;
4931 case "$enableval" in
4932 yes) ENABLE_CLANG_REWRITER=1
4935 if test ${clang_arcmt} != "no" ; then
4936 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4937 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4938 { (exit 1); exit 1; }; }
4940 if test ${clang_static_analyzer} != "no" ; then
4941 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4942 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4943 { (exit 1); exit 1; }; }
4945 ENABLE_CLANG_REWRITER=0
4948 default) ENABLE_CLANG_REWRITER=1
4950 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4951 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4952 { (exit 1); exit 1; }; } ;;
4955 # Check whether --enable-optimized was given.
4956 if test "${enable_optimized+set}" = set; then
4957 enableval=$enable_optimized;
4962 if test ${enableval} = "no" ; then
4966 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4970 # Check whether --enable-profiling was given.
4971 if test "${enable_profiling+set}" = set; then
4972 enableval=$enable_profiling;
4977 if test ${enableval} = "no" ; then
4981 ENABLE_PROFILING=ENABLE_PROFILING=1
4985 # Check whether --enable-assertions was given.
4986 if test "${enable_assertions+set}" = set; then
4987 enableval=$enable_assertions;
4992 if test ${enableval} = "yes" ; then
4996 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5000 # Check whether --enable-werror was given.
5001 if test "${enable_werror+set}" = set; then
5002 enableval=$enable_werror;
5007 case "$enableval" in
5008 yes) ENABLE_WERROR=1
5012 default) ENABLE_WERROR=0
5014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5015 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5016 { (exit 1); exit 1; }; } ;;
5019 # Check whether --enable-expensive-checks was given.
5020 if test "${enable_expensive_checks+set}" = set; then
5021 enableval=$enable_expensive_checks;
5026 if test ${enableval} = "yes" ; then
5027 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5029 EXPENSIVE_CHECKS=yes
5032 ENABLE_EXPENSIVE_CHECKS=
5038 # Check whether --enable-debug-runtime was given.
5039 if test "${enable_debug_runtime+set}" = set; then
5040 enableval=$enable_debug_runtime;
5045 if test ${enableval} = "no" ; then
5049 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5053 # Check whether --enable-debug-symbols was given.
5054 if test "${enable_debug_symbols+set}" = set; then
5055 enableval=$enable_debug_symbols;
5060 if test ${enableval} = "no" ; then
5064 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5068 # Check whether --enable-keep-symbols was given.
5069 if test "${enable_keep_symbols+set}" = set; then
5070 enableval=$enable_keep_symbols;
5075 if test ${enableval} = "no" ; then
5079 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085 enableval=$enable_jit;
5090 if test ${enableval} = "no"
5095 case "$llvm_cv_target_arch" in
5096 x86) TARGET_HAS_JIT=1
5098 Sparc) TARGET_HAS_JIT=0
5100 PowerPC) TARGET_HAS_JIT=1
5102 x86_64) TARGET_HAS_JIT=1
5104 ARM) TARGET_HAS_JIT=1
5106 Mips) TARGET_HAS_JIT=1
5108 XCore) TARGET_HAS_JIT=0
5110 MSP430) TARGET_HAS_JIT=0
5112 Hexagon) TARGET_HAS_JIT=0
5114 NVPTX) TARGET_HAS_JIT=0
5116 SystemZ) TARGET_HAS_JIT=1
5123 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5124 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129 enableval=$enable_docs;
5134 case "$enableval" in
5139 default) ENABLE_DOCS=1
5141 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148 enableval=$enable_doxygen;
5153 case "$enableval" in
5154 yes) ENABLE_DOXYGEN=1
5156 no) ENABLE_DOXYGEN=0
5158 default) ENABLE_DOXYGEN=0
5160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162 { (exit 1); exit 1; }; } ;;
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167 enableval=$enable_threads;
5172 case "$enableval" in
5173 yes) LLVM_ENABLE_THREADS=1
5175 no) LLVM_ENABLE_THREADS=0
5177 default) LLVM_ENABLE_THREADS=1
5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
5184 cat >>confdefs.h <<_ACEOF
5185 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191 enableval=$enable_pthreads;
5196 case "$enableval" in
5197 yes) ENABLE_PTHREADS=1
5199 no) ENABLE_PTHREADS=0
5201 default) ENABLE_PTHREADS=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 # Check whether --enable-zlib was given.
5209 if test "${enable_zlib+set}" = set; then
5210 enableval=$enable_zlib;
5215 case "$enableval" in
5216 yes) LLVM_ENABLE_ZLIB=1
5218 no) LLVM_ENABLE_ZLIB=0
5220 default) LLVM_ENABLE_ZLIB=1
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 cat >>confdefs.h <<_ACEOF
5228 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5232 # Check whether --enable-pic was given.
5233 if test "${enable_pic+set}" = set; then
5234 enableval=$enable_pic;
5239 case "$enableval" in
5244 default) ENABLE_PIC=1
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5251 cat >>confdefs.h <<_ACEOF
5252 #define ENABLE_PIC $ENABLE_PIC
5256 # Check whether --enable-shared was given.
5257 if test "${enable_shared+set}" = set; then
5258 enableval=$enable_shared;
5263 case "$enableval" in
5264 yes) ENABLE_SHARED=1
5268 default) ENABLE_SHARED=0
5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
5275 # Check whether --enable-embed-stdcxx was given.
5276 if test "${enable_embed_stdcxx+set}" = set; then
5277 enableval=$enable_embed_stdcxx;
5282 case "$enableval" in
5283 yes) ENABLE_EMBED_STDCXX=1
5285 no) ENABLE_EMBED_STDCXX=0
5287 default) ENABLE_EMBED_STDCXX=0
5289 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5290 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5291 { (exit 1); exit 1; }; } ;;
5294 # Check whether --enable-timestamps was given.
5295 if test "${enable_timestamps+set}" = set; then
5296 enableval=$enable_timestamps;
5301 case "$enableval" in
5302 yes) ENABLE_TIMESTAMPS=1
5304 no) ENABLE_TIMESTAMPS=0
5306 default) ENABLE_TIMESTAMPS=1
5308 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5309 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5310 { (exit 1); exit 1; }; } ;;
5313 cat >>confdefs.h <<_ACEOF
5314 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5318 # Check whether --enable-backtraces was given.
5319 if test "${enable_backtraces+set}" = set; then
5320 enableval=$enable_backtraces; case "$enableval" in
5321 yes) llvm_cv_enable_backtraces="yes" ;;
5322 no) llvm_cv_enable_backtraces="no" ;;
5323 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5324 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5325 { (exit 1); exit 1; }; } ;;
5328 llvm_cv_enable_backtraces="yes"
5331 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5333 cat >>confdefs.h <<\_ACEOF
5334 #define ENABLE_BACKTRACES 1
5339 # Check whether --enable-crash-overrides was given.
5340 if test "${enable_crash_overrides+set}" = set; then
5341 enableval=$enable_crash_overrides; case "$enableval" in
5342 yes) llvm_cv_enable_crash_overrides="yes" ;;
5343 no) llvm_cv_enable_crash_overrides="no" ;;
5344 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5345 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5346 { (exit 1); exit 1; }; } ;;
5349 llvm_cv_enable_crash_overrides="yes"
5352 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5354 cat >>confdefs.h <<\_ACEOF
5355 #define ENABLE_CRASH_OVERRIDES 1
5360 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5361 ALL_TARGETS=$ALL_TARGETS
5365 # Check whether --enable-targets was given.
5366 if test "${enable_targets+set}" = set; then
5367 enableval=$enable_targets;
5372 if test "$enableval" = host-only ; then
5375 case "$enableval" in
5376 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5377 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5379 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5380 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5381 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5382 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5383 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5384 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5385 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5386 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5387 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5388 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5389 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5390 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5391 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5392 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5393 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5394 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5395 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5396 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5397 host) case "$llvm_cv_target_arch" in
5398 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5399 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5400 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5401 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5402 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5403 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5404 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5405 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5406 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5407 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5408 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5409 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5410 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5411 echo "$as_me: error: Can not set target to build" >&2;}
5412 { (exit 1); exit 1; }; } ;;
5414 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5415 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5416 { (exit 1); exit 1; }; } ;;
5422 # Check whether --enable-experimental-targets was given.
5423 if test "${enable_experimental_targets+set}" = set; then
5424 enableval=$enable_experimental_targets;
5430 if test ${enableval} != "disable"
5432 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5435 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5438 for a_target in $TARGETS_TO_BUILD; do
5439 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5445 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5446 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5447 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5448 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5449 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5450 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5452 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5453 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5456 cat >>confdefs.h <<_ACEOF
5457 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5461 cat >>confdefs.h <<_ACEOF
5462 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5466 cat >>confdefs.h <<_ACEOF
5467 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5471 cat >>confdefs.h <<_ACEOF
5472 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5475 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5477 cat >>confdefs.h <<_ACEOF
5478 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5482 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5484 cat >>confdefs.h <<_ACEOF
5485 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5492 LLVM_ENUM_TARGETS=""
5493 LLVM_ENUM_ASM_PRINTERS=""
5494 LLVM_ENUM_ASM_PARSERS=""
5495 LLVM_ENUM_DISASSEMBLERS=""
5496 for target_to_build in $TARGETS_TO_BUILD; do
5497 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5498 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5499 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5501 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5502 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5504 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5505 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5514 # Check whether --with-optimize-option was given.
5515 if test "${with_optimize_option+set}" = set; then
5516 withval=$with_optimize_option;
5521 { echo "$as_me:$LINENO: checking optimization flags" >&5
5522 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5525 case "$llvm_cv_os_type" in
5526 FreeBSD) optimize_option=-O2 ;;
5527 MingW) optimize_option=-O2 ;;
5528 *) optimize_option=-O3 ;;
5530 *) optimize_option="$withval" ;;
5532 OPTIMIZE_OPTION=$optimize_option
5534 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5535 echo "${ECHO_T}$optimize_option" >&6; }
5538 # Check whether --with-extra-options was given.
5539 if test "${with_extra_options+set}" = set; then
5540 withval=$with_extra_options;
5546 default) EXTRA_OPTIONS= ;;
5547 *) EXTRA_OPTIONS=$withval ;;
5549 EXTRA_OPTIONS=$EXTRA_OPTIONS
5553 # Check whether --with-extra-ld-options was given.
5554 if test "${with_extra_ld_options+set}" = set; then
5555 withval=$with_extra_ld_options;
5561 default) EXTRA_LD_OPTIONS= ;;
5562 *) EXTRA_LD_OPTIONS=$withval ;;
5564 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5567 # Check whether --enable-bindings was given.
5568 if test "${enable_bindings+set}" = set; then
5569 enableval=$enable_bindings;
5574 BINDINGS_TO_BUILD=""
5575 case "$enableval" in
5576 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5577 all ) BINDINGS_TO_BUILD="ocaml" ;;
5578 none | no) BINDINGS_TO_BUILD="" ;;
5579 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5580 case "$a_binding" in
5581 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5582 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5583 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5584 { (exit 1); exit 1; }; } ;;
5591 # Check whether --with-ocaml-libdir was given.
5592 if test "${with_ocaml_libdir+set}" = set; then
5593 withval=$with_ocaml_libdir;
5599 auto) with_ocaml_libdir="$withval" ;;
5600 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5601 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5602 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5603 { (exit 1); exit 1; }; } ;;
5607 # Check whether --with-clang-srcdir was given.
5608 if test "${with_clang_srcdir+set}" = set; then
5609 withval=$with_clang_srcdir;
5615 -) clang_src_root="" ;;
5616 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5617 *) clang_src_root="$ac_pwd/$withval" ;;
5619 CLANG_SRC_ROOT=$clang_src_root
5623 # Check whether --with-clang-resource-dir was given.
5624 if test "${with_clang_resource_dir+set}" = set; then
5625 withval=$with_clang_resource_dir;
5631 cat >>confdefs.h <<_ACEOF
5632 #define CLANG_RESOURCE_DIR "$withval"
5637 # Check whether --with-c-include-dirs was given.
5638 if test "${with_c_include_dirs+set}" = set; then
5639 withval=$with_c_include_dirs;
5645 cat >>confdefs.h <<_ACEOF
5646 #define C_INCLUDE_DIRS "$withval"
5650 # Clang normally uses the system c++ headers and libraries. With this option,
5651 # clang will use the ones provided by a gcc installation instead. This option should
5652 # be passed the same value that was used with --prefix when configuring gcc.
5654 # Check whether --with-gcc-toolchain was given.
5655 if test "${with_gcc_toolchain+set}" = set; then
5656 withval=$with_gcc_toolchain;
5662 cat >>confdefs.h <<_ACEOF
5663 #define GCC_INSTALL_PREFIX "$withval"
5668 # Check whether --with-default-sysroot was given.
5669 if test "${with_default_sysroot+set}" = set; then
5670 withval=$with_default_sysroot;
5676 cat >>confdefs.h <<_ACEOF
5677 #define DEFAULT_SYSROOT "$withval"
5682 # Check whether --with-binutils-include was given.
5683 if test "${with_binutils_include+set}" = set; then
5684 withval=$with_binutils_include;
5690 default) WITH_BINUTILS_INCDIR=default ;;
5691 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5692 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5693 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5694 { (exit 1); exit 1; }; } ;;
5696 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5697 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5699 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5700 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5701 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5702 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5703 { (exit 1); exit 1; }; };
5708 # Check whether --with-bug-report-url was given.
5709 if test "${with_bug_report_url+set}" = set; then
5710 withval=$with_bug_report_url;
5712 withval="http://llvm.org/bugs/"
5716 cat >>confdefs.h <<_ACEOF
5717 #define BUG_REPORT_URL "$withval"
5721 # Check whether --enable-terminfo was given.
5722 if test "${enable_terminfo+set}" = set; then
5723 enableval=$enable_terminfo; case "$enableval" in
5724 yes) llvm_cv_enable_terminfo="yes" ;;
5725 no) llvm_cv_enable_terminfo="no" ;;
5726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5727 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5728 { (exit 1); exit 1; }; } ;;
5731 llvm_cv_enable_terminfo="yes"
5734 case "$llvm_cv_enable_terminfo" in
5735 yes) ENABLE_TERMINFO=1
5737 no) ENABLE_TERMINFO=0
5741 # Check whether --enable-libedit was given.
5742 if test "${enable_libedit+set}" = set; then
5743 enableval=$enable_libedit; case "$enableval" in
5744 yes) llvm_cv_enable_libedit="yes" ;;
5745 no) llvm_cv_enable_libedit="no" ;;
5746 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5747 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5748 { (exit 1); exit 1; }; } ;;
5751 llvm_cv_enable_libedit="yes"
5755 # Check whether --enable-libffi was given.
5756 if test "${enable_libffi+set}" = set; then
5757 enableval=$enable_libffi; case "$enableval" in
5758 yes) llvm_cv_enable_libffi="yes" ;;
5759 no) llvm_cv_enable_libffi="no" ;;
5760 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5761 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5762 { (exit 1); exit 1; }; } ;;
5765 llvm_cv_enable_libffi=no
5770 # Check whether --with-internal-prefix was given.
5771 if test "${with_internal_prefix+set}" = set; then
5772 withval=$with_internal_prefix;
5777 INTERNAL_PREFIX=$withval
5781 { echo "$as_me:$LINENO: checking for GNU make" >&5
5782 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5783 if test "${llvm_cv_gnu_make_command+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 llvm_cv_gnu_make_command=''
5787 for a in "$MAKE" make gmake gnumake ; do
5788 if test -z "$a" ; then continue ; fi ;
5789 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5791 llvm_cv_gnu_make_command=$a ;
5796 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5797 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5798 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5802 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5803 echo "${ECHO_T}\"Not found\"" >&6; };
5807 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5808 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5810 if test "$LN_S" = "ln -s"; then
5811 { echo "$as_me:$LINENO: result: yes" >&5
5812 echo "${ECHO_T}yes" >&6; }
5814 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5815 echo "${ECHO_T}no, using $LN_S" >&6; }
5818 # Extract the first word of "nm", so it can be a program name with args.
5819 set dummy nm; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_path_NM+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5850 if test -n "$NM"; then
5851 { echo "$as_me:$LINENO: result: $NM" >&5
5852 echo "${ECHO_T}$NM" >&6; }
5854 { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5859 # Extract the first word of "cmp", so it can be a program name with args.
5860 set dummy cmp; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_CMP+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5891 if test -n "$CMP"; then
5892 { echo "$as_me:$LINENO: result: $CMP" >&5
5893 echo "${ECHO_T}$CMP" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 # Extract the first word of "cp", so it can be a program name with args.
5901 set dummy cp; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_CP+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5932 if test -n "$CP"; then
5933 { echo "$as_me:$LINENO: result: $CP" >&5
5934 echo "${ECHO_T}$CP" >&6; }
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5941 # Extract the first word of "date", so it can be a program name with args.
5942 set dummy date; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_path_DATE+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5972 DATE=$ac_cv_path_DATE
5973 if test -n "$DATE"; then
5974 { echo "$as_me:$LINENO: result: $DATE" >&5
5975 echo "${ECHO_T}$DATE" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5982 # Extract the first word of "find", so it can be a program name with args.
5983 set dummy find; ac_word=$2
5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986 if test "${ac_cv_path_FIND+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6013 FIND=$ac_cv_path_FIND
6014 if test -n "$FIND"; then
6015 { echo "$as_me:$LINENO: result: $FIND" >&5
6016 echo "${ECHO_T}$FIND" >&6; }
6018 { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6023 # Extract the first word of "grep", so it can be a program name with args.
6024 set dummy grep; ac_word=$2
6025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027 if test "${ac_cv_path_GREP+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6054 GREP=$ac_cv_path_GREP
6055 if test -n "$GREP"; then
6056 { echo "$as_me:$LINENO: result: $GREP" >&5
6057 echo "${ECHO_T}$GREP" >&6; }
6059 { echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6; }
6064 # Extract the first word of "mkdir", so it can be a program name with args.
6065 set dummy mkdir; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_path_MKDIR+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6095 MKDIR=$ac_cv_path_MKDIR
6096 if test -n "$MKDIR"; then
6097 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6098 echo "${ECHO_T}$MKDIR" >&6; }
6100 { echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6; }
6105 # Extract the first word of "mv", so it can be a program name with args.
6106 set dummy mv; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_MV+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6137 if test -n "$MV"; then
6138 { echo "$as_me:$LINENO: result: $MV" >&5
6139 echo "${ECHO_T}$MV" >&6; }
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_RANLIB+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177 echo "${ECHO_T}$RANLIB" >&6; }
6179 { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_ac_ct_RANLIB="ranlib"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6223 if test "x$ac_ct_RANLIB" = x; then
6226 case $cross_compiling:$ac_tool_warned in
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet. If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned=yes ;;
6236 RANLIB=$ac_ct_RANLIB
6239 RANLIB="$ac_cv_prog_RANLIB"
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}ar; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_AR+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 if test -n "$AR"; then
6251 ac_cv_prog_AR="$AR" # Let the user override the test.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_AR="${ac_tool_prefix}ar"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 if test -n "$AR"; then
6272 { echo "$as_me:$LINENO: result: $AR" >&5
6273 echo "${ECHO_T}$AR" >&6; }
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6281 if test -z "$ac_cv_prog_AR"; then
6283 # Extract the first word of "ar", so it can be a program name with args.
6284 set dummy ar; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 if test -n "$ac_ct_AR"; then
6291 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_ac_ct_AR="ar"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6311 if test -n "$ac_ct_AR"; then
6312 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6313 echo "${ECHO_T}$ac_ct_AR" >&6; }
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6319 if test "x$ac_ct_AR" = x; then
6322 case $cross_compiling:$ac_tool_warned in
6324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet. If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&5
6327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet. If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330 ac_tool_warned=yes ;;
6338 # Extract the first word of "rm", so it can be a program name with args.
6339 set dummy rm; ac_word=$2
6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342 if test "${ac_cv_path_RM+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6370 if test -n "$RM"; then
6371 { echo "$as_me:$LINENO: result: $RM" >&5
6372 echo "${ECHO_T}$RM" >&6; }
6374 { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6379 # Extract the first word of "sed", so it can be a program name with args.
6380 set dummy sed; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_path_SED+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6411 if test -n "$SED"; then
6412 { echo "$as_me:$LINENO: result: $SED" >&5
6413 echo "${ECHO_T}$SED" >&6; }
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6420 # Extract the first word of "tar", so it can be a program name with args.
6421 set dummy tar; ac_word=$2
6422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6424 if test "${ac_cv_path_TAR+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6439 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6452 if test -n "$TAR"; then
6453 { echo "$as_me:$LINENO: result: $TAR" >&5
6454 echo "${ECHO_T}$TAR" >&6; }
6456 { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6461 # Extract the first word of "pwd", so it can be a program name with args.
6462 set dummy pwd; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_BINPWD+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6492 BINPWD=$ac_cv_path_BINPWD
6493 if test -n "$BINPWD"; then
6494 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6495 echo "${ECHO_T}$BINPWD" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6503 # Extract the first word of "Graphviz", so it can be a program name with args.
6504 set dummy Graphviz; ac_word=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6534 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6535 if test -n "$GRAPHVIZ"; then
6536 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6537 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6544 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6546 cat >>confdefs.h <<\_ACEOF
6547 #define HAVE_GRAPHVIZ 1
6550 if test "$llvm_cv_os_type" = "MingW" ; then
6551 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6554 cat >>confdefs.h <<_ACEOF
6555 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6559 # Extract the first word of "dot", so it can be a program name with args.
6560 set dummy dot; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_path_DOT+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6591 if test -n "$DOT"; then
6592 { echo "$as_me:$LINENO: result: $DOT" >&5
6593 echo "${ECHO_T}$DOT" >&6; }
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6600 if test "$DOT" != "echo dot" ; then
6602 cat >>confdefs.h <<\_ACEOF
6606 if test "$llvm_cv_os_type" = "MingW" ; then
6607 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6610 cat >>confdefs.h <<_ACEOF
6611 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6615 # Extract the first word of "fdp", so it can be a program name with args.
6616 set dummy fdp; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_path_FDP+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6647 if test -n "$FDP"; then
6648 { echo "$as_me:$LINENO: result: $FDP" >&5
6649 echo "${ECHO_T}$FDP" >&6; }
6651 { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6656 if test "$FDP" != "echo fdp" ; then
6658 cat >>confdefs.h <<\_ACEOF
6662 if test "$llvm_cv_os_type" = "MingW" ; then
6663 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6666 cat >>confdefs.h <<_ACEOF
6667 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6671 # Extract the first word of "neato", so it can be a program name with args.
6672 set dummy neato; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_path_NEATO+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6702 NEATO=$ac_cv_path_NEATO
6703 if test -n "$NEATO"; then
6704 { echo "$as_me:$LINENO: result: $NEATO" >&5
6705 echo "${ECHO_T}$NEATO" >&6; }
6707 { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6712 if test "$NEATO" != "echo neato" ; then
6714 cat >>confdefs.h <<\_ACEOF
6715 #define HAVE_NEATO 1
6718 if test "$llvm_cv_os_type" = "MingW" ; then
6719 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6722 cat >>confdefs.h <<_ACEOF
6723 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6727 # Extract the first word of "twopi", so it can be a program name with args.
6728 set dummy twopi; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_TWOPI+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6758 TWOPI=$ac_cv_path_TWOPI
6759 if test -n "$TWOPI"; then
6760 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6761 echo "${ECHO_T}$TWOPI" >&6; }
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6768 if test "$TWOPI" != "echo twopi" ; then
6770 cat >>confdefs.h <<\_ACEOF
6771 #define HAVE_TWOPI 1
6774 if test "$llvm_cv_os_type" = "MingW" ; then
6775 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6778 cat >>confdefs.h <<_ACEOF
6779 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6783 # Extract the first word of "circo", so it can be a program name with args.
6784 set dummy circo; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_CIRCO+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6814 CIRCO=$ac_cv_path_CIRCO
6815 if test -n "$CIRCO"; then
6816 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6817 echo "${ECHO_T}$CIRCO" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6824 if test "$CIRCO" != "echo circo" ; then
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_CIRCO 1
6830 if test "$llvm_cv_os_type" = "MingW" ; then
6831 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6834 cat >>confdefs.h <<_ACEOF
6835 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6839 for ac_prog in gv gsview32
6841 # Extract the first word of "$ac_prog", so it can be a program name with args.
6842 set dummy $ac_prog; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_GV+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 if test -n "$GV"; then
6873 { echo "$as_me:$LINENO: result: $GV" >&5
6874 echo "${ECHO_T}$GV" >&6; }
6876 { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6881 test -n "$GV" && break
6883 test -n "$GV" || GV="echo gv"
6885 if test "$GV" != "echo gv" ; then
6887 cat >>confdefs.h <<\_ACEOF
6891 if test "$llvm_cv_os_type" = "MingW" ; then
6892 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6895 cat >>confdefs.h <<_ACEOF
6896 #define LLVM_PATH_GV "$GV${EXEEXT}"
6900 # Extract the first word of "dotty", so it can be a program name with args.
6901 set dummy dotty; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_DOTTY+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6931 DOTTY=$ac_cv_path_DOTTY
6932 if test -n "$DOTTY"; then
6933 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6934 echo "${ECHO_T}$DOTTY" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 if test "$DOTTY" != "echo dotty" ; then
6943 cat >>confdefs.h <<\_ACEOF
6944 #define HAVE_DOTTY 1
6947 if test "$llvm_cv_os_type" = "MingW" ; then
6948 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6951 cat >>confdefs.h <<_ACEOF
6952 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6956 for ac_prog in xdot xdot.py
6958 # Extract the first word of "$ac_prog", so it can be a program name with args.
6959 set dummy $ac_prog; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_XDOT+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 XDOT=$ac_cv_path_XDOT
6989 if test -n "$XDOT"; then
6990 { echo "$as_me:$LINENO: result: $XDOT" >&5
6991 echo "${ECHO_T}$XDOT" >&6; }
6993 { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6998 test -n "$XDOT" && break
7000 test -n "$XDOT" || XDOT="echo xdot"
7002 if test "$XDOT" != "echo xdot" ; then
7004 cat >>confdefs.h <<\_ACEOF
7008 if test "$llvm_cv_os_type" = "MingW" ; then
7009 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7012 cat >>confdefs.h <<_ACEOF
7013 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7018 # Find a good install program. We prefer a C program (faster),
7019 # so one script is as good as another. But avoid the broken or
7020 # incompatible versions:
7021 # SysV /etc/install, /usr/sbin/install
7022 # SunOS /usr/etc/install
7023 # IRIX /sbin/install
7025 # AmigaOS /C/install, which installs bootblocks on floppy discs
7026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7029 # OS/2's system install, which has a completely different semantic
7030 # ./install, which can be erroneously created by make from ./install.sh.
7031 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7032 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7033 if test -z "$INSTALL"; then
7034 if test "${ac_cv_path_install+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 # Account for people who put trailing slashes in PATH elements.
7044 ./ | .// | /cC/* | \
7045 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7046 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7049 # OSF1 and SCO ODT 3.0 have their own names for install.
7050 # Don't use installbsd from OSF since it installs stuff as root
7052 for ac_prog in ginstall scoinst install; do
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7055 if test $ac_prog = install &&
7056 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7057 # AIX install. It has an incompatible calling convention.
7059 elif test $ac_prog = install &&
7060 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7061 # program-specific install script used by HP pwplus--don't use.
7064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7077 if test "${ac_cv_path_install+set}" = set; then
7078 INSTALL=$ac_cv_path_install
7080 # As a last resort, use the slow shell script. Don't cache a
7081 # value for INSTALL within a source directory, because that will
7082 # break other packages using the cache if that directory is
7083 # removed, or if the value is a relative name.
7084 INSTALL=$ac_install_sh
7087 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7088 echo "${ECHO_T}$INSTALL" >&6; }
7090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7091 # It thinks the first close brace ends the variable substitution.
7092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7099 [\\/$]* | ?:[\\/]* ) ;;
7100 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7103 # Extract the first word of "bzip2", so it can be a program name with args.
7104 set dummy bzip2; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_BZIP2+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 BZIP2=$ac_cv_path_BZIP2
7134 if test -n "$BZIP2"; then
7135 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7136 echo "${ECHO_T}$BZIP2" >&6; }
7138 { echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6; }
7143 # Extract the first word of "cat", so it can be a program name with args.
7144 set dummy cat; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_CAT+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 if test -n "$CAT"; then
7175 { echo "$as_me:$LINENO: result: $CAT" >&5
7176 echo "${ECHO_T}$CAT" >&6; }
7178 { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7183 # Extract the first word of "doxygen", so it can be a program name with args.
7184 set dummy doxygen; ac_word=$2
7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 DOXYGEN=$ac_cv_path_DOXYGEN
7214 if test -n "$DOXYGEN"; then
7215 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7216 echo "${ECHO_T}$DOXYGEN" >&6; }
7218 { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7223 # Extract the first word of "groff", so it can be a program name with args.
7224 set dummy groff; ac_word=$2
7225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227 if test "${ac_cv_path_GROFF+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 GROFF=$ac_cv_path_GROFF
7254 if test -n "$GROFF"; then
7255 { echo "$as_me:$LINENO: result: $GROFF" >&5
7256 echo "${ECHO_T}$GROFF" >&6; }
7258 { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7263 # Extract the first word of "gzip", so it can be a program name with args.
7264 set dummy gzip; ac_word=$2
7265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7267 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 GZIPBIN=$ac_cv_path_GZIPBIN
7294 if test -n "$GZIPBIN"; then
7295 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7296 echo "${ECHO_T}$GZIPBIN" >&6; }
7298 { echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6; }
7303 # Extract the first word of "pdfroff", so it can be a program name with args.
7304 set dummy pdfroff; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_path_PDFROFF+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 PDFROFF=$ac_cv_path_PDFROFF
7334 if test -n "$PDFROFF"; then
7335 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7336 echo "${ECHO_T}$PDFROFF" >&6; }
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7343 # Extract the first word of "zip", so it can be a program name with args.
7344 set dummy zip; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_ZIP+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 if test -n "$ZIP"; then
7375 { echo "$as_me:$LINENO: result: $ZIP" >&5
7376 echo "${ECHO_T}$ZIP" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 for ac_prog in ocamlc
7385 # Extract the first word of "$ac_prog", so it can be a program name with args.
7386 set dummy $ac_prog; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_OCAMLC+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 OCAMLC=$ac_cv_path_OCAMLC
7416 if test -n "$OCAMLC"; then
7417 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7418 echo "${ECHO_T}$OCAMLC" >&6; }
7420 { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7425 test -n "$OCAMLC" && break
7428 for ac_prog in ocamlopt
7430 # Extract the first word of "$ac_prog", so it can be a program name with args.
7431 set dummy $ac_prog; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 OCAMLOPT=$ac_cv_path_OCAMLOPT
7461 if test -n "$OCAMLOPT"; then
7462 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7463 echo "${ECHO_T}$OCAMLOPT" >&6; }
7465 { echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6; }
7470 test -n "$OCAMLOPT" && break
7473 for ac_prog in ocamldep
7475 # Extract the first word of "$ac_prog", so it can be a program name with args.
7476 set dummy $ac_prog; ac_word=$2
7477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 OCAMLDEP=$ac_cv_path_OCAMLDEP
7506 if test -n "$OCAMLDEP"; then
7507 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7508 echo "${ECHO_T}$OCAMLDEP" >&6; }
7510 { echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6; }
7515 test -n "$OCAMLDEP" && break
7518 for ac_prog in ocamldoc
7520 # Extract the first word of "$ac_prog", so it can be a program name with args.
7521 set dummy $ac_prog; ac_word=$2
7522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7524 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7539 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 OCAMLDOC=$ac_cv_path_OCAMLDOC
7551 if test -n "$OCAMLDOC"; then
7552 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7553 echo "${ECHO_T}$OCAMLDOC" >&6; }
7555 { echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6; }
7560 test -n "$OCAMLDOC" && break
7563 for ac_prog in gas as
7565 # Extract the first word of "$ac_prog", so it can be a program name with args.
7566 set dummy $ac_prog; ac_word=$2
7567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569 if test "${ac_cv_path_GAS+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 if test -n "$GAS"; then
7597 { echo "$as_me:$LINENO: result: $GAS" >&5
7598 echo "${ECHO_T}$GAS" >&6; }
7600 { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7605 test -n "$GAS" && break
7609 { echo "$as_me:$LINENO: checking for linker version" >&5
7610 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7611 if test "${llvm_cv_link_version+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7618 if (echo "$version_string" | grep -q "ld64"); then
7619 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7621 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7625 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7626 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7628 cat >>confdefs.h <<_ACEOF
7629 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7635 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7636 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7637 if test "${llvm_cv_link_use_r+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647 CFLAGS="$CFLAGS -Wl,-R."
7648 cat >conftest.$ac_ext <<_ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (ac_try="$ac_link"
7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667 *) ac_try_echo=$ac_try;;
7669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670 (eval "$ac_link") 2>conftest.er1
7672 grep -v '^ *+' conftest.er1 >conftest.err
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7678 { (case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_try") 2>&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; } &&
7687 { ac_try='test -s conftest$ac_exeext'
7688 { (case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_try") 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7697 llvm_cv_link_use_r=yes
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 llvm_cv_link_use_r=no
7705 rm -f core conftest.err conftest.$ac_objext \
7706 conftest$ac_exeext conftest.$ac_ext
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7717 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7718 if test "$llvm_cv_link_use_r" = yes ; then
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_LINK_R 1
7727 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7728 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7729 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 ac_cpp='$CPP $CPPFLAGS'
7734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739 CFLAGS="$CFLAGS -rdynamic"
7740 cat >conftest.$ac_ext <<_ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7755 rm -f conftest.$ac_objext conftest$ac_exeext
7756 if { (ac_try="$ac_link"
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_link") 2>conftest.er1
7764 grep -v '^ *+' conftest.er1 >conftest.err
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7770 { (case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_try") 2>&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_try") 2>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 llvm_cv_link_use_export_dynamic=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 llvm_cv_link_use_export_dynamic=no
7797 rm -f core conftest.err conftest.$ac_objext \
7798 conftest$ac_exeext conftest.$ac_ext
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7809 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7810 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_LINK_EXPORT_DYNAMIC 1
7819 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7820 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7821 if test "${llvm_cv_link_use_version_script+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 ac_cpp='$CPP $CPPFLAGS'
7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832 # The following code is from the autoconf manual,
7833 # "11.13: Limitations of Usual Tools".
7834 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7835 # Use mktemp if possible; otherwise fall back on mkdir,
7836 # with $RANDOM to make collisions less likely.
7840 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7842 test -n "$tmp" && test -d "$tmp"
7844 tmp=$TMPDIR/foo$$-$RANDOM
7845 (umask 077 && mkdir "$tmp")
7848 echo "{" > "$tmp/export.map"
7849 echo " global: main;" >> "$tmp/export.map"
7850 echo " local: *;" >> "$tmp/export.map"
7851 echo "};" >> "$tmp/export.map"
7853 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7854 cat >conftest.$ac_ext <<_ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7869 rm -f conftest.$ac_objext conftest$ac_exeext
7870 if { (ac_try="$ac_link"
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_link") 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_try") 2>&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest$ac_exeext'
7894 { (case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_try") 2>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 llvm_cv_link_use_version_script=yes
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 llvm_cv_link_use_version_script=no
7911 rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7913 rm "$tmp/export.map"
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7925 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7926 if test "$llvm_cv_link_use_version_script" = yes ; then
7927 HAVE_LINK_VERSION_SCRIPT=1
7933 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7934 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7935 if test "${ac_cv_path_GREP+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 # Extract the first word of "grep ggrep" to use in msg output
7939 if test -z "$GREP"; then
7940 set dummy grep ggrep; ac_prog_name=$2
7941 if test "${ac_cv_path_GREP+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 ac_path_GREP_found=false
7945 # Loop through the user's path and test for each of PROGNAME-LIST
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7950 test -z "$as_dir" && as_dir=.
7951 for ac_prog in grep ggrep; do
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7954 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7955 # Check for GNU ac_path_GREP and select it if it is found.
7956 # Check for GNU $ac_path_GREP
7957 case `"$ac_path_GREP" --version 2>&1` in
7959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7962 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7965 cat "conftest.in" "conftest.in" >"conftest.tmp"
7966 mv "conftest.tmp" "conftest.in"
7967 cp "conftest.in" "conftest.nl"
7968 echo 'GREP' >> "conftest.nl"
7969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7971 ac_count=`expr $ac_count + 1`
7972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7973 # Best one so far, save it but keep looking for a better one
7974 ac_cv_path_GREP="$ac_path_GREP"
7975 ac_path_GREP_max=$ac_count
7977 # 10*(2^10) chars as input seems more than enough
7978 test $ac_count -gt 10 && break
7980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7984 $ac_path_GREP_found && break 3
7994 GREP="$ac_cv_path_GREP"
7995 if test -z "$GREP"; then
7996 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7997 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7998 { (exit 1); exit 1; }; }
8002 ac_cv_path_GREP=$GREP
8007 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8008 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8009 GREP="$ac_cv_path_GREP"
8012 { echo "$as_me:$LINENO: checking for egrep" >&5
8013 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8014 if test "${ac_cv_path_EGREP+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8018 then ac_cv_path_EGREP="$GREP -E"
8020 # Extract the first word of "egrep" to use in msg output
8021 if test -z "$EGREP"; then
8022 set dummy egrep; ac_prog_name=$2
8023 if test "${ac_cv_path_EGREP+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 ac_path_EGREP_found=false
8027 # Loop through the user's path and test for each of PROGNAME-LIST
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8032 test -z "$as_dir" && as_dir=.
8033 for ac_prog in egrep; do
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8036 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8037 # Check for GNU ac_path_EGREP and select it if it is found.
8038 # Check for GNU $ac_path_EGREP
8039 case `"$ac_path_EGREP" --version 2>&1` in
8041 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8044 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8047 cat "conftest.in" "conftest.in" >"conftest.tmp"
8048 mv "conftest.tmp" "conftest.in"
8049 cp "conftest.in" "conftest.nl"
8050 echo 'EGREP' >> "conftest.nl"
8051 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8053 ac_count=`expr $ac_count + 1`
8054 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8055 # Best one so far, save it but keep looking for a better one
8056 ac_cv_path_EGREP="$ac_path_EGREP"
8057 ac_path_EGREP_max=$ac_count
8059 # 10*(2^10) chars as input seems more than enough
8060 test $ac_count -gt 10 && break
8062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8066 $ac_path_EGREP_found && break 3
8076 EGREP="$ac_cv_path_EGREP"
8077 if test -z "$EGREP"; then
8078 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8079 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8080 { (exit 1); exit 1; }; }
8084 ac_cv_path_EGREP=$EGREP
8090 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8091 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8092 EGREP="$ac_cv_path_EGREP"
8095 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8097 if test "${ac_cv_header_stdc+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_compile") 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134 { (case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_try") 2>&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest.$ac_objext'
8144 { (case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_try") 2>&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 ac_cv_header_stdc=yes
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_cv_header_stdc=no
8161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 if test $ac_cv_header_stdc = yes; then
8164 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8175 $EGREP "memchr" >/dev/null 2>&1; then
8178 ac_cv_header_stdc=no
8184 if test $ac_cv_header_stdc = yes; then
8185 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8196 $EGREP "free" >/dev/null 2>&1; then
8199 ac_cv_header_stdc=no
8205 if test $ac_cv_header_stdc = yes; then
8206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8207 if test "$cross_compiling" = yes; then
8210 cat >conftest.$ac_ext <<_ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8218 #if ((' ' & 0x0FF) == 0x020)
8219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8222 # define ISLOWER(c) \
8223 (('a' <= (c) && (c) <= 'i') \
8224 || ('j' <= (c) && (c) <= 'r') \
8225 || ('s' <= (c) && (c) <= 'z'))
8226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8234 for (i = 0; i < 256; i++)
8235 if (XOR (islower (i), ISLOWER (i))
8236 || toupper (i) != TOUPPER (i))
8241 rm -f conftest$ac_exeext
8242 if { (ac_try="$ac_link"
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_link") 2>&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8252 { (case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_try") 2>&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; }; then
8263 echo "$as_me: program exited with status $ac_status" >&5
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8268 ac_cv_header_stdc=no
8270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8276 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8277 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8278 if test $ac_cv_header_stdc = yes; then
8280 cat >>confdefs.h <<\_ACEOF
8281 #define STDC_HEADERS 1
8286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8297 inttypes.h stdint.h unistd.h
8299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8313 #include <$ac_header>
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
8329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8330 { (case "(($ac_try" in
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_try") 2>&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try='test -s conftest.$ac_objext'
8340 { (case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_try") 2>&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 eval "$as_ac_Header=yes"
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 eval "$as_ac_Header=no"
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 ac_res=`eval echo '${'$as_ac_Header'}'`
8360 { echo "$as_me:$LINENO: result: $ac_res" >&5
8361 echo "${ECHO_T}$ac_res" >&6; }
8362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8363 cat >>confdefs.h <<_ACEOF
8364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8373 for ac_header in errno.h
8375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 ac_res=`eval echo '${'$as_ac_Header'}'`
8383 { echo "$as_me:$LINENO: result: $ac_res" >&5
8384 echo "${ECHO_T}$ac_res" >&6; }
8386 # Is the header compilable?
8387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 $ac_includes_default
8396 #include <$ac_header>
8398 rm -f conftest.$ac_objext
8399 if { (ac_try="$ac_compile"
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compile") 2>conftest.er1
8407 grep -v '^ *+' conftest.er1 >conftest.err
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest.$ac_objext'
8423 { (case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_try") 2>&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_header_compiler=yes
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8437 ac_header_compiler=no
8440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8442 echo "${ECHO_T}$ac_header_compiler" >&6; }
8444 # Is the header present?
8445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8447 cat >conftest.$ac_ext <<_ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 #include <$ac_header>
8455 if { (ac_try="$ac_cpp conftest.$ac_ext"
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8463 grep -v '^ *+' conftest.er1 >conftest.err
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } >/dev/null; then
8468 if test -s conftest.err; then
8469 ac_cpp_err=$ac_c_preproc_warn_flag
8470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8477 if test -z "$ac_cpp_err"; then
8478 ac_header_preproc=yes
8480 echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8483 ac_header_preproc=no
8486 rm -f conftest.err conftest.$ac_ext
8487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8488 echo "${ECHO_T}$ac_header_preproc" >&6; }
8490 # So? What about this header?
8491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8497 ac_header_preproc=yes
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8513 ## ------------------------------------ ##
8514 ## Report this to http://llvm.org/bugs/ ##
8515 ## ------------------------------------ ##
8517 ) | sed "s/^/$as_me: WARNING: /" >&2
8520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 eval "$as_ac_Header=\$ac_header_preproc"
8527 ac_res=`eval echo '${'$as_ac_Header'}'`
8528 { echo "$as_me:$LINENO: result: $ac_res" >&5
8529 echo "${ECHO_T}$ac_res" >&6; }
8532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8533 cat >>confdefs.h <<_ACEOF
8534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8542 case "$llvm_cv_os_type" in
8543 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8544 Darwin) llvm_shlib_ext=.dylib ;;
8545 *) llvm_shlib_ext=.so ;;
8549 cat >>confdefs.h <<_ACEOF
8550 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8554 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8555 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8568 if test "$GCC" != "yes" && test "$ICC" != "yes"
8570 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8571 echo "$as_me: error: gcc|icc required but not found" >&2;}
8572 { (exit 1); exit 1; }; }
8575 if test "$GXX" != "yes" && test "$IXX" != "yes"
8577 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8578 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8579 { (exit 1); exit 1; }; }
8582 if test "$GCC" = "yes"
8584 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8592 #if !defined(__GNUC__) || __GNUC__ < 3
8593 #error Unsupported GCC version
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_compile") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613 { (case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_try") 2>&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest.$ac_objext'
8623 { (case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_try") 2>&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8637 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8638 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8639 { (exit 1); exit 1; }; }
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 if test -z "$llvm_cv_gnu_make_command"
8647 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8648 echo "$as_me: error: GNU Make required but not found" >&2;}
8649 { (exit 1); exit 1; }; }
8652 { echo "$as_me:$LINENO: result: ok" >&5
8653 echo "${ECHO_T}ok" >&6; }
8655 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8656 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8657 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8659 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8661 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8665 NO_MAYBE_UNINITIALIZED=
8666 if test "$GXX" = "yes"
8668 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8670 if test -z "$NO_MAYBE_UNINITIALIZED"
8672 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8676 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8677 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8680 # Check whether --with-python was given.
8681 if test "${with_python+set}" = set; then
8682 withval=$with_python; PYTHON="$withval"
8686 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8687 { echo "$as_me:$LINENO: checking for python" >&5
8688 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8689 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8690 echo "${ECHO_T}user defined: $with_python" >&6; }
8692 if test -n "$PYTHON" ; then
8693 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8694 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8697 # Extract the first word of "python python2 python26", so it can be a program name with args.
8698 set dummy python python2 python26; ac_word=$2
8699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8701 if test "${ac_cv_path_PYTHON+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8716 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8725 echo "${ECHO_T}not found" >&6; }
8726 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8727 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8728 { (exit 1); exit 1; }; }"
8732 PYTHON=$ac_cv_path_PYTHON
8733 if test -n "$PYTHON"; then
8734 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8735 echo "${ECHO_T}$PYTHON" >&6; }
8737 { echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6; }
8744 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8745 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8746 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8747 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8748 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8749 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8750 if test "$ac_python_version_major" -gt "2" || \
8751 (test "$ac_python_version_major" -eq "2" && \
8752 test "$ac_python_version_minor" -ge "5") ; then
8753 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8754 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8756 { echo "$as_me:$LINENO: result: not found" >&5
8757 echo "${ECHO_T}not found" >&6; }
8758 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8759 See \`config.log' for more details." >&5
8760 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8761 See \`config.log' for more details." >&2;}
8762 { (exit 1); exit 1; }; }
8767 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8768 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8769 if test "${ac_cv_lib_m_sin+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 ac_check_lib_save_LIBS=$LIBS
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8781 /* Override any GCC internal prototype to avoid an error.
8782 Use char because int might match the return type of a GCC
8783 builtin and then its argument prototype would still apply. */
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (ac_try="$ac_link"
8799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800 *) ac_try_echo=$ac_try;;
8802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803 (eval "$ac_link") 2>conftest.er1
8805 grep -v '^ *+' conftest.er1 >conftest.err
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8811 { (case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_try") 2>&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest$ac_exeext'
8821 { (case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_try") 2>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8838 rm -f core conftest.err conftest.$ac_objext \
8839 conftest$ac_exeext conftest.$ac_ext
8840 LIBS=$ac_check_lib_save_LIBS
8842 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8843 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8844 if test $ac_cv_lib_m_sin = yes; then
8845 cat >>confdefs.h <<_ACEOF
8853 if test "$llvm_cv_os_type" = "MingW" ; then
8855 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8856 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8857 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-limagehlp $LIBS"
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
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_lib_imagehlp_main=yes
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_cv_lib_imagehlp_main=no
8920 rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8924 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8925 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8926 if test $ac_cv_lib_imagehlp_main = yes; then
8927 cat >>confdefs.h <<_ACEOF
8928 #define HAVE_LIBIMAGEHLP 1
8931 LIBS="-limagehlp $LIBS"
8936 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8937 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8938 if test "${ac_cv_lib_psapi_main+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-lpsapi $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (ac_try="$ac_link"
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_link") 2>conftest.er1
8968 grep -v '^ *+' conftest.er1 >conftest.err
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974 { (case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_try") 2>&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (case "(($ac_try" in
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989 (eval "$ac_try") 2>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_cv_lib_psapi_main=yes
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_cv_lib_psapi_main=no
9001 rm -f core conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9005 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
9006 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
9007 if test $ac_cv_lib_psapi_main = yes; then
9008 cat >>confdefs.h <<_ACEOF
9009 #define HAVE_LIBPSAPI 1
9012 LIBS="-lpsapi $LIBS"
9017 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
9018 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
9019 if test "${ac_cv_lib_shell32_main+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 ac_check_lib_save_LIBS=$LIBS
9023 LIBS="-lshell32 $LIBS"
9024 cat >conftest.$ac_ext <<_ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (ac_try="$ac_link"
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_link") 2>conftest.er1
9049 grep -v '^ *+' conftest.er1 >conftest.err
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9055 { (case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_try") 2>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest$ac_exeext'
9065 { (case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_try") 2>&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_lib_shell32_main=yes
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 ac_cv_lib_shell32_main=no
9082 rm -f core conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084 LIBS=$ac_check_lib_save_LIBS
9086 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9087 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9088 if test $ac_cv_lib_shell32_main = yes; then
9089 cat >>confdefs.h <<_ACEOF
9090 #define HAVE_LIBSHELL32 1
9093 LIBS="-lshell32 $LIBS"
9099 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9100 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9101 if test "${ac_cv_search_dlopen+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 ac_func_search_save_LIBS=$LIBS
9105 cat >conftest.$ac_ext <<_ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9127 for ac_lib in '' dl; do
9128 if test -z "$ac_lib"; then
9129 ac_res="none required"
9132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>conftest.er1
9143 grep -v '^ *+' conftest.er1 >conftest.err
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9149 { (case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_try") 2>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_try") 2>&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 ac_cv_search_dlopen=$ac_res
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9176 rm -f core conftest.err conftest.$ac_objext \
9178 if test "${ac_cv_search_dlopen+set}" = set; then
9182 if test "${ac_cv_search_dlopen+set}" = set; then
9185 ac_cv_search_dlopen=no
9188 LIBS=$ac_func_search_save_LIBS
9190 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9191 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9192 ac_res=$ac_cv_search_dlopen
9193 if test "$ac_res" != no; then
9194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9197 cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_DLOPEN 1
9205 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9206 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9210 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9211 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9212 if test "${ac_cv_search_clock_gettime+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 ac_func_search_save_LIBS=$LIBS
9216 cat >conftest.$ac_ext <<_ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9223 /* Override any GCC internal prototype to avoid an error.
9224 Use char because int might match the return type of a GCC
9225 builtin and then its argument prototype would still apply. */
9229 char clock_gettime ();
9233 return clock_gettime ();
9238 for ac_lib in '' rt; do
9239 if test -z "$ac_lib"; then
9240 ac_res="none required"
9243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (ac_try="$ac_link"
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_link") 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9260 { (case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_try") 2>&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; } &&
9269 { ac_try='test -s conftest$ac_exeext'
9270 { (case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_try") 2>&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 ac_cv_search_clock_gettime=$ac_res
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9287 rm -f core conftest.err conftest.$ac_objext \
9289 if test "${ac_cv_search_clock_gettime+set}" = set; then
9293 if test "${ac_cv_search_clock_gettime+set}" = set; then
9296 ac_cv_search_clock_gettime=no
9299 LIBS=$ac_func_search_save_LIBS
9301 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9302 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9303 ac_res=$ac_cv_search_clock_gettime
9304 if test "$ac_res" != no; then
9305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9310 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9311 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9312 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9313 if test "${ac_cv_search_setupterm+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 ac_func_search_save_LIBS=$LIBS
9317 cat >conftest.$ac_ext <<_ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9324 /* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
9334 return setupterm ();
9339 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9340 if test -z "$ac_lib"; then
9341 ac_res="none required"
9344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9346 rm -f conftest.$ac_objext conftest$ac_exeext
9347 if { (ac_try="$ac_link"
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_link") 2>conftest.er1
9355 grep -v '^ *+' conftest.er1 >conftest.err
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
9360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9361 { (case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_try") 2>&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; } &&
9370 { ac_try='test -s conftest$ac_exeext'
9371 { (case "(($ac_try" in
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_try") 2>&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9380 ac_cv_search_setupterm=$ac_res
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9388 rm -f core conftest.err conftest.$ac_objext \
9390 if test "${ac_cv_search_setupterm+set}" = set; then
9394 if test "${ac_cv_search_setupterm+set}" = set; then
9397 ac_cv_search_setupterm=no
9400 LIBS=$ac_func_search_save_LIBS
9402 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9403 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9404 ac_res=$ac_cv_search_setupterm
9405 if test "$ac_res" != no; then
9406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9409 cat >>confdefs.h <<\_ACEOF
9410 #define HAVE_TERMINFO 1
9420 if test "$llvm_cv_enable_libedit" = "yes" ; then
9421 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9422 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9423 if test "${ac_cv_search_el_init+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 ac_func_search_save_LIBS=$LIBS
9427 cat >conftest.$ac_ext <<_ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9434 /* Override any GCC internal prototype to avoid an error.
9435 Use char because int might match the return type of a GCC
9436 builtin and then its argument prototype would still apply. */
9449 for ac_lib in '' edit; do
9450 if test -z "$ac_lib"; then
9451 ac_res="none required"
9454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (ac_try="$ac_link"
9459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460 *) ac_try_echo=$ac_try;;
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463 (eval "$ac_link") 2>conftest.er1
9465 grep -v '^ *+' conftest.er1 >conftest.err
9467 cat conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9471 { (case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_try") 2>&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest$ac_exeext'
9481 { (case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_try") 2>&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 ac_cv_search_el_init=$ac_res
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9498 rm -f core conftest.err conftest.$ac_objext \
9500 if test "${ac_cv_search_el_init+set}" = set; then
9504 if test "${ac_cv_search_el_init+set}" = set; then
9507 ac_cv_search_el_init=no
9510 LIBS=$ac_func_search_save_LIBS
9512 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9513 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9514 ac_res=$ac_cv_search_el_init
9515 if test "$ac_res" != no; then
9516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_LIBEDIT 1
9526 if test "$llvm_cv_enable_libffi" = "yes" ; then
9527 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9528 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9529 if test "${ac_cv_search_ffi_call+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 ac_func_search_save_LIBS=$LIBS
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9540 /* Override any GCC internal prototype to avoid an error.
9541 Use char because int might match the return type of a GCC
9542 builtin and then its argument prototype would still apply. */
9555 for ac_lib in '' ffi; do
9556 if test -z "$ac_lib"; then
9557 ac_res="none required"
9560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (ac_try="$ac_link"
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_link") 2>conftest.er1
9571 grep -v '^ *+' conftest.er1 >conftest.err
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
9576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9577 { (case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_try") 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try='test -s conftest$ac_exeext'
9587 { (case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_try") 2>&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 ac_cv_search_ffi_call=$ac_res
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9604 rm -f core conftest.err conftest.$ac_objext \
9606 if test "${ac_cv_search_ffi_call+set}" = set; then
9610 if test "${ac_cv_search_ffi_call+set}" = set; then
9613 ac_cv_search_ffi_call=no
9616 LIBS=$ac_func_search_save_LIBS
9618 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9619 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9620 ac_res=$ac_cv_search_ffi_call
9621 if test "$ac_res" != no; then
9622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9624 cat >>confdefs.h <<\_ACEOF
9625 #define HAVE_FFI_CALL 1
9629 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9630 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9631 { (exit 1); exit 1; }; }
9636 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9637 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9638 if test "${ac_cv_search_mallinfo+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 ac_func_search_save_LIBS=$LIBS
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9649 /* Override any GCC internal prototype to avoid an error.
9650 Use char because int might match the return type of a GCC
9651 builtin and then its argument prototype would still apply. */
9664 for ac_lib in '' malloc; do
9665 if test -z "$ac_lib"; then
9666 ac_res="none required"
9669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (ac_try="$ac_link"
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_link") 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest$ac_exeext'
9696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_search_mallinfo=$ac_res
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9713 rm -f core conftest.err conftest.$ac_objext \
9715 if test "${ac_cv_search_mallinfo+set}" = set; then
9719 if test "${ac_cv_search_mallinfo+set}" = set; then
9722 ac_cv_search_mallinfo=no
9725 LIBS=$ac_func_search_save_LIBS
9727 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9728 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9729 ac_res=$ac_cv_search_mallinfo
9730 if test "$ac_res" != no; then
9731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9733 cat >>confdefs.h <<\_ACEOF
9734 #define HAVE_MALLINFO 1
9740 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9742 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9743 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9744 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 ac_check_lib_save_LIBS=$LIBS
9748 LIBS="-lpthread $LIBS"
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9756 /* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9762 char pthread_mutex_init ();
9766 return pthread_mutex_init ();
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>conftest.er1
9780 grep -v '^ *+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_try") 2>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_lib_pthread_pthread_mutex_init=yes
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_cv_lib_pthread_pthread_mutex_init=no
9813 rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 LIBS=$ac_check_lib_save_LIBS
9817 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9818 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9819 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define HAVE_LIBPTHREAD 1
9824 LIBS="-lpthread $LIBS"
9828 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9829 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9830 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 ac_func_search_save_LIBS=$LIBS
9834 cat >conftest.$ac_ext <<_ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9841 /* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
9847 char pthread_mutex_lock ();
9851 return pthread_mutex_lock ();
9856 for ac_lib in '' pthread; do
9857 if test -z "$ac_lib"; then
9858 ac_res="none required"
9861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_search_pthread_mutex_lock=$ac_res
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9905 rm -f core conftest.err conftest.$ac_objext \
9907 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9911 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9914 ac_cv_search_pthread_mutex_lock=no
9917 LIBS=$ac_func_search_save_LIBS
9919 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9920 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9921 ac_res=$ac_cv_search_pthread_mutex_lock
9922 if test "$ac_res" != no; then
9923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_PTHREAD_MUTEX_LOCK 1
9931 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9932 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9933 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 ac_func_search_save_LIBS=$LIBS
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9950 char pthread_rwlock_init ();
9954 return pthread_rwlock_init ();
9959 for ac_lib in '' pthread; do
9960 if test -z "$ac_lib"; then
9961 ac_res="none required"
9964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (ac_try="$ac_link"
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_link") 2>conftest.er1
9975 grep -v '^ *+' conftest.er1 >conftest.err
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981 { (case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_try") 2>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10000 ac_cv_search_pthread_rwlock_init=$ac_res
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10008 rm -f core conftest.err conftest.$ac_objext \
10010 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10014 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10017 ac_cv_search_pthread_rwlock_init=no
10019 rm conftest.$ac_ext
10020 LIBS=$ac_func_search_save_LIBS
10022 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10023 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
10024 ac_res=$ac_cv_search_pthread_rwlock_init
10025 if test "$ac_res" != no; then
10026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10028 cat >>confdefs.h <<\_ACEOF
10029 #define HAVE_PTHREAD_RWLOCK_INIT 1
10034 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10035 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10036 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 ac_func_search_save_LIBS=$LIBS
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10053 char pthread_getspecific ();
10057 return pthread_getspecific ();
10062 for ac_lib in '' pthread; do
10063 if test -z "$ac_lib"; then
10064 ac_res="none required"
10067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_link") 2>conftest.er1
10078 grep -v '^ *+' conftest.er1 >conftest.err
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10084 { (case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_try") 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest$ac_exeext'
10094 { (case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_try") 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 ac_cv_search_pthread_getspecific=$ac_res
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10111 rm -f core conftest.err conftest.$ac_objext \
10113 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10117 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10120 ac_cv_search_pthread_getspecific=no
10122 rm conftest.$ac_ext
10123 LIBS=$ac_func_search_save_LIBS
10125 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10126 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10127 ac_res=$ac_cv_search_pthread_getspecific
10128 if test "$ac_res" != no; then
10129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10131 cat >>confdefs.h <<\_ACEOF
10132 #define HAVE_PTHREAD_GETSPECIFIC 1
10139 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10141 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10142 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_z_compress2+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 ac_check_lib_save_LIBS=$LIBS
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10165 return compress2 ();
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; } &&
10194 { ac_try='test -s conftest$ac_exeext'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 ac_cv_lib_z_compress2=yes
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_cv_lib_z_compress2=no
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10216 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10217 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10218 if test $ac_cv_lib_z_compress2 = yes; then
10219 cat >>confdefs.h <<_ACEOF
10220 #define HAVE_LIBZ 1
10230 # Check whether --with-udis86 was given.
10231 if test "${with_udis86+set}" = set; then
10232 withval=$with_udis86;
10237 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10240 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10241 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10242 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 ac_check_lib_save_LIBS=$LIBS
10246 LIBS="-ludis86 $LIBS"
10247 cat >conftest.$ac_ext <<_ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10269 rm -f conftest.$ac_objext conftest$ac_exeext
10270 if { (ac_try="$ac_link"
10271 case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_link") 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_lib_udis86_ud_init=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_cv_lib_udis86_ud_init=no
10311 rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313 LIBS=$ac_check_lib_save_LIBS
10315 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10316 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10317 if test $ac_cv_lib_udis86_ud_init = yes; then
10318 cat >>confdefs.h <<_ACEOF
10319 #define HAVE_LIBUDIS86 1
10322 LIBS="-ludis86 $LIBS"
10326 echo "Error! You need to have libudis86 around."
10338 cat >>confdefs.h <<_ACEOF
10339 #define USE_UDIS86 $USE_UDIS86
10344 # Check whether --with-oprofile was given.
10345 if test "${with_oprofile+set}" = set; then
10346 withval=$with_oprofile;
10350 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10351 no) llvm_cv_oppath=
10354 *) llvm_cv_oppath="${withval}/lib/oprofile"
10355 CPPFLAGS="-I${withval}/include";;
10357 case $llvm_cv_os_type in
10359 if test -n "$llvm_cv_oppath" ; then
10360 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10361 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10362 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10363 if test "${ac_cv_search_bfd_init+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 ac_func_search_save_LIBS=$LIBS
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10374 /* Override any GCC internal prototype to avoid an error.
10375 Use char because int might match the return type of a GCC
10376 builtin and then its argument prototype would still apply. */
10384 return bfd_init ();
10389 for ac_lib in '' bfd; do
10390 if test -z "$ac_lib"; then
10391 ac_res="none required"
10394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_link") 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
10410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10411 { (case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_try") 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; } &&
10420 { ac_try='test -s conftest$ac_exeext'
10421 { (case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_try") 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_search_bfd_init=$ac_res
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10438 rm -f core conftest.err conftest.$ac_objext \
10440 if test "${ac_cv_search_bfd_init+set}" = set; then
10444 if test "${ac_cv_search_bfd_init+set}" = set; then
10447 ac_cv_search_bfd_init=no
10449 rm conftest.$ac_ext
10450 LIBS=$ac_func_search_save_LIBS
10452 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10453 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10454 ac_res=$ac_cv_search_bfd_init
10455 if test "$ac_res" != no; then
10456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10460 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10461 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10462 if test "${ac_cv_search_op_open_agent+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 ac_func_search_save_LIBS=$LIBS
10466 cat >conftest.$ac_ext <<_ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10473 /* Override any GCC internal prototype to avoid an error.
10474 Use char because int might match the return type of a GCC
10475 builtin and then its argument prototype would still apply. */
10479 char op_open_agent ();
10483 return op_open_agent ();
10488 for ac_lib in '' opagent; do
10489 if test -z "$ac_lib"; then
10490 ac_res="none required"
10493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (ac_try="$ac_link"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_link") 2>conftest.er1
10504 grep -v '^ *+' conftest.er1 >conftest.err
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10510 { (case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_try") 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest$ac_exeext'
10520 { (case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_try") 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_cv_search_op_open_agent=$ac_res
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10537 rm -f core conftest.err conftest.$ac_objext \
10539 if test "${ac_cv_search_op_open_agent+set}" = set; then
10543 if test "${ac_cv_search_op_open_agent+set}" = set; then
10546 ac_cv_search_op_open_agent=no
10548 rm conftest.$ac_ext
10549 LIBS=$ac_func_search_save_LIBS
10551 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10552 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10553 ac_res=$ac_cv_search_op_open_agent
10554 if test "$ac_res" != no; then
10555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10559 echo "Error! You need to have libopagent around."
10564 if test "${ac_cv_header_opagent_h+set}" = set; then
10565 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10566 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10567 if test "${ac_cv_header_opagent_h+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10571 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10573 # Is the header compilable?
10574 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10575 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 $ac_includes_default
10583 #include <opagent.h>
10585 rm -f conftest.$ac_objext
10586 if { (ac_try="$ac_compile"
10587 case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_compile") 2>conftest.er1
10594 grep -v '^ *+' conftest.er1 >conftest.err
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 { (case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_try") 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest.$ac_objext'
10610 { (case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_try") 2>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_header_compiler=yes
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_header_compiler=no
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629 echo "${ECHO_T}$ac_header_compiler" >&6; }
10631 # Is the header present?
10632 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10633 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 #include <opagent.h>
10642 if { (ac_try="$ac_cpp conftest.$ac_ext"
10643 case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10650 grep -v '^ *+' conftest.er1 >conftest.err
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } >/dev/null; then
10655 if test -s conftest.err; then
10656 ac_cpp_err=$ac_c_preproc_warn_flag
10657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10664 if test -z "$ac_cpp_err"; then
10665 ac_header_preproc=yes
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ac_header_preproc=no
10673 rm -f conftest.err conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675 echo "${ECHO_T}$ac_header_preproc" >&6; }
10677 # So? What about this header?
10678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10680 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10681 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10683 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10684 ac_header_preproc=yes
10687 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10688 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10690 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10692 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10694 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10696 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10698 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10700 ## ------------------------------------ ##
10701 ## Report this to http://llvm.org/bugs/ ##
10702 ## ------------------------------------ ##
10704 ) | sed "s/^/$as_me: WARNING: /" >&2
10707 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10708 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10709 if test "${ac_cv_header_opagent_h+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 ac_cv_header_opagent_h=$ac_header_preproc
10714 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10715 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10718 if test $ac_cv_header_opagent_h = yes; then
10722 echo "Error! You need to have opagent.h around."
10730 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10731 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10732 { (exit 1); exit 1; }; } ;;
10743 cat >>confdefs.h <<_ACEOF
10744 #define LLVM_USE_OPROFILE $USE_OPROFILE
10749 # Check whether --with-intel-jitevents was given.
10750 if test "${with_intel_jitevents+set}" = set; then
10751 withval=$with_intel_jitevents;
10753 yes) USE_INTEL_JITEVENTS=1
10755 no) USE_INTEL_JITEVENTS=0
10757 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10758 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10759 { (exit 1); exit 1; }; };;
10762 case $llvm_cv_os_type in
10763 Linux|Win32|Cygwin|MingW) ;;
10764 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10765 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10766 { (exit 1); exit 1; }; };;
10769 case "$llvm_cv_target_arch" in
10771 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10772 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10773 { (exit 1); exit 1; }; };;
10778 USE_INTEL_JITEVENTS=0
10784 cat >>confdefs.h <<_ACEOF
10785 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10789 for ac_prog in xml2-config
10791 # Extract the first word of "$ac_prog", so it can be a program name with args.
10792 set dummy $ac_prog; ac_word=$2
10793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10795 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10796 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 if test -n "$XML2CONFIG"; then
10799 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $PATH
10805 test -z "$as_dir" && as_dir=.
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10808 ac_cv_prog_XML2CONFIG="$ac_prog"
10809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10819 if test -n "$XML2CONFIG"; then
10820 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10821 echo "${ECHO_T}$XML2CONFIG" >&6; }
10823 { echo "$as_me:$LINENO: result: no" >&5
10824 echo "${ECHO_T}no" >&6; }
10828 test -n "$XML2CONFIG" && break
10832 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10833 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10834 if test "x$XML2CONFIG" = "x"; then
10835 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10836 echo "${ECHO_T}xml2-config not found" >&6; }
10838 LIBXML2_INC=`$XML2CONFIG --cflags`
10839 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10840 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10841 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10842 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10843 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 ac_check_lib_save_LIBS=$LIBS
10847 LIBS="-lxml2 $LIBS"
10848 cat >conftest.$ac_ext <<_ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10855 /* Override any GCC internal prototype to avoid an error.
10856 Use char because int might match the return type of a GCC
10857 builtin and then its argument prototype would still apply. */
10861 char xmlReadFile ();
10865 return xmlReadFile ();
10870 rm -f conftest.$ac_objext conftest$ac_exeext
10871 if { (ac_try="$ac_link"
10872 case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_link") 2>conftest.er1
10879 grep -v '^ *+' conftest.er1 >conftest.err
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } &&
10894 { ac_try='test -s conftest$ac_exeext'
10895 { (case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_try") 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 ac_cv_lib_xml2_xmlReadFile=yes
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 ac_cv_lib_xml2_xmlReadFile=no
10912 rm -f core conftest.err conftest.$ac_objext \
10913 conftest$ac_exeext conftest.$ac_ext
10914 LIBS=$ac_check_lib_save_LIBS
10916 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10917 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10918 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10920 cat >>confdefs.h <<\_ACEOF
10921 #define CLANG_HAVE_LIBXML 1
10924 LIBXML2_LIBS="-lxml2"
10937 ac_header_dirent=no
10938 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10939 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10940 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10941 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 cat >conftest.$ac_ext <<_ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 #include <sys/types.h>
10963 rm -f conftest.$ac_objext
10964 if { (ac_try="$ac_compile"
10965 case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_compile") 2>conftest.er1
10972 grep -v '^ *+' conftest.er1 >conftest.err
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10978 { (case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_try") 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try='test -s conftest.$ac_objext'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 eval "$as_ac_Header=yes"
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 eval "$as_ac_Header=no"
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11007 ac_res=`eval echo '${'$as_ac_Header'}'`
11008 { echo "$as_me:$LINENO: result: $ac_res" >&5
11009 echo "${ECHO_T}$ac_res" >&6; }
11010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11011 cat >>confdefs.h <<_ACEOF
11012 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11015 ac_header_dirent=$ac_hdr; break
11019 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11020 if test $ac_header_dirent = dirent.h; then
11021 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11022 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11023 if test "${ac_cv_search_opendir+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 ac_func_search_save_LIBS=$LIBS
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11049 for ac_lib in '' dir; do
11050 if test -z "$ac_lib"; then
11051 ac_res="none required"
11054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (ac_try="$ac_link"
11058 case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_link") 2>conftest.er1
11065 grep -v '^ *+' conftest.er1 >conftest.err
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest$ac_exeext'
11081 { (case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_try") 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 ac_cv_search_opendir=$ac_res
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11098 rm -f core conftest.err conftest.$ac_objext \
11100 if test "${ac_cv_search_opendir+set}" = set; then
11104 if test "${ac_cv_search_opendir+set}" = set; then
11107 ac_cv_search_opendir=no
11109 rm conftest.$ac_ext
11110 LIBS=$ac_func_search_save_LIBS
11112 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11113 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11114 ac_res=$ac_cv_search_opendir
11115 if test "$ac_res" != no; then
11116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11121 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11122 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11123 if test "${ac_cv_search_opendir+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 ac_func_search_save_LIBS=$LIBS
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11134 /* Override any GCC internal prototype to avoid an error.
11135 Use char because int might match the return type of a GCC
11136 builtin and then its argument prototype would still apply. */
11149 for ac_lib in '' x; do
11150 if test -z "$ac_lib"; then
11151 ac_res="none required"
11154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11156 rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (ac_try="$ac_link"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_link") 2>conftest.er1
11165 grep -v '^ *+' conftest.er1 >conftest.err
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest$ac_exeext'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 ac_cv_search_opendir=$ac_res
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11198 rm -f core conftest.err conftest.$ac_objext \
11200 if test "${ac_cv_search_opendir+set}" = set; then
11204 if test "${ac_cv_search_opendir+set}" = set; then
11207 ac_cv_search_opendir=no
11209 rm conftest.$ac_ext
11210 LIBS=$ac_func_search_save_LIBS
11212 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11213 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11214 ac_res=$ac_cv_search_opendir
11215 if test "$ac_res" != no; then
11216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11222 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11223 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11224 if test "${ac_cv_header_mmap_anon+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 ac_cpp='$CPP $CPPFLAGS'
11229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11233 cat >conftest.$ac_ext <<_ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 #include <sys/mman.h>
11240 #include <unistd.h>
11245 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11259 grep -v '^ *+' conftest.er1 >conftest.err
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265 { (case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_try") 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_cv_header_mmap_anon=yes
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_cv_header_mmap_anon=no
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 ac_cpp='$CPP $CPPFLAGS'
11295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11301 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11302 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11303 if test "$ac_cv_header_mmap_anon" = yes; then
11305 cat >>confdefs.h <<\_ACEOF
11306 #define HAVE_MMAP_ANONYMOUS 1
11311 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11312 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11313 if test "${ac_cv_header_stat_broken+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 #include <sys/types.h>
11323 #include <sys/stat.h>
11325 #if defined S_ISBLK && defined S_IFDIR
11326 # if S_ISBLK (S_IFDIR)
11331 #if defined S_ISBLK && defined S_IFCHR
11332 # if S_ISBLK (S_IFCHR)
11337 #if defined S_ISLNK && defined S_IFREG
11338 # if S_ISLNK (S_IFREG)
11343 #if defined S_ISSOCK && defined S_IFREG
11344 # if S_ISSOCK (S_IFREG)
11350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11351 $EGREP "You lose" >/dev/null 2>&1; then
11352 ac_cv_header_stat_broken=yes
11354 ac_cv_header_stat_broken=no
11359 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11360 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11361 if test $ac_cv_header_stat_broken = yes; then
11363 cat >>confdefs.h <<\_ACEOF
11364 #define STAT_MACROS_BROKEN 1
11369 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11370 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11371 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 #include <sys/types.h>
11381 #include <sys/wait.h>
11382 #ifndef WEXITSTATUS
11383 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11386 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11394 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11399 rm -f conftest.$ac_objext
11400 if { (ac_try="$ac_compile"
11401 case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_compile") 2>conftest.er1
11408 grep -v '^ *+' conftest.er1 >conftest.err
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
11413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11414 { (case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_try") 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; } &&
11423 { ac_try='test -s conftest.$ac_objext'
11424 { (case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_try") 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; }; then
11433 ac_cv_header_sys_wait_h=yes
11435 echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_cv_header_sys_wait_h=no
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11444 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11445 if test $ac_cv_header_sys_wait_h = yes; then
11447 cat >>confdefs.h <<\_ACEOF
11448 #define HAVE_SYS_WAIT_H 1
11453 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11454 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11455 if test "${ac_cv_header_time+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 cat >conftest.$ac_ext <<_ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 #include <sys/types.h>
11465 #include <sys/time.h>
11471 if ((struct tm *) 0)
11477 rm -f conftest.$ac_objext
11478 if { (ac_try="$ac_compile"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_compile") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest.$ac_objext'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_header_time=yes
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 ac_cv_header_time=no
11519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11522 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11523 if test $ac_cv_header_time = yes; then
11525 cat >>confdefs.h <<\_ACEOF
11526 #define TIME_WITH_SYS_TIME 1
11533 ac_cpp='$CXXCPP $CPPFLAGS'
11534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11539 ac_cpp='$CXXCPP $CPPFLAGS'
11540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11543 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11544 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11545 if test -z "$CXXCPP"; then
11546 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 # Double quotes because CXXCPP needs to be expanded
11550 for CXXCPP in "$CXX -E" "/lib/cpp"
11552 ac_preproc_ok=false
11553 for ac_cxx_preproc_warn_flag in '' yes
11555 # Use a header file that comes with gcc, so configuring glibc
11556 # with a fresh cross-compiler works.
11557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11558 # <limits.h> exists even on freestanding compilers.
11559 # On the NeXT, cc -E runs the code through the compiler's parser,
11560 # not just through cpp. "Syntax error" is here to catch this case.
11561 cat >conftest.$ac_ext <<_ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11568 # include <limits.h>
11570 # include <assert.h>
11574 if { (ac_try="$ac_cpp conftest.$ac_ext"
11575 case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11582 grep -v '^ *+' conftest.er1 >conftest.err
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } >/dev/null; then
11587 if test -s conftest.err; then
11588 ac_cpp_err=$ac_cxx_preproc_warn_flag
11589 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11596 if test -z "$ac_cpp_err"; then
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 # Broken: fails on valid input.
11606 rm -f conftest.err conftest.$ac_ext
11608 # OK, works on sane cases. Now check whether nonexistent headers
11609 # can be detected and how.
11610 cat >conftest.$ac_ext <<_ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 #include <ac_nonexistent.h>
11618 if { (ac_try="$ac_cpp conftest.$ac_ext"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } >/dev/null; then
11631 if test -s conftest.err; then
11632 ac_cpp_err=$ac_cxx_preproc_warn_flag
11633 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11640 if test -z "$ac_cpp_err"; then
11641 # Broken: success on invalid input.
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 # Passes both tests.
11652 rm -f conftest.err conftest.$ac_ext
11655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11656 rm -f conftest.err conftest.$ac_ext
11657 if $ac_preproc_ok; then
11662 ac_cv_prog_CXXCPP=$CXXCPP
11665 CXXCPP=$ac_cv_prog_CXXCPP
11667 ac_cv_prog_CXXCPP=$CXXCPP
11669 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11670 echo "${ECHO_T}$CXXCPP" >&6; }
11671 ac_preproc_ok=false
11672 for ac_cxx_preproc_warn_flag in '' yes
11674 # Use a header file that comes with gcc, so configuring glibc
11675 # with a fresh cross-compiler works.
11676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11677 # <limits.h> exists even on freestanding compilers.
11678 # On the NeXT, cc -E runs the code through the compiler's parser,
11679 # not just through cpp. "Syntax error" is here to catch this case.
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11687 # include <limits.h>
11689 # include <assert.h>
11693 if { (ac_try="$ac_cpp conftest.$ac_ext"
11694 case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11701 grep -v '^ *+' conftest.er1 >conftest.err
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } >/dev/null; then
11706 if test -s conftest.err; then
11707 ac_cpp_err=$ac_cxx_preproc_warn_flag
11708 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11715 if test -z "$ac_cpp_err"; then
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 # Broken: fails on valid input.
11725 rm -f conftest.err conftest.$ac_ext
11727 # OK, works on sane cases. Now check whether nonexistent headers
11728 # can be detected and how.
11729 cat >conftest.$ac_ext <<_ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 #include <ac_nonexistent.h>
11737 if { (ac_try="$ac_cpp conftest.$ac_ext"
11738 case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11745 grep -v '^ *+' conftest.er1 >conftest.err
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } >/dev/null; then
11750 if test -s conftest.err; then
11751 ac_cpp_err=$ac_cxx_preproc_warn_flag
11752 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11759 if test -z "$ac_cpp_err"; then
11760 # Broken: success on invalid input.
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 # Passes both tests.
11771 rm -f conftest.err conftest.$ac_ext
11774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11775 rm -f conftest.err conftest.$ac_ext
11776 if $ac_preproc_ok; then
11779 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11780 See \`config.log' for more details." >&5
11781 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11782 See \`config.log' for more details." >&2;}
11783 { (exit 1); exit 1; }; }
11787 ac_cpp='$CXXCPP $CPPFLAGS'
11788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11794 for ac_header in cxxabi.h
11796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 ac_res=`eval echo '${'$as_ac_Header'}'`
11804 { echo "$as_me:$LINENO: result: $ac_res" >&5
11805 echo "${ECHO_T}$ac_res" >&6; }
11807 # Is the header compilable?
11808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 $ac_includes_default
11817 #include <$ac_header>
11819 rm -f conftest.$ac_objext
11820 if { (ac_try="$ac_compile"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_compile") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11834 { (case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_try") 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest.$ac_objext'
11844 { (case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_try") 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 ac_header_compiler=yes
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_header_compiler=no
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11863 echo "${ECHO_T}$ac_header_compiler" >&6; }
11865 # Is the header present?
11866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11868 cat >conftest.$ac_ext <<_ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 #include <$ac_header>
11876 if { (ac_try="$ac_cpp conftest.$ac_ext"
11877 case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11884 grep -v '^ *+' conftest.er1 >conftest.err
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } >/dev/null; then
11889 if test -s conftest.err; then
11890 ac_cpp_err=$ac_cxx_preproc_warn_flag
11891 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11898 if test -z "$ac_cpp_err"; then
11899 ac_header_preproc=yes
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_header_preproc=no
11907 rm -f conftest.err conftest.$ac_ext
11908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11909 echo "${ECHO_T}$ac_header_preproc" >&6; }
11911 # So? What about this header?
11912 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11918 ac_header_preproc=yes
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11934 ## ------------------------------------ ##
11935 ## Report this to http://llvm.org/bugs/ ##
11936 ## ------------------------------------ ##
11938 ) | sed "s/^/$as_me: WARNING: /" >&2
11941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 eval "$as_ac_Header=\$ac_header_preproc"
11948 ac_res=`eval echo '${'$as_ac_Header'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11973 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 ac_res=`eval echo '${'$as_ac_Header'}'`
11983 { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11986 # Is the header compilable?
11987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11989 cat >conftest.$ac_ext <<_ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11996 #include <$ac_header>
11998 rm -f conftest.$ac_objext
11999 if { (ac_try="$ac_compile"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12007 grep -v '^ *+' conftest.er1 >conftest.err
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest.$ac_objext'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_header_compiler=yes
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12037 ac_header_compiler=no
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12042 echo "${ECHO_T}$ac_header_compiler" >&6; }
12044 # Is the header present?
12045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12047 cat >conftest.$ac_ext <<_ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 #include <$ac_header>
12055 if { (ac_try="$ac_cpp conftest.$ac_ext"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } >/dev/null; then
12068 if test -s conftest.err; then
12069 ac_cpp_err=$ac_c_preproc_warn_flag
12070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12077 if test -z "$ac_cpp_err"; then
12078 ac_header_preproc=yes
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 ac_header_preproc=no
12086 rm -f conftest.err conftest.$ac_ext
12087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12088 echo "${ECHO_T}$ac_header_preproc" >&6; }
12090 # So? What about this header?
12091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12097 ac_header_preproc=yes
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12113 ## ------------------------------------ ##
12114 ## Report this to http://llvm.org/bugs/ ##
12115 ## ------------------------------------ ##
12117 ) | sed "s/^/$as_me: WARNING: /" >&2
12120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 eval "$as_ac_Header=\$ac_header_preproc"
12127 ac_res=`eval echo '${'$as_ac_Header'}'`
12128 { echo "$as_me:$LINENO: result: $ac_res" >&5
12129 echo "${ECHO_T}$ac_res" >&6; }
12132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12133 cat >>confdefs.h <<_ACEOF
12134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12147 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 ac_res=`eval echo '${'$as_ac_Header'}'`
12157 { echo "$as_me:$LINENO: result: $ac_res" >&5
12158 echo "${ECHO_T}$ac_res" >&6; }
12160 # Is the header compilable?
12161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12163 cat >conftest.$ac_ext <<_ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12170 #include <$ac_header>
12172 rm -f conftest.$ac_objext
12173 if { (ac_try="$ac_compile"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_header_compiler=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 ac_header_compiler=no
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12216 echo "${ECHO_T}$ac_header_compiler" >&6; }
12218 # Is the header present?
12219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 #include <$ac_header>
12229 if { (ac_try="$ac_cpp conftest.$ac_ext"
12230 case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } >/dev/null; then
12242 if test -s conftest.err; then
12243 ac_cpp_err=$ac_c_preproc_warn_flag
12244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12251 if test -z "$ac_cpp_err"; then
12252 ac_header_preproc=yes
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12257 ac_header_preproc=no
12260 rm -f conftest.err conftest.$ac_ext
12261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12262 echo "${ECHO_T}$ac_header_preproc" >&6; }
12264 # So? What about this header?
12265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12271 ac_header_preproc=yes
12274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12287 ## ------------------------------------ ##
12288 ## Report this to http://llvm.org/bugs/ ##
12289 ## ------------------------------------ ##
12291 ) | sed "s/^/$as_me: WARNING: /" >&2
12294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 eval "$as_ac_Header=\$ac_header_preproc"
12301 ac_res=`eval echo '${'$as_ac_Header'}'`
12302 { echo "$as_me:$LINENO: result: $ac_res" >&5
12303 echo "${ECHO_T}$ac_res" >&6; }
12306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12316 for ac_header in utime.h
12318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 ac_res=`eval echo '${'$as_ac_Header'}'`
12326 { echo "$as_me:$LINENO: result: $ac_res" >&5
12327 echo "${ECHO_T}$ac_res" >&6; }
12329 # Is the header compilable?
12330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12332 cat >conftest.$ac_ext <<_ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 $ac_includes_default
12339 #include <$ac_header>
12341 rm -f conftest.$ac_objext
12342 if { (ac_try="$ac_compile"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_compile") 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12356 { (case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_try") 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest.$ac_objext'
12366 { (case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_try") 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_header_compiler=yes
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 ac_header_compiler=no
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12385 echo "${ECHO_T}$ac_header_compiler" >&6; }
12387 # Is the header present?
12388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12390 cat >conftest.$ac_ext <<_ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 #include <$ac_header>
12398 if { (ac_try="$ac_cpp conftest.$ac_ext"
12399 case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } >/dev/null; then
12411 if test -s conftest.err; then
12412 ac_cpp_err=$ac_c_preproc_warn_flag
12413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12420 if test -z "$ac_cpp_err"; then
12421 ac_header_preproc=yes
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12426 ac_header_preproc=no
12429 rm -f conftest.err conftest.$ac_ext
12430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12431 echo "${ECHO_T}$ac_header_preproc" >&6; }
12433 # So? What about this header?
12434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12440 ac_header_preproc=yes
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12456 ## ------------------------------------ ##
12457 ## Report this to http://llvm.org/bugs/ ##
12458 ## ------------------------------------ ##
12460 ) | sed "s/^/$as_me: WARNING: /" >&2
12463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 eval "$as_ac_Header=\$ac_header_preproc"
12470 ac_res=`eval echo '${'$as_ac_Header'}'`
12471 { echo "$as_me:$LINENO: result: $ac_res" >&5
12472 echo "${ECHO_T}$ac_res" >&6; }
12475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12476 cat >>confdefs.h <<_ACEOF
12477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 ac_res=`eval echo '${'$as_ac_Header'}'`
12499 { echo "$as_me:$LINENO: result: $ac_res" >&5
12500 echo "${ECHO_T}$ac_res" >&6; }
12502 # Is the header compilable?
12503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12505 cat >conftest.$ac_ext <<_ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 $ac_includes_default
12512 #include <$ac_header>
12514 rm -f conftest.$ac_objext
12515 if { (ac_try="$ac_compile"
12516 case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_compile") 2>conftest.er1
12523 grep -v '^ *+' conftest.er1 >conftest.err
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529 { (case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_try") 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest.$ac_objext'
12539 { (case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_try") 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 ac_header_compiler=yes
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 ac_header_compiler=no
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12558 echo "${ECHO_T}$ac_header_compiler" >&6; }
12560 # Is the header present?
12561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12569 #include <$ac_header>
12571 if { (ac_try="$ac_cpp conftest.$ac_ext"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12579 grep -v '^ *+' conftest.er1 >conftest.err
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } >/dev/null; then
12584 if test -s conftest.err; then
12585 ac_cpp_err=$ac_c_preproc_warn_flag
12586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12593 if test -z "$ac_cpp_err"; then
12594 ac_header_preproc=yes
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12599 ac_header_preproc=no
12602 rm -f conftest.err conftest.$ac_ext
12603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12604 echo "${ECHO_T}$ac_header_preproc" >&6; }
12606 # So? What about this header?
12607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12613 ac_header_preproc=yes
12616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12629 ## ------------------------------------ ##
12630 ## Report this to http://llvm.org/bugs/ ##
12631 ## ------------------------------------ ##
12633 ) | sed "s/^/$as_me: WARNING: /" >&2
12636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 eval "$as_ac_Header=\$ac_header_preproc"
12643 ac_res=`eval echo '${'$as_ac_Header'}'`
12644 { echo "$as_me:$LINENO: result: $ac_res" >&5
12645 echo "${ECHO_T}$ac_res" >&6; }
12648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12649 cat >>confdefs.h <<_ACEOF
12650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12660 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 ac_res=`eval echo '${'$as_ac_Header'}'`
12670 { echo "$as_me:$LINENO: result: $ac_res" >&5
12671 echo "${ECHO_T}$ac_res" >&6; }
12673 # Is the header compilable?
12674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 $ac_includes_default
12683 #include <$ac_header>
12685 rm -f conftest.$ac_objext
12686 if { (ac_try="$ac_compile"
12687 case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_compile") 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest.$ac_objext'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_header_compiler=yes
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 ac_header_compiler=no
12727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12729 echo "${ECHO_T}$ac_header_compiler" >&6; }
12731 # Is the header present?
12732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12740 #include <$ac_header>
12742 if { (ac_try="$ac_cpp conftest.$ac_ext"
12743 case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12750 grep -v '^ *+' conftest.er1 >conftest.err
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } >/dev/null; then
12755 if test -s conftest.err; then
12756 ac_cpp_err=$ac_c_preproc_warn_flag
12757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12764 if test -z "$ac_cpp_err"; then
12765 ac_header_preproc=yes
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 ac_header_preproc=no
12773 rm -f conftest.err conftest.$ac_ext
12774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12775 echo "${ECHO_T}$ac_header_preproc" >&6; }
12777 # So? What about this header?
12778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12784 ac_header_preproc=yes
12787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12800 ## ------------------------------------ ##
12801 ## Report this to http://llvm.org/bugs/ ##
12802 ## ------------------------------------ ##
12804 ) | sed "s/^/$as_me: WARNING: /" >&2
12807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 eval "$as_ac_Header=\$ac_header_preproc"
12814 ac_res=`eval echo '${'$as_ac_Header'}'`
12815 { echo "$as_me:$LINENO: result: $ac_res" >&5
12816 echo "${ECHO_T}$ac_res" >&6; }
12819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12820 cat >>confdefs.h <<_ACEOF
12821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12829 for ac_header in valgrind/valgrind.h
12831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 ac_res=`eval echo '${'$as_ac_Header'}'`
12839 { echo "$as_me:$LINENO: result: $ac_res" >&5
12840 echo "${ECHO_T}$ac_res" >&6; }
12842 # Is the header compilable?
12843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12845 cat >conftest.$ac_ext <<_ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 $ac_includes_default
12852 #include <$ac_header>
12854 rm -f conftest.$ac_objext
12855 if { (ac_try="$ac_compile"
12856 case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_compile") 2>conftest.er1
12863 grep -v '^ *+' conftest.er1 >conftest.err
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
12868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12869 { (case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_try") 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } &&
12878 { ac_try='test -s conftest.$ac_objext'
12879 { (case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_try") 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 ac_header_compiler=yes
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ac_header_compiler=no
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12898 echo "${ECHO_T}$ac_header_compiler" >&6; }
12900 # Is the header present?
12901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12903 cat >conftest.$ac_ext <<_ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909 #include <$ac_header>
12911 if { (ac_try="$ac_cpp conftest.$ac_ext"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } >/dev/null; then
12924 if test -s conftest.err; then
12925 ac_cpp_err=$ac_c_preproc_warn_flag
12926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12933 if test -z "$ac_cpp_err"; then
12934 ac_header_preproc=yes
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ac_header_preproc=no
12942 rm -f conftest.err conftest.$ac_ext
12943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12944 echo "${ECHO_T}$ac_header_preproc" >&6; }
12946 # So? What about this header?
12947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12953 ac_header_preproc=yes
12956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12969 ## ------------------------------------ ##
12970 ## Report this to http://llvm.org/bugs/ ##
12971 ## ------------------------------------ ##
12973 ) | sed "s/^/$as_me: WARNING: /" >&2
12976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 eval "$as_ac_Header=\$ac_header_preproc"
12983 ac_res=`eval echo '${'$as_ac_Header'}'`
12984 { echo "$as_me:$LINENO: result: $ac_res" >&5
12985 echo "${ECHO_T}$ac_res" >&6; }
12988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12989 cat >>confdefs.h <<_ACEOF
12990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12998 for ac_header in fenv.h
13000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 ac_res=`eval echo '${'$as_ac_Header'}'`
13008 { echo "$as_me:$LINENO: result: $ac_res" >&5
13009 echo "${ECHO_T}$ac_res" >&6; }
13011 # Is the header compilable?
13012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13014 cat >conftest.$ac_ext <<_ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13020 $ac_includes_default
13021 #include <$ac_header>
13023 rm -f conftest.$ac_objext
13024 if { (ac_try="$ac_compile"
13025 case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_compile") 2>conftest.er1
13032 grep -v '^ *+' conftest.er1 >conftest.err
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest.$ac_objext'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_header_compiler=yes
13059 echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13062 ac_header_compiler=no
13065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067 echo "${ECHO_T}$ac_header_compiler" >&6; }
13069 # Is the header present?
13070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13072 cat >conftest.$ac_ext <<_ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078 #include <$ac_header>
13080 if { (ac_try="$ac_cpp conftest.$ac_ext"
13081 case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13088 grep -v '^ *+' conftest.er1 >conftest.err
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } >/dev/null; then
13093 if test -s conftest.err; then
13094 ac_cpp_err=$ac_c_preproc_warn_flag
13095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13102 if test -z "$ac_cpp_err"; then
13103 ac_header_preproc=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_header_preproc=no
13111 rm -f conftest.err conftest.$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13113 echo "${ECHO_T}$ac_header_preproc" >&6; }
13115 # So? What about this header?
13116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13122 ac_header_preproc=yes
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13138 ## ------------------------------------ ##
13139 ## Report this to http://llvm.org/bugs/ ##
13140 ## ------------------------------------ ##
13142 ) | sed "s/^/$as_me: WARNING: /" >&2
13145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 eval "$as_ac_Header=\$ac_header_preproc"
13152 ac_res=`eval echo '${'$as_ac_Header'}'`
13153 { echo "$as_me:$LINENO: result: $ac_res" >&5
13154 echo "${ECHO_T}$ac_res" >&6; }
13157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13158 cat >>confdefs.h <<_ACEOF
13159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13166 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13167 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13168 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 cat >conftest.$ac_ext <<_ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13182 #ifndef FE_ALL_EXCEPT
13183 char *p = (char *) FE_ALL_EXCEPT;
13191 rm -f conftest.$ac_objext
13192 if { (ac_try="$ac_compile"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_compile") 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13206 { (case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_try") 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; } &&
13215 { ac_try='test -s conftest.$ac_objext'
13216 { (case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_try") 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }; then
13225 ac_cv_have_decl_FE_ALL_EXCEPT=yes
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ac_cv_have_decl_FE_ALL_EXCEPT=no
13233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13236 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13237 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13239 cat >>confdefs.h <<_ACEOF
13240 #define HAVE_DECL_FE_ALL_EXCEPT 1
13245 cat >>confdefs.h <<_ACEOF
13246 #define HAVE_DECL_FE_ALL_EXCEPT 0
13251 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13252 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13253 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13268 char *p = (char *) FE_INEXACT;
13276 rm -f conftest.$ac_objext
13277 if { (ac_try="$ac_compile"
13278 case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_compile") 2>conftest.er1
13285 grep -v '^ *+' conftest.er1 >conftest.err
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291 { (case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_try") 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } &&
13300 { ac_try='test -s conftest.$ac_objext'
13301 { (case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_try") 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 ac_cv_have_decl_FE_INEXACT=yes
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 ac_cv_have_decl_FE_INEXACT=no
13318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13321 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13322 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13324 cat >>confdefs.h <<_ACEOF
13325 #define HAVE_DECL_FE_INEXACT 1
13330 cat >>confdefs.h <<_ACEOF
13331 #define HAVE_DECL_FE_INEXACT 0
13338 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13340 for ac_header in pthread.h
13342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 ac_res=`eval echo '${'$as_ac_Header'}'`
13350 { echo "$as_me:$LINENO: result: $ac_res" >&5
13351 echo "${ECHO_T}$ac_res" >&6; }
13353 # Is the header compilable?
13354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 $ac_includes_default
13363 #include <$ac_header>
13365 rm -f conftest.$ac_objext
13366 if { (ac_try="$ac_compile"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_compile") 2>conftest.er1
13374 grep -v '^ *+' conftest.er1 >conftest.err
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380 { (case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_try") 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest.$ac_objext'
13390 { (case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_try") 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_header_compiler=yes
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ac_header_compiler=no
13407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13409 echo "${ECHO_T}$ac_header_compiler" >&6; }
13411 # Is the header present?
13412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 #include <$ac_header>
13422 if { (ac_try="$ac_cpp conftest.$ac_ext"
13423 case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13430 grep -v '^ *+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } >/dev/null; then
13435 if test -s conftest.err; then
13436 ac_cpp_err=$ac_c_preproc_warn_flag
13437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13444 if test -z "$ac_cpp_err"; then
13445 ac_header_preproc=yes
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ac_header_preproc=no
13453 rm -f conftest.err conftest.$ac_ext
13454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13455 echo "${ECHO_T}$ac_header_preproc" >&6; }
13457 # So? What about this header?
13458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13464 ac_header_preproc=yes
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13480 ## ------------------------------------ ##
13481 ## Report this to http://llvm.org/bugs/ ##
13482 ## ------------------------------------ ##
13484 ) | sed "s/^/$as_me: WARNING: /" >&2
13487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 eval "$as_ac_Header=\$ac_header_preproc"
13494 ac_res=`eval echo '${'$as_ac_Header'}'`
13495 { echo "$as_me:$LINENO: result: $ac_res" >&5
13496 echo "${ECHO_T}$ac_res" >&6; }
13499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13500 cat >>confdefs.h <<_ACEOF
13501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13516 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13518 for ac_header in zlib.h
13520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 ac_res=`eval echo '${'$as_ac_Header'}'`
13528 { echo "$as_me:$LINENO: result: $ac_res" >&5
13529 echo "${ECHO_T}$ac_res" >&6; }
13531 # Is the header compilable?
13532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13534 cat >conftest.$ac_ext <<_ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 $ac_includes_default
13541 #include <$ac_header>
13543 rm -f conftest.$ac_objext
13544 if { (ac_try="$ac_compile"
13545 case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_compile") 2>conftest.er1
13552 grep -v '^ *+' conftest.er1 >conftest.err
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558 { (case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_try") 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest.$ac_objext'
13568 { (case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_try") 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13577 ac_header_compiler=yes
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 ac_header_compiler=no
13585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13587 echo "${ECHO_T}$ac_header_compiler" >&6; }
13589 # Is the header present?
13590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13592 cat >conftest.$ac_ext <<_ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13598 #include <$ac_header>
13600 if { (ac_try="$ac_cpp conftest.$ac_ext"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13608 grep -v '^ *+' conftest.er1 >conftest.err
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } >/dev/null; then
13613 if test -s conftest.err; then
13614 ac_cpp_err=$ac_c_preproc_warn_flag
13615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13622 if test -z "$ac_cpp_err"; then
13623 ac_header_preproc=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_header_preproc=no
13631 rm -f conftest.err conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633 echo "${ECHO_T}$ac_header_preproc" >&6; }
13635 # So? What about this header?
13636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13642 ac_header_preproc=yes
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13658 ## ------------------------------------ ##
13659 ## Report this to http://llvm.org/bugs/ ##
13660 ## ------------------------------------ ##
13662 ) | sed "s/^/$as_me: WARNING: /" >&2
13665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 eval "$as_ac_Header=\$ac_header_preproc"
13672 ac_res=`eval echo '${'$as_ac_Header'}'`
13673 { echo "$as_me:$LINENO: result: $ac_res" >&5
13674 echo "${ECHO_T}$ac_res" >&6; }
13677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13678 cat >>confdefs.h <<_ACEOF
13679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13695 if test "$llvm_cv_enable_libffi" = "yes" ; then
13698 for ac_header in ffi.h ffi/ffi.h
13700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 ac_res=`eval echo '${'$as_ac_Header'}'`
13708 { echo "$as_me:$LINENO: result: $ac_res" >&5
13709 echo "${ECHO_T}$ac_res" >&6; }
13711 # Is the header compilable?
13712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13714 cat >conftest.$ac_ext <<_ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 $ac_includes_default
13721 #include <$ac_header>
13723 rm -f conftest.$ac_objext
13724 if { (ac_try="$ac_compile"
13725 case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compile") 2>conftest.er1
13732 grep -v '^ *+' conftest.er1 >conftest.err
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13738 { (case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_try") 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_try") 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_header_compiler=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_header_compiler=no
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13767 echo "${ECHO_T}$ac_header_compiler" >&6; }
13769 # Is the header present?
13770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 #include <$ac_header>
13780 if { (ac_try="$ac_cpp conftest.$ac_ext"
13781 case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13788 grep -v '^ *+' conftest.er1 >conftest.err
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } >/dev/null; then
13793 if test -s conftest.err; then
13794 ac_cpp_err=$ac_c_preproc_warn_flag
13795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13802 if test -z "$ac_cpp_err"; then
13803 ac_header_preproc=yes
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_header_preproc=no
13811 rm -f conftest.err conftest.$ac_ext
13812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13813 echo "${ECHO_T}$ac_header_preproc" >&6; }
13815 # So? What about this header?
13816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13822 ac_header_preproc=yes
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13838 ## ------------------------------------ ##
13839 ## Report this to http://llvm.org/bugs/ ##
13840 ## ------------------------------------ ##
13842 ) | sed "s/^/$as_me: WARNING: /" >&2
13845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 eval "$as_ac_Header=\$ac_header_preproc"
13852 ac_res=`eval echo '${'$as_ac_Header'}'`
13853 { echo "$as_me:$LINENO: result: $ac_res" >&5
13854 echo "${ECHO_T}$ac_res" >&6; }
13857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13858 cat >>confdefs.h <<_ACEOF
13859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13869 for ac_header in CrashReporterClient.h
13871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 ac_res=`eval echo '${'$as_ac_Header'}'`
13879 { echo "$as_me:$LINENO: result: $ac_res" >&5
13880 echo "${ECHO_T}$ac_res" >&6; }
13882 # Is the header compilable?
13883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13885 cat >conftest.$ac_ext <<_ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 $ac_includes_default
13892 #include <$ac_header>
13894 rm -f conftest.$ac_objext
13895 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13903 grep -v '^ *+' conftest.er1 >conftest.err
13905 cat conftest.err >&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } &&
13908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13909 { (case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_try") 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_try") 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 ac_header_compiler=yes
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13933 ac_header_compiler=no
13936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13938 echo "${ECHO_T}$ac_header_compiler" >&6; }
13940 # Is the header present?
13941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 #include <$ac_header>
13951 if { (ac_try="$ac_cpp conftest.$ac_ext"
13952 case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13959 grep -v '^ *+' conftest.er1 >conftest.err
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } >/dev/null; then
13964 if test -s conftest.err; then
13965 ac_cpp_err=$ac_c_preproc_warn_flag
13966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13973 if test -z "$ac_cpp_err"; then
13974 ac_header_preproc=yes
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_header_preproc=no
13982 rm -f conftest.err conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13984 echo "${ECHO_T}$ac_header_preproc" >&6; }
13986 # So? What about this header?
13987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13993 ac_header_preproc=yes
13996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14009 ## ------------------------------------ ##
14010 ## Report this to http://llvm.org/bugs/ ##
14011 ## ------------------------------------ ##
14013 ) | sed "s/^/$as_me: WARNING: /" >&2
14016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 eval "$as_ac_Header=\$ac_header_preproc"
14023 ac_res=`eval echo '${'$as_ac_Header'}'`
14024 { echo "$as_me:$LINENO: result: $ac_res" >&5
14025 echo "${ECHO_T}$ac_res" >&6; }
14028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14029 cat >>confdefs.h <<_ACEOF
14030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14038 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14039 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14040 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14048 extern const char *__crashreporter_info__;
14050 __crashreporter_info__ = "test";
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (ac_try="$ac_link"
14058 case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_link") 2>conftest.er1
14065 grep -v '^ *+' conftest.er1 >conftest.err
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14071 { (case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_try") 2>&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; } &&
14080 { ac_try='test -s conftest$ac_exeext'
14081 { (case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_try") 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14091 { echo "$as_me:$LINENO: result: yes" >&5
14092 echo "${ECHO_T}yes" >&6; }
14094 cat >>confdefs.h <<\_ACEOF
14095 #define HAVE_CRASHREPORTER_INFO 1
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14104 { echo "$as_me:$LINENO: result: no" >&5
14105 echo "${ECHO_T}no" >&6; }
14107 cat >>confdefs.h <<\_ACEOF
14108 #define HAVE_CRASHREPORTER_INFO 0
14114 rm -f core conftest.err conftest.$ac_objext \
14115 conftest$ac_exeext conftest.$ac_ext
14119 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14120 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14121 if test "${ac_cv_huge_val_sanity+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 ac_cpp='$CXXCPP $CPPFLAGS'
14127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14131 ac_save_CXXFLAGS=$CXXFLAGS
14132 CXXFLAGS="$CXXFLAGS -pedantic"
14133 if test "$cross_compiling" = yes; then
14134 ac_cv_huge_val_sanity=yes
14136 cat >conftest.$ac_ext <<_ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14146 double x = HUGE_VAL; return x != x;
14151 rm -f conftest$ac_exeext
14152 if { (ac_try="$ac_link"
14153 case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_link") 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14162 { (case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_try") 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_cv_huge_val_sanity=yes
14173 echo "$as_me: program exited with status $ac_status" >&5
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ( exit $ac_status )
14178 ac_cv_huge_val_sanity=no
14180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14184 CXXFLAGS=$ac_save_CXXFLAGS
14186 ac_cpp='$CPP $CPPFLAGS'
14187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14193 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14194 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14195 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14198 { echo "$as_me:$LINENO: checking for pid_t" >&5
14199 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14200 if test "${ac_cv_type_pid_t+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 cat >conftest.$ac_ext <<_ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14209 $ac_includes_default
14210 typedef pid_t ac__type_new_;
14214 if ((ac__type_new_ *) 0)
14216 if (sizeof (ac__type_new_))
14222 rm -f conftest.$ac_objext
14223 if { (ac_try="$ac_compile"
14224 case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_compile") 2>conftest.er1
14231 grep -v '^ *+' conftest.er1 >conftest.err
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14237 { (case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_try") 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_try") 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_type_pid_t=yes
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_cv_type_pid_t=no
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14267 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14268 if test $ac_cv_type_pid_t = yes; then
14272 cat >>confdefs.h <<_ACEOF
14278 { echo "$as_me:$LINENO: checking for size_t" >&5
14279 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14280 if test "${ac_cv_type_size_t+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 $ac_includes_default
14290 typedef size_t ac__type_new_;
14294 if ((ac__type_new_ *) 0)
14296 if (sizeof (ac__type_new_))
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14311 grep -v '^ *+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_type_size_t=yes
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_cv_type_size_t=no
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14347 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14348 if test $ac_cv_type_size_t = yes; then
14352 cat >>confdefs.h <<_ACEOF
14353 #define size_t unsigned int
14359 cat >>confdefs.h <<_ACEOF
14360 #define RETSIGTYPE void
14363 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14364 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14365 if test "${ac_cv_struct_tm+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 cat >conftest.$ac_ext <<_ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include <sys/types.h>
14380 struct tm *tp; tp->tm_sec;
14385 rm -f conftest.$ac_objext
14386 if { (ac_try="$ac_compile"
14387 case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_compile") 2>conftest.er1
14394 grep -v '^ *+' conftest.er1 >conftest.err
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14400 { (case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_try") 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try='test -s conftest.$ac_objext'
14410 { (case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14419 ac_cv_struct_tm=time.h
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14424 ac_cv_struct_tm=sys/time.h
14427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14430 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14431 if test $ac_cv_struct_tm = sys/time.h; then
14433 cat >>confdefs.h <<\_ACEOF
14434 #define TM_IN_SYS_TIME 1
14439 { echo "$as_me:$LINENO: checking for int64_t" >&5
14440 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14441 if test "${ac_cv_type_int64_t+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 $ac_includes_default
14451 typedef int64_t ac__type_new_;
14455 if ((ac__type_new_ *) 0)
14457 if (sizeof (ac__type_new_))
14463 rm -f conftest.$ac_objext
14464 if { (ac_try="$ac_compile"
14465 case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_compile") 2>conftest.er1
14472 grep -v '^ *+' conftest.er1 >conftest.err
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14478 { (case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_try") 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest.$ac_objext'
14488 { (case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_try") 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_type_int64_t=yes
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_cv_type_int64_t=no
14505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14508 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14509 if test $ac_cv_type_int64_t = yes; then
14511 cat >>confdefs.h <<_ACEOF
14512 #define HAVE_INT64_T 1
14517 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14518 echo "$as_me: error: Type int64_t required but not found" >&2;}
14519 { (exit 1); exit 1; }; }
14522 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14523 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14524 if test "${ac_cv_type_uint64_t+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 $ac_includes_default
14534 typedef uint64_t ac__type_new_;
14538 if ((ac__type_new_ *) 0)
14540 if (sizeof (ac__type_new_))
14546 rm -f conftest.$ac_objext
14547 if { (ac_try="$ac_compile"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_compile") 2>conftest.er1
14555 grep -v '^ *+' conftest.er1 >conftest.err
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; } &&
14570 { ac_try='test -s conftest.$ac_objext'
14571 { (case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_try") 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_cv_type_uint64_t=yes
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_cv_type_uint64_t=no
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14591 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14592 if test $ac_cv_type_uint64_t = yes; then
14594 cat >>confdefs.h <<_ACEOF
14595 #define HAVE_UINT64_T 1
14600 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14601 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14602 if test "${ac_cv_type_u_int64_t+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 cat >conftest.$ac_ext <<_ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 $ac_includes_default
14612 typedef u_int64_t ac__type_new_;
14616 if ((ac__type_new_ *) 0)
14618 if (sizeof (ac__type_new_))
14624 rm -f conftest.$ac_objext
14625 if { (ac_try="$ac_compile"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_compile") 2>conftest.er1
14633 grep -v '^ *+' conftest.er1 >conftest.err
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14639 { (case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_try") 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; } &&
14648 { ac_try='test -s conftest.$ac_objext'
14649 { (case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_try") 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 ac_cv_type_u_int64_t=yes
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 ac_cv_type_u_int64_t=no
14666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14669 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14670 if test $ac_cv_type_u_int64_t = yes; then
14672 cat >>confdefs.h <<_ACEOF
14673 #define HAVE_U_INT64_T 1
14678 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14679 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14680 { (exit 1); exit 1; }; }
14694 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14710 #define $ac_func innocuous_$ac_func
14712 /* System header to define __stub macros and hopefully few prototypes,
14713 which can conflict with char $ac_func (); below.
14714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14715 <limits.h> exists even on freestanding compilers. */
14718 # include <limits.h>
14720 # include <assert.h>
14725 /* Override any GCC internal prototype to avoid an error.
14726 Use char because int might match the return type of a GCC
14727 builtin and then its argument prototype would still apply. */
14732 /* The GNU C library defines this for functions which it implements
14733 to always fail with ENOSYS. Some functions are actually named
14734 something starting with __ and the normal name is an alias. */
14735 #if defined __stub_$ac_func || defined __stub___$ac_func
14742 return $ac_func ();
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_link") 2>conftest.er1
14756 grep -v '^ *+' conftest.er1 >conftest.err
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14762 { (case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_try") 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; } &&
14771 { ac_try='test -s conftest$ac_exeext'
14772 { (case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_try") 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 eval "$as_ac_var=yes"
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 eval "$as_ac_var=no"
14789 rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14792 ac_res=`eval echo '${'$as_ac_var'}'`
14793 { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14795 if test `eval echo '${'$as_ac_var'}'` = yes; then
14796 cat >>confdefs.h <<_ACEOF
14797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14807 for ac_func in powf fmodf strtof round
14809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 cat >conftest.$ac_ext <<_ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14823 #define $ac_func innocuous_$ac_func
14825 /* System header to define __stub macros and hopefully few prototypes,
14826 which can conflict with char $ac_func (); below.
14827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14828 <limits.h> exists even on freestanding compilers. */
14831 # include <limits.h>
14833 # include <assert.h>
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14845 /* The GNU C library defines this for functions which it implements
14846 to always fail with ENOSYS. Some functions are actually named
14847 something starting with __ and the normal name is an alias. */
14848 #if defined __stub_$ac_func || defined __stub___$ac_func
14855 return $ac_func ();
14860 rm -f conftest.$ac_objext conftest$ac_exeext
14861 if { (ac_try="$ac_link"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_link") 2>conftest.er1
14869 grep -v '^ *+' conftest.er1 >conftest.err
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest$ac_exeext'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 eval "$as_ac_var=yes"
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 eval "$as_ac_var=no"
14902 rm -f core conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext conftest.$ac_ext
14905 ac_res=`eval echo '${'$as_ac_var'}'`
14906 { echo "$as_me:$LINENO: result: $ac_res" >&5
14907 echo "${ECHO_T}$ac_res" >&6; }
14908 if test `eval echo '${'$as_ac_var'}'` = yes; then
14909 cat >>confdefs.h <<_ACEOF
14910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14921 for ac_func in log log2 log10 exp exp2
14923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14937 #define $ac_func innocuous_$ac_func
14939 /* System header to define __stub macros and hopefully few prototypes,
14940 which can conflict with char $ac_func (); below.
14941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14942 <limits.h> exists even on freestanding compilers. */
14945 # include <limits.h>
14947 # include <assert.h>
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14959 /* The GNU C library defines this for functions which it implements
14960 to always fail with ENOSYS. Some functions are actually named
14961 something starting with __ and the normal name is an alias. */
14962 #if defined __stub_$ac_func || defined __stub___$ac_func
14969 return $ac_func ();
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (ac_try="$ac_link"
14976 case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_link") 2>conftest.er1
14983 grep -v '^ *+' conftest.er1 >conftest.err
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14989 { (case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_try") 2>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest$ac_exeext'
14999 { (case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_try") 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 eval "$as_ac_var=yes"
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 eval "$as_ac_var=no"
15016 rm -f core conftest.err conftest.$ac_objext \
15017 conftest$ac_exeext conftest.$ac_ext
15019 ac_res=`eval echo '${'$as_ac_var'}'`
15020 { echo "$as_me:$LINENO: result: $ac_res" >&5
15021 echo "${ECHO_T}$ac_res" >&6; }
15022 if test `eval echo '${'$as_ac_var'}'` = yes; then
15023 cat >>confdefs.h <<_ACEOF
15024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15035 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 cat >conftest.$ac_ext <<_ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15051 #define $ac_func innocuous_$ac_func
15053 /* System header to define __stub macros and hopefully few prototypes,
15054 which can conflict with char $ac_func (); below.
15055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15056 <limits.h> exists even on freestanding compilers. */
15059 # include <limits.h>
15061 # include <assert.h>
15066 /* Override any GCC internal prototype to avoid an error.
15067 Use char because int might match the return type of a GCC
15068 builtin and then its argument prototype would still apply. */
15073 /* The GNU C library defines this for functions which it implements
15074 to always fail with ENOSYS. Some functions are actually named
15075 something starting with __ and the normal name is an alias. */
15076 #if defined __stub_$ac_func || defined __stub___$ac_func
15083 return $ac_func ();
15088 rm -f conftest.$ac_objext conftest$ac_exeext
15089 if { (ac_try="$ac_link"
15090 case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_link") 2>conftest.er1
15097 grep -v '^ *+' conftest.er1 >conftest.err
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
15102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest$ac_exeext'
15113 { (case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_try") 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 eval "$as_ac_var=yes"
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 eval "$as_ac_var=no"
15130 rm -f core conftest.err conftest.$ac_objext \
15131 conftest$ac_exeext conftest.$ac_ext
15133 ac_res=`eval echo '${'$as_ac_var'}'`
15134 { echo "$as_me:$LINENO: result: $ac_res" >&5
15135 echo "${ECHO_T}$ac_res" >&6; }
15136 if test `eval echo '${'$as_ac_var'}'` = yes; then
15137 cat >>confdefs.h <<_ACEOF
15138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15147 for ac_func in isatty mkdtemp mkstemp
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15163 #define $ac_func innocuous_$ac_func
15165 /* System header to define __stub macros and hopefully few prototypes,
15166 which can conflict with char $ac_func (); below.
15167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168 <limits.h> exists even on freestanding compilers. */
15171 # include <limits.h>
15173 # include <assert.h>
15178 /* Override any GCC internal prototype to avoid an error.
15179 Use char because int might match the return type of a GCC
15180 builtin and then its argument prototype would still apply. */
15185 /* The GNU C library defines this for functions which it implements
15186 to always fail with ENOSYS. Some functions are actually named
15187 something starting with __ and the normal name is an alias. */
15188 #if defined __stub_$ac_func || defined __stub___$ac_func
15195 return $ac_func ();
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_link") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1 >conftest.err
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_try") 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; } &&
15224 { ac_try='test -s conftest$ac_exeext'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 eval "$as_ac_var=yes"
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 eval "$as_ac_var=no"
15242 rm -f core conftest.err conftest.$ac_objext \
15243 conftest$ac_exeext conftest.$ac_ext
15245 ac_res=`eval echo '${'$as_ac_var'}'`
15246 { echo "$as_me:$LINENO: result: $ac_res" >&5
15247 echo "${ECHO_T}$ac_res" >&6; }
15248 if test `eval echo '${'$as_ac_var'}'` = yes; then
15249 cat >>confdefs.h <<_ACEOF
15250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15262 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15278 #define $ac_func innocuous_$ac_func
15280 /* System header to define __stub macros and hopefully few prototypes,
15281 which can conflict with char $ac_func (); below.
15282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15283 <limits.h> exists even on freestanding compilers. */
15286 # include <limits.h>
15288 # include <assert.h>
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15300 /* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303 #if defined __stub_$ac_func || defined __stub___$ac_func
15310 return $ac_func ();
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_link") 2>conftest.er1
15324 grep -v '^ *+' conftest.er1 >conftest.err
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_try") 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 eval "$as_ac_var=yes"
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 eval "$as_ac_var=no"
15357 rm -f core conftest.err conftest.$ac_objext \
15358 conftest$ac_exeext conftest.$ac_ext
15360 ac_res=`eval echo '${'$as_ac_var'}'`
15361 { echo "$as_me:$LINENO: result: $ac_res" >&5
15362 echo "${ECHO_T}$ac_res" >&6; }
15363 if test `eval echo '${'$as_ac_var'}'` = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15374 for ac_func in strerror strerror_r setenv
15376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15390 #define $ac_func innocuous_$ac_func
15392 /* System header to define __stub macros and hopefully few prototypes,
15393 which can conflict with char $ac_func (); below.
15394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15395 <limits.h> exists even on freestanding compilers. */
15398 # include <limits.h>
15400 # include <assert.h>
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15412 /* The GNU C library defines this for functions which it implements
15413 to always fail with ENOSYS. Some functions are actually named
15414 something starting with __ and the normal name is an alias. */
15415 #if defined __stub_$ac_func || defined __stub___$ac_func
15422 return $ac_func ();
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (ac_try="$ac_link"
15429 case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_link") 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15442 { (case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_try") 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } &&
15451 { ac_try='test -s conftest$ac_exeext'
15452 { (case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_try") 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 eval "$as_ac_var=yes"
15463 echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 eval "$as_ac_var=no"
15469 rm -f core conftest.err conftest.$ac_objext \
15470 conftest$ac_exeext conftest.$ac_ext
15472 ac_res=`eval echo '${'$as_ac_var'}'`
15473 { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15475 if test `eval echo '${'$as_ac_var'}'` = yes; then
15476 cat >>confdefs.h <<_ACEOF
15477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15487 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15503 #define $ac_func innocuous_$ac_func
15505 /* System header to define __stub macros and hopefully few prototypes,
15506 which can conflict with char $ac_func (); below.
15507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15508 <limits.h> exists even on freestanding compilers. */
15511 # include <limits.h>
15513 # include <assert.h>
15518 /* Override any GCC internal prototype to avoid an error.
15519 Use char because int might match the return type of a GCC
15520 builtin and then its argument prototype would still apply. */
15525 /* The GNU C library defines this for functions which it implements
15526 to always fail with ENOSYS. Some functions are actually named
15527 something starting with __ and the normal name is an alias. */
15528 #if defined __stub_$ac_func || defined __stub___$ac_func
15535 return $ac_func ();
15540 rm -f conftest.$ac_objext conftest$ac_exeext
15541 if { (ac_try="$ac_link"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_link") 2>conftest.er1
15549 grep -v '^ *+' conftest.er1 >conftest.err
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15555 { (case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_try") 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try='test -s conftest$ac_exeext'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 eval "$as_ac_var=yes"
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 eval "$as_ac_var=no"
15582 rm -f core conftest.err conftest.$ac_objext \
15583 conftest$ac_exeext conftest.$ac_ext
15585 ac_res=`eval echo '${'$as_ac_var'}'`
15586 { echo "$as_me:$LINENO: result: $ac_res" >&5
15587 echo "${ECHO_T}$ac_res" >&6; }
15588 if test `eval echo '${'$as_ac_var'}'` = yes; then
15589 cat >>confdefs.h <<_ACEOF
15590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15601 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 cat >conftest.$ac_ext <<_ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15617 #define $ac_func innocuous_$ac_func
15619 /* System header to define __stub macros and hopefully few prototypes,
15620 which can conflict with char $ac_func (); below.
15621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15622 <limits.h> exists even on freestanding compilers. */
15625 # include <limits.h>
15627 # include <assert.h>
15632 /* Override any GCC internal prototype to avoid an error.
15633 Use char because int might match the return type of a GCC
15634 builtin and then its argument prototype would still apply. */
15639 /* The GNU C library defines this for functions which it implements
15640 to always fail with ENOSYS. Some functions are actually named
15641 something starting with __ and the normal name is an alias. */
15642 #if defined __stub_$ac_func || defined __stub___$ac_func
15649 return $ac_func ();
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15663 grep -v '^ *+' conftest.er1 >conftest.err
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15669 { (case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_try") 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; } &&
15678 { ac_try='test -s conftest$ac_exeext'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 eval "$as_ac_var=yes"
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 eval "$as_ac_var=no"
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15699 ac_res=`eval echo '${'$as_ac_var'}'`
15700 { echo "$as_me:$LINENO: result: $ac_res" >&5
15701 echo "${ECHO_T}$ac_res" >&6; }
15702 if test `eval echo '${'$as_ac_var'}'` = yes; then
15703 cat >>confdefs.h <<_ACEOF
15704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15712 for ac_func in futimes futimens
15714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 cat >conftest.$ac_ext <<_ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h. */
15726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15728 #define $ac_func innocuous_$ac_func
15730 /* System header to define __stub macros and hopefully few prototypes,
15731 which can conflict with char $ac_func (); below.
15732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15733 <limits.h> exists even on freestanding compilers. */
15736 # include <limits.h>
15738 # include <assert.h>
15743 /* Override any GCC internal prototype to avoid an error.
15744 Use char because int might match the return type of a GCC
15745 builtin and then its argument prototype would still apply. */
15750 /* The GNU C library defines this for functions which it implements
15751 to always fail with ENOSYS. Some functions are actually named
15752 something starting with __ and the normal name is an alias. */
15753 #if defined __stub_$ac_func || defined __stub___$ac_func
15760 return $ac_func ();
15765 rm -f conftest.$ac_objext conftest$ac_exeext
15766 if { (ac_try="$ac_link"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_link") 2>conftest.er1
15774 grep -v '^ *+' conftest.er1 >conftest.err
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest$ac_exeext'
15790 { (case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_try") 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 eval "$as_ac_var=yes"
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 eval "$as_ac_var=no"
15807 rm -f core conftest.err conftest.$ac_objext \
15808 conftest$ac_exeext conftest.$ac_ext
15810 ac_res=`eval echo '${'$as_ac_var'}'`
15811 { echo "$as_me:$LINENO: result: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15821 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15822 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15823 if test "${llvm_cv_c_printf_a+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 ac_cpp='$CPP $CPPFLAGS'
15828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15832 if test "$cross_compiling" = yes; then
15833 llvmac_cv_c_printf_a=no
15835 cat >conftest.$ac_ext <<_ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15844 #include <stdlib.h>
15850 volatile double A, B;
15854 sprintf(Buffer, "%a", A);
15858 if (A != 0x1.999999999999ap-4)
15865 rm -f conftest$ac_exeext
15866 if { (ac_try="$ac_link"
15867 case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_link") 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15876 { (case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_try") 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15885 llvm_cv_c_printf_a=yes
15887 echo "$as_me: program exited with status $ac_status" >&5
15888 echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15891 ( exit $ac_status )
15892 llvmac_cv_c_printf_a=no
15894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15899 ac_cpp='$CPP $CPPFLAGS'
15900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15905 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15906 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15907 if test "$llvm_cv_c_printf_a" = "yes"; then
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_PRINTF_A 1
15917 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15918 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15919 if test "${ac_cv_func_rand48+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 ac_cpp='$CXXCPP $CPPFLAGS'
15925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15929 cat >conftest.$ac_ext <<_ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 #include <stdlib.h>
15939 srand48(0);lrand48();drand48();
15944 rm -f conftest.$ac_objext
15945 if { (ac_try="$ac_compile"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_compile") 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; } &&
15968 { ac_try='test -s conftest.$ac_objext'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 ac_cv_func_rand48=yes
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 ac_cv_func_rand48=no
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988 ac_cpp='$CPP $CPPFLAGS'
15989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15995 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15996 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15998 if test "$ac_cv_func_rand48" = "yes" ; then
16000 cat >>confdefs.h <<\_ACEOF
16001 #define HAVE_RAND48 1
16007 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
16008 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
16009 if test "${ac_cv_have_decl_arc4random+set}" = set; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 cat >conftest.$ac_ext <<_ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 $ac_includes_default
16023 char *p = (char *) arc4random;
16031 rm -f conftest.$ac_objext
16032 if { (ac_try="$ac_compile"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_compile") 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16046 { (case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051 (eval "$ac_try") 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; } &&
16055 { ac_try='test -s conftest.$ac_objext'
16056 { (case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_try") 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_cv_have_decl_arc4random=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_cv_have_decl_arc4random=no
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16076 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16077 if test $ac_cv_have_decl_arc4random = yes; then
16079 cat >>confdefs.h <<_ACEOF
16080 #define HAVE_DECL_ARC4RANDOM 1
16085 cat >>confdefs.h <<_ACEOF
16086 #define HAVE_DECL_ARC4RANDOM 0
16094 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16095 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16096 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 cat >conftest.$ac_ext <<_ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 $ac_includes_default
16110 char *p = (char *) strerror_s;
16118 rm -f conftest.$ac_objext
16119 if { (ac_try="$ac_compile"
16120 case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_compile") 2>conftest.er1
16127 grep -v '^ *+' conftest.er1 >conftest.err
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16133 { (case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_try") 2>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
16143 { (case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_try") 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_cv_have_decl_strerror_s=yes
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ac_cv_have_decl_strerror_s=no
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16163 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16164 if test $ac_cv_have_decl_strerror_s = yes; then
16166 cat >>confdefs.h <<_ACEOF
16167 #define HAVE_DECL_STRERROR_S 1
16172 cat >>confdefs.h <<_ACEOF
16173 #define HAVE_DECL_STRERROR_S 0
16181 if test "$llvm_cv_os_type" = "MingW" ; then
16182 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16183 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16184 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 ac_check_lib_save_LIBS=$LIBS
16189 cat >conftest.$ac_ext <<_ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16196 /* Override any GCC internal prototype to avoid an error.
16197 Use char because int might match the return type of a GCC
16198 builtin and then its argument prototype would still apply. */
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (ac_try="$ac_link"
16213 case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_link") 2>conftest.er1
16220 grep -v '^ *+' conftest.er1 >conftest.err
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16226 { (case "(($ac_try" in
16227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228 *) ac_try_echo=$ac_try;;
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231 (eval "$ac_try") 2>&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest$ac_exeext'
16236 { (case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_try") 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ac_cv_lib_gcc__alloca=yes
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16250 ac_cv_lib_gcc__alloca=no
16253 rm -f core conftest.err conftest.$ac_objext \
16254 conftest$ac_exeext conftest.$ac_ext
16255 LIBS=$ac_check_lib_save_LIBS
16257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16258 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16259 if test $ac_cv_lib_gcc__alloca = yes; then
16261 cat >>confdefs.h <<\_ACEOF
16262 #define HAVE__ALLOCA 1
16267 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16268 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16269 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 ac_check_lib_save_LIBS=$LIBS
16274 cat >conftest.$ac_ext <<_ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16281 /* Override any GCC internal prototype to avoid an error.
16282 Use char because int might match the return type of a GCC
16283 builtin and then its argument prototype would still apply. */
16291 return __alloca ();
16296 rm -f conftest.$ac_objext conftest$ac_exeext
16297 if { (ac_try="$ac_link"
16298 case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_link") 2>conftest.er1
16305 grep -v '^ *+' conftest.er1 >conftest.err
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
16310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16311 { (case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_try") 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest$ac_exeext'
16321 { (case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326 (eval "$ac_try") 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_cv_lib_gcc___alloca=yes
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 ac_cv_lib_gcc___alloca=no
16338 rm -f core conftest.err conftest.$ac_objext \
16339 conftest$ac_exeext conftest.$ac_ext
16340 LIBS=$ac_check_lib_save_LIBS
16342 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16343 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16344 if test $ac_cv_lib_gcc___alloca = yes; then
16346 cat >>confdefs.h <<\_ACEOF
16347 #define HAVE___ALLOCA 1
16352 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16353 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16354 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 ac_check_lib_save_LIBS=$LIBS
16359 cat >conftest.$ac_ext <<_ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16366 /* Override any GCC internal prototype to avoid an error.
16367 Use char because int might match the return type of a GCC
16368 builtin and then its argument prototype would still apply. */
16376 return __chkstk ();
16381 rm -f conftest.$ac_objext conftest$ac_exeext
16382 if { (ac_try="$ac_link"
16383 case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_link") 2>conftest.er1
16390 grep -v '^ *+' conftest.er1 >conftest.err
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
16395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16396 { (case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_try") 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest$ac_exeext'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
16415 ac_cv_lib_gcc___chkstk=yes
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16420 ac_cv_lib_gcc___chkstk=no
16423 rm -f core conftest.err conftest.$ac_objext \
16424 conftest$ac_exeext conftest.$ac_ext
16425 LIBS=$ac_check_lib_save_LIBS
16427 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16428 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16429 if test $ac_cv_lib_gcc___chkstk = yes; then
16431 cat >>confdefs.h <<\_ACEOF
16432 #define HAVE___CHKSTK 1
16437 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16438 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16439 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 ac_check_lib_save_LIBS=$LIBS
16444 cat >conftest.$ac_ext <<_ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16451 /* Override any GCC internal prototype to avoid an error.
16452 Use char because int might match the return type of a GCC
16453 builtin and then its argument prototype would still apply. */
16461 return ___chkstk ();
16466 rm -f conftest.$ac_objext conftest$ac_exeext
16467 if { (ac_try="$ac_link"
16468 case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_link") 2>conftest.er1
16475 grep -v '^ *+' conftest.er1 >conftest.err
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; } &&
16490 { ac_try='test -s conftest$ac_exeext'
16491 { (case "(($ac_try" in
16492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493 *) ac_try_echo=$ac_try;;
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496 (eval "$ac_try") 2>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16500 ac_cv_lib_gcc____chkstk=yes
16502 echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16505 ac_cv_lib_gcc____chkstk=no
16508 rm -f core conftest.err conftest.$ac_objext \
16509 conftest$ac_exeext conftest.$ac_ext
16510 LIBS=$ac_check_lib_save_LIBS
16512 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16513 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16514 if test $ac_cv_lib_gcc____chkstk = yes; then
16516 cat >>confdefs.h <<\_ACEOF
16517 #define HAVE____CHKSTK 1
16523 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16524 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16525 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 ac_check_lib_save_LIBS=$LIBS
16530 cat >conftest.$ac_ext <<_ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16537 /* Override any GCC internal prototype to avoid an error.
16538 Use char because int might match the return type of a GCC
16539 builtin and then its argument prototype would still apply. */
16547 return __ashldi3 ();
16552 rm -f conftest.$ac_objext conftest$ac_exeext
16553 if { (ac_try="$ac_link"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_link") 2>conftest.er1
16561 grep -v '^ *+' conftest.er1 >conftest.err
16563 cat conftest.err >&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } &&
16566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; } &&
16576 { ac_try='test -s conftest$ac_exeext'
16577 { (case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_try") 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_lib_gcc___ashldi3=yes
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_lib_gcc___ashldi3=no
16594 rm -f core conftest.err conftest.$ac_objext \
16595 conftest$ac_exeext conftest.$ac_ext
16596 LIBS=$ac_check_lib_save_LIBS
16598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16599 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16600 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16602 cat >>confdefs.h <<\_ACEOF
16603 #define HAVE___ASHLDI3 1
16608 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16609 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16610 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 ac_check_lib_save_LIBS=$LIBS
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16622 /* Override any GCC internal prototype to avoid an error.
16623 Use char because int might match the return type of a GCC
16624 builtin and then its argument prototype would still apply. */
16632 return __ashrdi3 ();
16637 rm -f conftest.$ac_objext conftest$ac_exeext
16638 if { (ac_try="$ac_link"
16639 case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_link") 2>conftest.er1
16646 grep -v '^ *+' conftest.er1 >conftest.err
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; } &&
16661 { ac_try='test -s conftest$ac_exeext'
16662 { (case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_try") 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_cv_lib_gcc___ashrdi3=yes
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 ac_cv_lib_gcc___ashrdi3=no
16679 rm -f core conftest.err conftest.$ac_objext \
16680 conftest$ac_exeext conftest.$ac_ext
16681 LIBS=$ac_check_lib_save_LIBS
16683 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16684 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16685 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16687 cat >>confdefs.h <<\_ACEOF
16688 #define HAVE___ASHRDI3 1
16693 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16694 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16695 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 ac_check_lib_save_LIBS=$LIBS
16700 cat >conftest.$ac_ext <<_ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16707 /* Override any GCC internal prototype to avoid an error.
16708 Use char because int might match the return type of a GCC
16709 builtin and then its argument prototype would still apply. */
16717 return __divdi3 ();
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_link") 2>conftest.er1
16731 grep -v '^ *+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try='test -s conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_lib_gcc___divdi3=yes
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 ac_cv_lib_gcc___divdi3=no
16764 rm -f core conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16766 LIBS=$ac_check_lib_save_LIBS
16768 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16769 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16770 if test $ac_cv_lib_gcc___divdi3 = yes; then
16772 cat >>confdefs.h <<\_ACEOF
16773 #define HAVE___DIVDI3 1
16778 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16779 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16780 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 ac_check_lib_save_LIBS=$LIBS
16785 cat >conftest.$ac_ext <<_ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16792 /* Override any GCC internal prototype to avoid an error.
16793 Use char because int might match the return type of a GCC
16794 builtin and then its argument prototype would still apply. */
16802 return __fixdfdi ();
16807 rm -f conftest.$ac_objext conftest$ac_exeext
16808 if { (ac_try="$ac_link"
16809 case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_link") 2>conftest.er1
16816 grep -v '^ *+' conftest.er1 >conftest.err
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest$ac_exeext'
16832 { (case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_try") 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_lib_gcc___fixdfdi=yes
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 ac_cv_lib_gcc___fixdfdi=no
16849 rm -f core conftest.err conftest.$ac_objext \
16850 conftest$ac_exeext conftest.$ac_ext
16851 LIBS=$ac_check_lib_save_LIBS
16853 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16854 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16855 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16857 cat >>confdefs.h <<\_ACEOF
16858 #define HAVE___FIXDFDI 1
16863 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16864 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16865 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 ac_check_lib_save_LIBS=$LIBS
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16877 /* Override any GCC internal prototype to avoid an error.
16878 Use char because int might match the return type of a GCC
16879 builtin and then its argument prototype would still apply. */
16887 return __fixsfdi ();
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest$ac_exeext'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_cv_lib_gcc___fixsfdi=yes
16928 echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16931 ac_cv_lib_gcc___fixsfdi=no
16934 rm -f core conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16938 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16939 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16940 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16942 cat >>confdefs.h <<\_ACEOF
16943 #define HAVE___FIXSFDI 1
16948 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16949 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16950 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 ac_check_lib_save_LIBS=$LIBS
16955 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16968 char __floatdidf ();
16972 return __floatdidf ();
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_link") 2>conftest.er1
16986 grep -v '^ *+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } &&
16991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16992 { (case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_try") 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; } &&
17001 { ac_try='test -s conftest$ac_exeext'
17002 { (case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_try") 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 ac_cv_lib_gcc___floatdidf=yes
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 ac_cv_lib_gcc___floatdidf=no
17019 rm -f core conftest.err conftest.$ac_objext \
17020 conftest$ac_exeext conftest.$ac_ext
17021 LIBS=$ac_check_lib_save_LIBS
17023 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17024 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17025 if test $ac_cv_lib_gcc___floatdidf = yes; then
17027 cat >>confdefs.h <<\_ACEOF
17028 #define HAVE___FLOATDIDF 1
17033 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17034 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17035 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17038 ac_check_lib_save_LIBS=$LIBS
17040 cat >conftest.$ac_ext <<_ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17047 /* Override any GCC internal prototype to avoid an error.
17048 Use char because int might match the return type of a GCC
17049 builtin and then its argument prototype would still apply. */
17057 return __lshrdi3 ();
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_link") 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077 { (case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_try") 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest$ac_exeext'
17087 { (case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_try") 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_cv_lib_gcc___lshrdi3=yes
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 ac_cv_lib_gcc___lshrdi3=no
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17108 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17109 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17110 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17112 cat >>confdefs.h <<\_ACEOF
17113 #define HAVE___LSHRDI3 1
17118 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17119 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17120 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 ac_check_lib_save_LIBS=$LIBS
17125 cat >conftest.$ac_ext <<_ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h. */
17132 /* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17142 return __moddi3 ();
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>conftest.er1
17156 grep -v '^ *+' conftest.er1 >conftest.err
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest$ac_exeext'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 ac_cv_lib_gcc___moddi3=yes
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 ac_cv_lib_gcc___moddi3=no
17189 rm -f core conftest.err conftest.$ac_objext \
17190 conftest$ac_exeext conftest.$ac_ext
17191 LIBS=$ac_check_lib_save_LIBS
17193 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17194 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17195 if test $ac_cv_lib_gcc___moddi3 = yes; then
17197 cat >>confdefs.h <<\_ACEOF
17198 #define HAVE___MODDI3 1
17203 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17204 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17205 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 ac_check_lib_save_LIBS=$LIBS
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17227 return __udivdi3 ();
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17241 grep -v '^ *+' conftest.er1 >conftest.err
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17247 { (case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_try") 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest$ac_exeext'
17257 { (case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_try") 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_cv_lib_gcc___udivdi3=yes
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_cv_lib_gcc___udivdi3=no
17274 rm -f core conftest.err conftest.$ac_objext \
17275 conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17278 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17279 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17280 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17282 cat >>confdefs.h <<\_ACEOF
17283 #define HAVE___UDIVDI3 1
17288 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17289 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17290 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 ac_check_lib_save_LIBS=$LIBS
17295 cat >conftest.$ac_ext <<_ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17302 /* Override any GCC internal prototype to avoid an error.
17303 Use char because int might match the return type of a GCC
17304 builtin and then its argument prototype would still apply. */
17312 return __umoddi3 ();
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (ac_try="$ac_link"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_link") 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17332 { (case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_try") 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; } &&
17341 { ac_try='test -s conftest$ac_exeext'
17342 { (case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_try") 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
17351 ac_cv_lib_gcc___umoddi3=yes
17353 echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17356 ac_cv_lib_gcc___umoddi3=no
17359 rm -f core conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17361 LIBS=$ac_check_lib_save_LIBS
17363 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17364 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17365 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17367 cat >>confdefs.h <<\_ACEOF
17368 #define HAVE___UMODDI3 1
17374 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17375 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17376 if test "${ac_cv_lib_gcc___main+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 ac_check_lib_save_LIBS=$LIBS
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17388 /* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_lib_gcc___main=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_cv_lib_gcc___main=no
17445 rm -f core conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17447 LIBS=$ac_check_lib_save_LIBS
17449 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17450 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17451 if test $ac_cv_lib_gcc___main = yes; then
17453 cat >>confdefs.h <<\_ACEOF
17454 #define HAVE___MAIN 1
17459 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17460 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17461 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 ac_check_lib_save_LIBS=$LIBS
17466 cat >conftest.$ac_ext <<_ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17473 /* Override any GCC internal prototype to avoid an error.
17474 Use char because int might match the return type of a GCC
17475 builtin and then its argument prototype would still apply. */
17483 return __cmpdi2 ();
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_link") 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17503 { (case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508 (eval "$ac_try") 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest$ac_exeext'
17513 { (case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_try") 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_cv_lib_gcc___cmpdi2=yes
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_cv_lib_gcc___cmpdi2=no
17530 rm -f core conftest.err conftest.$ac_objext \
17531 conftest$ac_exeext conftest.$ac_ext
17532 LIBS=$ac_check_lib_save_LIBS
17534 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17535 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17536 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17538 cat >>confdefs.h <<\_ACEOF
17539 #define HAVE___CMPDI2 1
17546 if test "$llvm_cv_os_type" = "MingW" ; then
17547 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17548 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17549 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17557 #include <windows.h>
17558 #include <imagehlp.h>
17559 extern void foo(PENUMLOADED_MODULES_CALLBACK);
17560 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17564 rm -f conftest.$ac_objext
17565 if { (ac_try="$ac_compile"
17566 case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_compile") 2>conftest.er1
17573 grep -v '^ *+' conftest.er1 >conftest.err
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } &&
17578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17579 { (case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_try") 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } &&
17588 { ac_try='test -s conftest.$ac_objext'
17589 { (case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_try") 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17599 { echo "$as_me:$LINENO: result: yes" >&5
17600 echo "${ECHO_T}yes" >&6; }
17601 llvm_cv_win32_elmcb_pcstr="PCSTR"
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17608 { echo "$as_me:$LINENO: result: no" >&5
17609 echo "${ECHO_T}no" >&6; }
17610 llvm_cv_win32_elmcb_pcstr="PSTR"
17614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616 cat >>confdefs.h <<_ACEOF
17617 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17624 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17625 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17626 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 ac_cpp='$CXXCPP $CPPFLAGS'
17632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17651 rm -f conftest.$ac_objext
17652 if { (ac_try="$ac_compile"
17653 case "(($ac_try" in
17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_compile") 2>conftest.er1
17660 grep -v '^ *+' conftest.er1 >conftest.err
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17666 { (case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_try") 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; } &&
17675 { ac_try='test -s conftest.$ac_objext'
17676 { (case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_try") 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 ac_cv_func_isnan_in_math_h=yes
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ac_cv_func_isnan_in_math_h=no
17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 ac_cpp='$CPP $CPPFLAGS'
17696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17702 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17703 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17706 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17708 cat >>confdefs.h <<\_ACEOF
17709 #define HAVE_ISNAN_IN_MATH_H 1
17715 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17716 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17717 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 ac_cpp='$CXXCPP $CPPFLAGS'
17723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17751 grep -v '^ *+' conftest.er1 >conftest.err
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17757 { (case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_try") 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_try") 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_func_isnan_in_cmath=yes
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_func_isnan_in_cmath=no
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786 ac_cpp='$CPP $CPPFLAGS'
17787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17793 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17794 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17796 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17798 cat >>confdefs.h <<\_ACEOF
17799 #define HAVE_ISNAN_IN_CMATH 1
17805 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17806 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17807 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 ac_cpp='$CXXCPP $CPPFLAGS'
17813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17827 float f; std::isnan(f);
17832 rm -f conftest.$ac_objext
17833 if { (ac_try="$ac_compile"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_compile") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17847 { (case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_try") 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest.$ac_objext'
17857 { (case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_try") 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 ac_cv_func_std_isnan_in_cmath=yes
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 ac_cv_func_std_isnan_in_cmath=no
17874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876 ac_cpp='$CPP $CPPFLAGS'
17877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17883 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17884 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17886 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17888 cat >>confdefs.h <<\_ACEOF
17889 #define HAVE_STD_ISNAN_IN_CMATH 1
17897 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17898 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17899 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 ac_cpp='$CXXCPP $CPPFLAGS'
17905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17909 cat >conftest.$ac_ext <<_ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17924 rm -f conftest.$ac_objext
17925 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17933 grep -v '^ *+' conftest.er1 >conftest.err
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17939 { (case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest.$ac_objext'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_func_isinf_in_math_h=yes
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 ac_cv_func_isinf_in_math_h=no
17966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17968 ac_cpp='$CPP $CPPFLAGS'
17969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17975 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17976 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17978 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17980 cat >>confdefs.h <<\_ACEOF
17981 #define HAVE_ISINF_IN_MATH_H 1
17987 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17988 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17989 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 ac_cpp='$CXXCPP $CPPFLAGS'
17995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17999 cat >conftest.$ac_ext <<_ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18014 rm -f conftest.$ac_objext
18015 if { (ac_try="$ac_compile"
18016 case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_compile") 2>conftest.er1
18023 grep -v '^ *+' conftest.er1 >conftest.err
18025 cat conftest.err >&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18029 { (case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034 (eval "$ac_try") 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest.$ac_objext'
18039 { (case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_try") 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 ac_cv_func_isinf_in_cmath=yes
18050 echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18053 ac_cv_func_isinf_in_cmath=no
18056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18058 ac_cpp='$CPP $CPPFLAGS'
18059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18065 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18066 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18068 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18070 cat >>confdefs.h <<\_ACEOF
18071 #define HAVE_ISINF_IN_CMATH 1
18077 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18078 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18079 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 ac_cpp='$CXXCPP $CPPFLAGS'
18085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18089 cat >conftest.$ac_ext <<_ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18099 float f; std::isinf(f);
18104 rm -f conftest.$ac_objext
18105 if { (ac_try="$ac_compile"
18106 case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_compile") 2>conftest.er1
18113 grep -v '^ *+' conftest.er1 >conftest.err
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest.$ac_objext'
18129 { (case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_try") 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_func_std_isinf_in_cmath=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ac_cv_func_std_isinf_in_cmath=no
18146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18148 ac_cpp='$CPP $CPPFLAGS'
18149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18155 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18156 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18158 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_STD_ISINF_IN_CMATH 1
18167 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18168 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18169 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 ac_cpp='$CXXCPP $CPPFLAGS'
18175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18179 cat >conftest.$ac_ext <<_ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18185 #include <ieeefp.h>
18189 float f; finite(f);
18194 rm -f conftest.$ac_objext
18195 if { (ac_try="$ac_compile"
18196 case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201 (eval "$ac_compile") 2>conftest.er1
18203 grep -v '^ *+' conftest.er1 >conftest.err
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18209 { (case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_try") 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest.$ac_objext'
18219 { (case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_try") 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 ac_cv_func_finite_in_ieeefp_h=yes
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18233 ac_cv_func_finite_in_ieeefp_h=no
18236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18238 ac_cpp='$CPP $CPPFLAGS'
18239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18245 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18246 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18248 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18250 cat >>confdefs.h <<\_ACEOF
18251 #define HAVE_FINITE_IN_IEEEFP_H 1
18258 if test "$llvm_cv_platform_type" = "Unix" ; then
18261 for ac_header in stdlib.h unistd.h
18263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 ac_res=`eval echo '${'$as_ac_Header'}'`
18271 { echo "$as_me:$LINENO: result: $ac_res" >&5
18272 echo "${ECHO_T}$ac_res" >&6; }
18274 # Is the header compilable?
18275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 $ac_includes_default
18284 #include <$ac_header>
18286 rm -f conftest.$ac_objext
18287 if { (ac_try="$ac_compile"
18288 case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_compile") 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18301 { (case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_try") 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; } &&
18310 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18320 ac_header_compiler=yes
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 ac_header_compiler=no
18328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18330 echo "${ECHO_T}$ac_header_compiler" >&6; }
18332 # Is the header present?
18333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18335 cat >conftest.$ac_ext <<_ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18341 #include <$ac_header>
18343 if { (ac_try="$ac_cpp conftest.$ac_ext"
18344 case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18351 grep -v '^ *+' conftest.er1 >conftest.err
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } >/dev/null; then
18356 if test -s conftest.err; then
18357 ac_cpp_err=$ac_c_preproc_warn_flag
18358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18365 if test -z "$ac_cpp_err"; then
18366 ac_header_preproc=yes
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 ac_header_preproc=no
18374 rm -f conftest.err conftest.$ac_ext
18375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18376 echo "${ECHO_T}$ac_header_preproc" >&6; }
18378 # So? What about this header?
18379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18385 ac_header_preproc=yes
18388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18401 ## ------------------------------------ ##
18402 ## Report this to http://llvm.org/bugs/ ##
18403 ## ------------------------------------ ##
18405 ) | sed "s/^/$as_me: WARNING: /" >&2
18408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 eval "$as_ac_Header=\$ac_header_preproc"
18415 ac_res=`eval echo '${'$as_ac_Header'}'`
18416 { echo "$as_me:$LINENO: result: $ac_res" >&5
18417 echo "${ECHO_T}$ac_res" >&6; }
18420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18421 cat >>confdefs.h <<_ACEOF
18422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18430 for ac_func in getpagesize
18432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 cat >conftest.$ac_ext <<_ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18446 #define $ac_func innocuous_$ac_func
18448 /* System header to define __stub macros and hopefully few prototypes,
18449 which can conflict with char $ac_func (); below.
18450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18451 <limits.h> exists even on freestanding compilers. */
18454 # include <limits.h>
18456 # include <assert.h>
18461 /* Override any GCC internal prototype to avoid an error.
18462 Use char because int might match the return type of a GCC
18463 builtin and then its argument prototype would still apply. */
18468 /* The GNU C library defines this for functions which it implements
18469 to always fail with ENOSYS. Some functions are actually named
18470 something starting with __ and the normal name is an alias. */
18471 #if defined __stub_$ac_func || defined __stub___$ac_func
18478 return $ac_func ();
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (ac_try="$ac_link"
18485 case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_link") 2>conftest.er1
18492 grep -v '^ *+' conftest.er1 >conftest.err
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18498 { (case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_try") 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try='test -s conftest$ac_exeext'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 eval "$as_ac_var=yes"
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 eval "$as_ac_var=no"
18525 rm -f core conftest.err conftest.$ac_objext \
18526 conftest$ac_exeext conftest.$ac_ext
18528 ac_res=`eval echo '${'$as_ac_var'}'`
18529 { echo "$as_me:$LINENO: result: $ac_res" >&5
18530 echo "${ECHO_T}$ac_res" >&6; }
18531 if test `eval echo '${'$as_ac_var'}'` = yes; then
18532 cat >>confdefs.h <<_ACEOF
18533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18539 { echo "$as_me:$LINENO: checking for working mmap" >&5
18540 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18541 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 if test "$cross_compiling" = yes; then
18545 ac_cv_func_mmap_fixed_mapped=no
18547 cat >conftest.$ac_ext <<_ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18553 $ac_includes_default
18554 /* malloc might have been renamed as rpl_malloc. */
18557 /* Thanks to Mike Haertel and Jim Avera for this test.
18558 Here is a matrix of mmap possibilities:
18559 mmap private not fixed
18560 mmap private fixed at somewhere currently unmapped
18561 mmap private fixed at somewhere already mapped
18562 mmap shared not fixed
18563 mmap shared fixed at somewhere currently unmapped
18564 mmap shared fixed at somewhere already mapped
18565 For private mappings, we should verify that changes cannot be read()
18566 back from the file, nor mmap's back from the file at a different
18567 address. (There have been systems where private was not correctly
18568 implemented like the infamous i386 svr4.0, and systems where the
18569 VM page cache was not coherent with the file system buffer cache
18570 like early versions of FreeBSD and possibly contemporary NetBSD.)
18571 For shared mappings, we should conversely verify that changes get
18572 propagated back to all the places they're supposed to be.
18574 Grep wants private fixed already mapped.
18575 The main things grep needs to know about mmap are:
18576 * does it exist and is it safe to write into the mmap'd area
18577 * how to use it (BSD variants) */
18580 #include <sys/mman.h>
18582 #if !STDC_HEADERS && !HAVE_STDLIB_H
18586 /* This mess was copied from the GNU getpagesize.h. */
18587 #if !HAVE_GETPAGESIZE
18588 /* Assume that all systems that can run configure have sys/param.h. */
18589 # if !HAVE_SYS_PARAM_H
18590 # define HAVE_SYS_PARAM_H 1
18593 # ifdef _SC_PAGESIZE
18594 # define getpagesize() sysconf(_SC_PAGESIZE)
18595 # else /* no _SC_PAGESIZE */
18596 # if HAVE_SYS_PARAM_H
18597 # include <sys/param.h>
18598 # ifdef EXEC_PAGESIZE
18599 # define getpagesize() EXEC_PAGESIZE
18600 # else /* no EXEC_PAGESIZE */
18602 # define getpagesize() NBPG * CLSIZE
18605 # endif /* no CLSIZE */
18606 # else /* no NBPG */
18608 # define getpagesize() NBPC
18609 # else /* no NBPC */
18611 # define getpagesize() PAGESIZE
18612 # endif /* PAGESIZE */
18613 # endif /* no NBPC */
18614 # endif /* no NBPG */
18615 # endif /* no EXEC_PAGESIZE */
18616 # else /* no HAVE_SYS_PARAM_H */
18617 # define getpagesize() 8192 /* punt totally */
18618 # endif /* no HAVE_SYS_PARAM_H */
18619 # endif /* no _SC_PAGESIZE */
18621 #endif /* no HAVE_GETPAGESIZE */
18626 char *data, *data2, *data3;
18630 pagesize = getpagesize ();
18632 /* First, make a file with some known garbage in it. */
18633 data = (char *) malloc (pagesize);
18636 for (i = 0; i < pagesize; ++i)
18637 *(data + i) = rand ();
18639 fd = creat ("conftest.mmap", 0600);
18642 if (write (fd, data, pagesize) != pagesize)
18646 /* Next, try to mmap the file at a fixed address which already has
18647 something else allocated at it. If we can, also make sure that
18648 we see the same garbage. */
18649 fd = open ("conftest.mmap", O_RDWR);
18652 data2 = (char *) malloc (2 * pagesize);
18655 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18656 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18657 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18659 for (i = 0; i < pagesize; ++i)
18660 if (*(data + i) != *(data2 + i))
18663 /* Finally, make sure that changes to the mapped area do not
18664 percolate back to the file as seen by read(). (This is a bug on
18665 some variants of i386 svr4.0.) */
18666 for (i = 0; i < pagesize; ++i)
18667 *(data2 + i) = *(data2 + i) + 1;
18668 data3 = (char *) malloc (pagesize);
18671 if (read (fd, data3, pagesize) != pagesize)
18673 for (i = 0; i < pagesize; ++i)
18674 if (*(data + i) != *(data3 + i))
18680 rm -f conftest$ac_exeext
18681 if { (ac_try="$ac_link"
18682 case "(($ac_try" in
18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684 *) ac_try_echo=$ac_try;;
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687 (eval "$ac_link") 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_cv_func_mmap_fixed_mapped=yes
18702 echo "$as_me: program exited with status $ac_status" >&5
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18706 ( exit $ac_status )
18707 ac_cv_func_mmap_fixed_mapped=no
18709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18714 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18715 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18716 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE_MMAP 1
18723 rm -f conftest.mmap
18725 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18726 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18727 if test "${ac_cv_func_mmap_file+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 ac_cpp='$CPP $CPPFLAGS'
18732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18736 if test "$cross_compiling" = yes; then
18737 ac_cv_func_mmap_file=no
18739 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18747 #include <sys/types.h>
18748 #include <sys/mman.h>
18756 fd = creat ("foo",0777);
18757 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18759 return (fd != (int) MAP_FAILED);
18764 rm -f conftest$ac_exeext
18765 if { (ac_try="$ac_link"
18766 case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_link") 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18775 { (case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_try") 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; }; then
18784 ac_cv_func_mmap_file=yes
18786 echo "$as_me: program exited with status $ac_status" >&5
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ( exit $ac_status )
18791 ac_cv_func_mmap_file=no
18793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18798 ac_cpp='$CPP $CPPFLAGS'
18799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18805 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18806 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18807 if test "$ac_cv_func_mmap_file" = yes; then
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_MMAP_FILE
18817 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18818 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18819 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 if test "$llvm_cv_os_type" = "Interix" ; then
18823 ac_cv_need_dev_zero_for_mmap=yes
18825 ac_cv_need_dev_zero_for_mmap=no
18829 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18830 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18831 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18833 cat >>confdefs.h <<\_ACEOF
18834 #define NEED_DEV_ZERO_FOR_MMAP 1
18839 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18841 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18842 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18844 if test "$ac_cv_func_mmap_file" = "no"
18846 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18847 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18851 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18852 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18854 ac_cpp='$CXXCPP $CPPFLAGS'
18855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18859 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18868 volatile unsigned long val = 1;
18869 __sync_synchronize();
18870 __sync_val_compare_and_swap(&val, 1, 0);
18871 __sync_add_and_fetch(&val, 1);
18872 __sync_sub_and_fetch(&val, 1);
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_link") 2>conftest.er1
18887 grep -v '^ *+' conftest.er1 >conftest.err
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18893 { (case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_try") 2>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; } &&
18902 { ac_try='test -s conftest$ac_exeext'
18903 { (case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_try") 2>&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; }; then
18913 { echo "$as_me:$LINENO: result: yes" >&5
18914 echo "${ECHO_T}yes" >&6; }
18916 cat >>confdefs.h <<\_ACEOF
18917 #define LLVM_HAS_ATOMICS 1
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18926 { echo "$as_me:$LINENO: result: no" >&5
18927 echo "${ECHO_T}no" >&6; }
18929 cat >>confdefs.h <<\_ACEOF
18930 #define LLVM_HAS_ATOMICS 0
18933 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18934 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18938 rm -f core conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
18941 ac_cpp='$CPP $CPPFLAGS'
18942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18948 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18949 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18950 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18951 if test "${llvm_cv_linux_mixed+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 ac_cpp='$CPP $CPPFLAGS'
18956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18967 error: Not x86-64 even if uname says so!
18978 rm -f conftest.$ac_objext
18979 if { (ac_try="$ac_compile"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_compile") 2>conftest.er1
18987 grep -v '^ *+' conftest.er1 >conftest.err
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 llvm_cv_linux_mixed=no
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 llvm_cv_linux_mixed=yes
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19022 ac_cpp='$CPP $CPPFLAGS'
19023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19029 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19030 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19032 if test "$llvm_cv_linux_mixed" = "yes"; then
19033 llvm_cv_target_arch="x86"
19039 for ac_func in __dso_handle
19041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 cat >conftest.$ac_ext <<_ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h. */
19053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19055 #define $ac_func innocuous_$ac_func
19057 /* System header to define __stub macros and hopefully few prototypes,
19058 which can conflict with char $ac_func (); below.
19059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19060 <limits.h> exists even on freestanding compilers. */
19063 # include <limits.h>
19065 # include <assert.h>
19070 /* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19077 /* The GNU C library defines this for functions which it implements
19078 to always fail with ENOSYS. Some functions are actually named
19079 something starting with __ and the normal name is an alias. */
19080 #if defined __stub_$ac_func || defined __stub___$ac_func
19087 return $ac_func ();
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (ac_try="$ac_link"
19094 case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_link") 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest$ac_exeext'
19117 { (case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_try") 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 eval "$as_ac_var=yes"
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 eval "$as_ac_var=no"
19134 rm -f core conftest.err conftest.$ac_objext \
19135 conftest$ac_exeext conftest.$ac_ext
19137 ac_res=`eval echo '${'$as_ac_var'}'`
19138 { echo "$as_me:$LINENO: result: $ac_res" >&5
19139 echo "${ECHO_T}$ac_res" >&6; }
19140 if test `eval echo '${'$as_ac_var'}'` = yes; then
19141 cat >>confdefs.h <<_ACEOF
19142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19149 SHLIBEXT=$llvm_shlib_ext
19152 if test "${prefix}" = "NONE" ; then
19153 prefix="/usr/local"
19155 eval LLVM_PREFIX="${prefix}";
19156 eval LLVM_BINDIR="${prefix}/bin";
19157 eval LLVM_DATADIR="${prefix}/share/llvm";
19158 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19159 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19160 eval LLVM_INCLUDEDIR="${prefix}/include";
19161 eval LLVM_INFODIR="${prefix}/info";
19162 eval LLVM_MANDIR="${prefix}/man";
19163 LLVM_CONFIGTIME=`date`
19174 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19175 LLVM_CONFIGTIME="(timestamp not enabled)"
19179 cat >>confdefs.h <<_ACEOF
19180 #define LLVM_PREFIX "$LLVM_PREFIX"
19184 cat >>confdefs.h <<_ACEOF
19185 #define LLVM_BINDIR "$LLVM_BINDIR"
19189 cat >>confdefs.h <<_ACEOF
19190 #define LLVM_DATADIR "$LLVM_DATADIR"
19194 cat >>confdefs.h <<_ACEOF
19195 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19199 cat >>confdefs.h <<_ACEOF
19200 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19204 cat >>confdefs.h <<_ACEOF
19205 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19209 cat >>confdefs.h <<_ACEOF
19210 #define LLVM_INFODIR "$LLVM_INFODIR"
19214 cat >>confdefs.h <<_ACEOF
19215 #define LLVM_MANDIR "$LLVM_MANDIR"
19219 cat >>confdefs.h <<_ACEOF
19220 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19224 cat >>confdefs.h <<_ACEOF
19225 #define LLVM_HOST_TRIPLE "$host"
19229 cat >>confdefs.h <<_ACEOF
19230 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19234 if test "$BINDINGS_TO_BUILD" = auto ; then
19235 BINDINGS_TO_BUILD=""
19236 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19237 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19240 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19246 binding_prereqs_failed=0
19247 for a_binding in $BINDINGS_TO_BUILD ; do
19248 case "$a_binding" in
19250 if test "x$OCAMLC" = x ; then
19251 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19252 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19253 binding_prereqs_failed=1
19255 if test "x$OCAMLDEP" = x ; then
19256 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19257 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19258 binding_prereqs_failed=1
19260 if test "x$OCAMLOPT" = x ; then
19261 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19262 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19264 if test "x$with_ocaml_libdir" != xauto ; then
19265 OCAML_LIBDIR=$with_ocaml_libdir
19268 ocaml_stdlib="`"$OCAMLC" -where`"
19269 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19271 # ocaml stdlib is beneath our prefix; use stdlib
19272 OCAML_LIBDIR=$ocaml_stdlib
19275 # ocaml stdlib is outside our prefix; use libdir/ocaml
19276 OCAML_LIBDIR=${prefix}/lib/ocaml
19283 if test "$binding_prereqs_failed" = 1 ; then
19284 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19285 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19286 { (exit 1); exit 1; }; }
19289 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19290 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19291 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 ac_cpp='$CXXCPP $CPPFLAGS'
19296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19300 oldcxxflags="$CXXFLAGS"
19301 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19317 rm -f conftest.$ac_objext
19318 if { (ac_try="$ac_compile"
19319 case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_compile") 2>conftest.er1
19326 grep -v '^ *+' conftest.er1 >conftest.err
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19332 { (case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_try") 2>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; } &&
19341 { ac_try='test -s conftest.$ac_objext'
19342 { (case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_try") 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 llvm_cv_cxx_visibility_inlines_hidden=yes
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19356 llvm_cv_cxx_visibility_inlines_hidden=no
19359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19360 CXXFLAGS="$oldcxxflags"
19362 ac_cpp='$CPP $CPPFLAGS'
19363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19369 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19370 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19371 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19372 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19375 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19380 if test "$llvm_cv_link_use_r" = "yes" ; then
19387 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19388 RDYNAMIC="-rdynamic"
19395 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19402 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19404 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19406 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19408 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19410 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19413 ac_config_files="$ac_config_files Makefile.config"
19416 ac_config_files="$ac_config_files llvm.spec"
19419 ac_config_files="$ac_config_files docs/doxygen.cfg"
19422 if test "${clang_src_root}" = ""; then
19423 clang_src_root="$srcdir/tools/clang"
19425 if test -f ${clang_src_root}/README.txt; then
19426 configh="include/clang/Config/config.h"
19427 doxy="docs/doxygen.cfg"
19428 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19430 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19434 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19437 test "x$program_prefix" = "xNONE" && program_prefix=""
19441 ac_config_commands="$ac_config_commands setup"
19443 ac_config_commands="$ac_config_commands Makefile"
19446 ac_config_commands="$ac_config_commands Makefile.common"
19449 ac_config_commands="$ac_config_commands examples/Makefile"
19452 ac_config_commands="$ac_config_commands lib/Makefile"
19455 ac_config_commands="$ac_config_commands test/Makefile"
19458 ac_config_commands="$ac_config_commands test/Makefile.tests"
19461 ac_config_commands="$ac_config_commands unittests/Makefile"
19464 ac_config_commands="$ac_config_commands tools/Makefile"
19467 ac_config_commands="$ac_config_commands utils/Makefile"
19470 ac_config_commands="$ac_config_commands projects/Makefile"
19473 ac_config_commands="$ac_config_commands bindings/Makefile"
19476 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19480 cat >confcache <<\_ACEOF
19481 # This file is a shell script that caches the results of configure
19482 # tests run on this system so they can be shared between configure
19483 # scripts and configure runs, see configure's option --config-cache.
19484 # It is not useful on other systems. If it contains results you don't
19485 # want to keep, you may remove or edit it.
19487 # config.status only pays attention to the cache file if you give it
19488 # the --recheck option to rerun configure.
19490 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19491 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19492 # following values.
19496 # The following way of writing the cache mishandles newlines in values,
19497 # but we know of no workaround that is simple, portable, and efficient.
19498 # So, we kill variables containing newlines.
19499 # Ultrix sh set writes to stderr and can't be redirected directly,
19500 # and sets the high bit in the cache file unless we assign to the vars.
19502 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19503 eval ac_val=\$$ac_var
19507 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19508 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19511 _ | IFS | as_nl) ;; #(
19512 *) $as_unset $ac_var ;;
19518 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19519 *${as_nl}ac_space=\ *)
19520 # `set' does not quote correctly, so add quotes (double-quote
19521 # substitution turns \\\\ into \\, and sed turns \\ into \).
19524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19527 # `set' quotes correctly as required by POSIX, so do not add quotes.
19528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19537 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19539 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19541 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19542 if test -w "$cache_file"; then
19543 test "x$cache_file" != "x/dev/null" &&
19544 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19545 echo "$as_me: updating cache $cache_file" >&6;}
19546 cat confcache >$cache_file
19548 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19549 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19555 # Let make expand exec_prefix.
19556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19558 DEFS=-DHAVE_CONFIG_H
19562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19563 # 1. Remove the extension, and $U if already installed.
19564 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19565 ac_i=`echo "$ac_i" | sed "$ac_script"`
19566 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19567 # will be set to the directory where LIBOBJS objects are built.
19568 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19569 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19571 LIBOBJS=$ac_libobjs
19573 LTLIBOBJS=$ac_ltlibobjs
19577 : ${CONFIG_STATUS=./config.status}
19578 ac_clean_files_save=$ac_clean_files
19579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19580 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19581 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19582 cat >$CONFIG_STATUS <<_ACEOF
19584 # Generated by $as_me.
19585 # Run this file to recreate the current configuration.
19586 # Compiler output produced by configure, useful for debugging
19587 # configure, is in config.log if it exists.
19590 ac_cs_recheck=false
19592 SHELL=\${CONFIG_SHELL-$SHELL}
19595 cat >>$CONFIG_STATUS <<\_ACEOF
19596 ## --------------------- ##
19597 ## M4sh Initialization. ##
19598 ## --------------------- ##
19600 # Be Bourne compatible
19601 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19604 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19605 # is contrary to our usage. Disable this feature.
19606 alias -g '${1+"$@"}'='"$@"'
19607 setopt NO_GLOB_SUBST
19609 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19611 BIN_SH=xpg4; export BIN_SH # for Tru64
19612 DUALCASE=1; export DUALCASE # for MKS sh
19616 # Avoid depending upon Character Ranges.
19617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19620 as_cr_digits='0123456789'
19621 as_cr_alnum=$as_cr_Letters$as_cr_digits
19623 # The user is always right.
19624 if test "${PATH_SEPARATOR+set}" != set; then
19625 echo "#! /bin/sh" >conf$$.sh
19626 echo "exit 0" >>conf$$.sh
19628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19636 # Support unset when possible.
19637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19645 # We need space, tab and new line, in precisely that order. Quoting is
19646 # there to prevent editors from complaining about space-tab.
19647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19648 # splitting by setting IFS to empty value.)
19653 # Find who we are. Look in the path if we contain no directory separator.
19655 *[\\/]* ) as_myself=$0 ;;
19656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19657 for as_dir in $PATH
19660 test -z "$as_dir" && as_dir=.
19661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19667 # We did not find ourselves, most probably we were run as `sh COMMAND'
19668 # in which case we are not to be found in the path.
19669 if test "x$as_myself" = x; then
19672 if test ! -f "$as_myself"; then
19673 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19674 { (exit 1); exit 1; }
19677 # Work around bugs in pre-3.0 UWIN ksh.
19678 for as_var in ENV MAIL MAILPATH
19679 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19687 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19688 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19689 LC_TELEPHONE LC_TIME
19691 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19692 eval $as_var=C; export $as_var
19694 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19698 # Required to use basename.
19699 if expr a : '\(a\)' >/dev/null 2>&1 &&
19700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19707 as_basename=basename
19713 # Name of the executable.
19714 as_me=`$as_basename -- "$0" ||
19715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19716 X"$0" : 'X\(//\)$' \| \
19717 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19719 sed '/^.*\/\([^/][^/]*\)\/*$/{
19738 as_lineno_1=$LINENO
19739 as_lineno_2=$LINENO
19740 test "x$as_lineno_1" != "x$as_lineno_2" &&
19741 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19744 # uniformly replaced by the line number. The first 'sed' inserts a
19745 # line-number line after each line using $LINENO; the second 'sed'
19746 # does the real work. The second script uses 'N' to pair each
19747 # line-number line with the line containing $LINENO, and appends
19748 # trailing '-' during substitution so that $LINENO is not a special
19749 # case at line end.
19750 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19751 # scripts with optimization help from Paolo Bonzini. Blame Lee
19752 # E. McMahon (1931-1989) for sed's syntax. :-)
19764 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19767 ' >$as_me.lineno &&
19768 chmod +x "$as_me.lineno" ||
19769 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19770 { (exit 1); exit 1; }; }
19772 # Don't try to exec as it changes $[0], causing all sort of problems
19773 # (the dirname of $[0] is not the place where we might find the
19774 # original and so on. Autoconf is especially sensitive to this).
19775 . "./$as_me.lineno"
19776 # Exit status is that of the last command.
19781 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19787 ECHO_C= ECHO_N= ECHO_T=
19788 case `echo -n x` in
19790 case `echo 'x\c'` in
19791 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19798 if expr a : '\(a\)' >/dev/null 2>&1 &&
19799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19805 rm -f conf$$ conf$$.exe conf$$.file
19806 if test -d conf$$.dir; then
19807 rm -f conf$$.dir/conf$$.file
19813 if ln -s conf$$.file conf$$ 2>/dev/null; then
19815 # ... but there are two gotchas:
19816 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19817 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19818 # In both cases, we have to default to `cp -p'.
19819 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19821 elif ln conf$$.file conf$$ 2>/dev/null; then
19826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19827 rmdir conf$$.dir 2>/dev/null
19829 if mkdir -p . 2>/dev/null; then
19832 test -d ./-p && rmdir ./-p
19836 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19837 # systems may use methods other than mode bits to determine executability.
19838 cat >conf$$.file <<_ASEOF
19842 chmod +x conf$$.file
19843 if test -x conf$$.file >/dev/null 2>&1; then
19844 as_executable_p="test -x"
19850 # Sed expression to map a string onto a valid CPP name.
19851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19853 # Sed expression to map a string onto a valid variable name.
19854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19859 # Save the log message, to keep $[0] and so on meaningful, and to
19860 # report actual input values of CONFIG_FILES etc. instead of their
19861 # values after options handling.
19863 This file was extended by LLVM $as_me 3.5.0svn, which was
19864 generated by GNU Autoconf 2.60. Invocation command line was
19866 CONFIG_FILES = $CONFIG_FILES
19867 CONFIG_HEADERS = $CONFIG_HEADERS
19868 CONFIG_LINKS = $CONFIG_LINKS
19869 CONFIG_COMMANDS = $CONFIG_COMMANDS
19872 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19877 cat >>$CONFIG_STATUS <<_ACEOF
19878 # Files that config.status was made for.
19879 config_files="$ac_config_files"
19880 config_headers="$ac_config_headers"
19881 config_commands="$ac_config_commands"
19885 cat >>$CONFIG_STATUS <<\_ACEOF
19887 \`$as_me' instantiates files from templates according to the
19888 current configuration.
19890 Usage: $0 [OPTIONS] [FILE]...
19892 -h, --help print this help, then exit
19893 -V, --version print version number, then exit
19894 -q, --quiet do not print progress messages
19895 -d, --debug don't remove temporary files
19896 --recheck update $as_me by reconfiguring in the same conditions
19897 --file=FILE[:TEMPLATE]
19898 instantiate the configuration file FILE
19899 --header=FILE[:TEMPLATE]
19900 instantiate the configuration header FILE
19902 Configuration files:
19905 Configuration headers:
19908 Configuration commands:
19911 Report bugs to <bug-autoconf@gnu.org>."
19914 cat >>$CONFIG_STATUS <<_ACEOF
19916 LLVM config.status 3.5.0svn
19917 configured by $0, generated by GNU Autoconf 2.60,
19918 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19920 Copyright (C) 2006 Free Software Foundation, Inc.
19921 This config.status script is free software; the Free Software Foundation
19922 gives unlimited permission to copy, distribute and modify it."
19929 cat >>$CONFIG_STATUS <<\_ACEOF
19930 # If no file are specified by the user, then we need to provide default
19931 # value. By we need to know if files were specified by the user.
19937 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19938 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19949 # Handling of the options.
19950 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19952 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19953 echo "$ac_cs_version"; exit ;;
19954 --debug | --debu | --deb | --de | --d | -d )
19956 --file | --fil | --fi | --f )
19958 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19959 ac_need_defaults=false;;
19960 --header | --heade | --head | --hea )
19962 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19963 ac_need_defaults=false;;
19965 # Conflict between --help and --header
19966 { echo "$as_me: error: ambiguous option: $1
19967 Try \`$0 --help' for more information." >&2
19968 { (exit 1); exit 1; }; };;
19969 --help | --hel | -h )
19970 echo "$ac_cs_usage"; exit ;;
19971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19975 # This is an error.
19976 -*) { echo "$as_me: error: unrecognized option: $1
19977 Try \`$0 --help' for more information." >&2
19978 { (exit 1); exit 1; }; } ;;
19980 *) ac_config_targets="$ac_config_targets $1"
19981 ac_need_defaults=false ;;
19987 ac_configure_extra_args=
19989 if $ac_cs_silent; then
19991 ac_configure_extra_args="$ac_configure_extra_args --silent"
19995 cat >>$CONFIG_STATUS <<_ACEOF
19996 if \$ac_cs_recheck; then
19997 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19998 CONFIG_SHELL=$SHELL
19999 export CONFIG_SHELL
20000 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20004 cat >>$CONFIG_STATUS <<\_ACEOF
20008 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20009 ## Running $as_me. ##
20015 cat >>$CONFIG_STATUS <<_ACEOF
20019 llvm_src="${srcdir}"
20023 cat >>$CONFIG_STATUS <<\_ACEOF
20025 # Handling of arguments.
20026 for ac_config_target in $ac_config_targets
20028 case $ac_config_target in
20029 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20030 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20031 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20032 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20033 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20034 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20035 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20036 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20037 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20038 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20039 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20040 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20041 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20042 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20043 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20044 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20045 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20046 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20047 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20048 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20049 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20050 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20051 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20052 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20053 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20054 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20056 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20057 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20058 { (exit 1); exit 1; }; };;
20063 # If the user did not use the arguments to specify the items to instantiate,
20064 # then the envvar interface is used. Set only those that are not.
20065 # We use the long form for the default assignment because of an extremely
20066 # bizarre bug on SunOS 4.1.3.
20067 if $ac_need_defaults; then
20068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20069 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20070 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20073 # Have a temporary directory for convenience. Make it in the build tree
20074 # simply because there is no reason against having it here, and in addition,
20075 # creating and moving files from /tmp can sometimes cause problems.
20076 # Hook for its removal unless debugging.
20077 # Note that there is a small window in which the directory will not be cleaned:
20078 # after its creation but before its name has been assigned to `$tmp'.
20082 trap 'exit_status=$?
20083 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20085 trap '{ (exit 1); exit 1; }' 1 2 13 15
20087 # Create a (secure) tmp directory for tmp files.
20090 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20091 test -n "$tmp" && test -d "$tmp"
20094 tmp=./conf$$-$RANDOM
20095 (umask 077 && mkdir "$tmp")
20098 echo "$me: cannot create a temporary directory in ." >&2
20099 { (exit 1); exit 1; }
20103 # Set up the sed scripts for CONFIG_FILES section.
20106 # No need to generate the scripts if there are no CONFIG_FILES.
20107 # This happens for instance when ./config.status config.h
20108 if test -n "$CONFIG_FILES"; then
20115 for ac_last_try in false false false false false :; do
20116 cat >conf$$subs.sed <<_ACEOF
20117 SHELL!$SHELL$ac_delim
20118 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20119 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20120 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20121 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20122 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20123 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20124 exec_prefix!$exec_prefix$ac_delim
20125 prefix!$prefix$ac_delim
20126 program_transform_name!$program_transform_name$ac_delim
20127 bindir!$bindir$ac_delim
20128 sbindir!$sbindir$ac_delim
20129 libexecdir!$libexecdir$ac_delim
20130 datarootdir!$datarootdir$ac_delim
20131 datadir!$datadir$ac_delim
20132 sysconfdir!$sysconfdir$ac_delim
20133 sharedstatedir!$sharedstatedir$ac_delim
20134 localstatedir!$localstatedir$ac_delim
20135 includedir!$includedir$ac_delim
20136 oldincludedir!$oldincludedir$ac_delim
20137 docdir!$docdir$ac_delim
20138 infodir!$infodir$ac_delim
20139 htmldir!$htmldir$ac_delim
20140 dvidir!$dvidir$ac_delim
20141 pdfdir!$pdfdir$ac_delim
20142 psdir!$psdir$ac_delim
20143 libdir!$libdir$ac_delim
20144 localedir!$localedir$ac_delim
20145 mandir!$mandir$ac_delim
20146 DEFS!$DEFS$ac_delim
20147 ECHO_C!$ECHO_C$ac_delim
20148 ECHO_N!$ECHO_N$ac_delim
20149 ECHO_T!$ECHO_T$ac_delim
20150 LIBS!$LIBS$ac_delim
20151 build_alias!$build_alias$ac_delim
20152 host_alias!$host_alias$ac_delim
20153 target_alias!$target_alias$ac_delim
20154 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20155 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20156 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20157 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
20158 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20160 CFLAGS!$CFLAGS$ac_delim
20161 LDFLAGS!$LDFLAGS$ac_delim
20162 CPPFLAGS!$CPPFLAGS$ac_delim
20163 ac_ct_CC!$ac_ct_CC$ac_delim
20164 EXEEXT!$EXEEXT$ac_delim
20165 OBJEXT!$OBJEXT$ac_delim
20167 CXXFLAGS!$CXXFLAGS$ac_delim
20168 ac_ct_CXX!$ac_ct_CXX$ac_delim
20170 subdirs!$subdirs$ac_delim
20171 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20172 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20173 build!$build$ac_delim
20174 build_cpu!$build_cpu$ac_delim
20175 build_vendor!$build_vendor$ac_delim
20176 build_os!$build_os$ac_delim
20177 host!$host$ac_delim
20178 host_cpu!$host_cpu$ac_delim
20179 host_vendor!$host_vendor$ac_delim
20180 host_os!$host_os$ac_delim
20181 target!$target$ac_delim
20182 target_cpu!$target_cpu$ac_delim
20183 target_vendor!$target_vendor$ac_delim
20184 target_os!$target_os$ac_delim
20186 HOST_OS!$HOST_OS$ac_delim
20187 TARGET_OS!$TARGET_OS$ac_delim
20188 LINKALL!$LINKALL$ac_delim
20189 NOLINKALL!$NOLINKALL$ac_delim
20190 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20191 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20192 ARCH!$ARCH$ac_delim
20193 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20194 HOST_ARCH!$HOST_ARCH$ac_delim
20195 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20196 BUILD_CC!$BUILD_CC$ac_delim
20197 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20198 BUILD_CXX!$BUILD_CXX$ac_delim
20199 CVSBUILD!$CVSBUILD$ac_delim
20200 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20201 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
20202 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20203 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20204 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
20205 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20206 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20207 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20208 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20209 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20210 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20211 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20212 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20213 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20216 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20218 elif $ac_last_try; then
20219 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20220 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20221 { (exit 1); exit 1; }; }
20223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20227 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20228 if test -n "$ac_eof"; then
20229 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20230 ac_eof=`expr $ac_eof + 1`
20233 cat >>$CONFIG_STATUS <<_ACEOF
20234 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20238 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20239 s/^/s,@/; s/!/@,|#_!!_#|/
20242 s/'"$ac_delim"'$/,g/; t
20244 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20245 ' >>$CONFIG_STATUS <conf$$subs.sed
20246 rm -f conf$$subs.sed
20247 cat >>$CONFIG_STATUS <<_ACEOF
20253 for ac_last_try in false false false false false :; do
20254 cat >conf$$subs.sed <<_ACEOF
20255 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20256 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20258 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20259 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20260 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20261 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20262 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20263 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20264 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20265 ENABLE_PIC!$ENABLE_PIC$ac_delim
20266 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20267 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20268 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20269 ALL_TARGETS!$ALL_TARGETS$ac_delim
20270 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20271 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20272 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20273 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20274 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20275 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20276 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20277 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20278 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20279 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20280 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20281 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20282 ifGNUmake!$ifGNUmake$ac_delim
20283 LN_S!$LN_S$ac_delim
20287 DATE!$DATE$ac_delim
20288 FIND!$FIND$ac_delim
20289 GREP!$GREP$ac_delim
20290 MKDIR!$MKDIR$ac_delim
20292 RANLIB!$RANLIB$ac_delim
20297 BINPWD!$BINPWD$ac_delim
20298 GRAPHVIZ!$GRAPHVIZ$ac_delim
20301 NEATO!$NEATO$ac_delim
20302 TWOPI!$TWOPI$ac_delim
20303 CIRCO!$CIRCO$ac_delim
20305 DOTTY!$DOTTY$ac_delim
20306 XDOT!$XDOT$ac_delim
20307 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20308 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20309 INSTALL_DATA!$INSTALL_DATA$ac_delim
20310 BZIP2!$BZIP2$ac_delim
20312 DOXYGEN!$DOXYGEN$ac_delim
20313 GROFF!$GROFF$ac_delim
20314 GZIPBIN!$GZIPBIN$ac_delim
20315 PDFROFF!$PDFROFF$ac_delim
20317 OCAMLC!$OCAMLC$ac_delim
20318 OCAMLOPT!$OCAMLOPT$ac_delim
20319 OCAMLDEP!$OCAMLDEP$ac_delim
20320 OCAMLDOC!$OCAMLDOC$ac_delim
20322 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20323 EGREP!$EGREP$ac_delim
20324 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20325 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20326 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20327 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20328 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20329 PYTHON!$PYTHON$ac_delim
20330 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20331 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20332 USE_UDIS86!$USE_UDIS86$ac_delim
20333 USE_OPROFILE!$USE_OPROFILE$ac_delim
20334 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20335 XML2CONFIG!$XML2CONFIG$ac_delim
20336 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20337 LIBXML2_INC!$LIBXML2_INC$ac_delim
20338 CXXCPP!$CXXCPP$ac_delim
20339 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20340 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20341 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20342 MMAP_FILE!$MMAP_FILE$ac_delim
20343 SHLIBEXT!$SHLIBEXT$ac_delim
20344 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20345 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20346 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20347 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20348 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20349 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20350 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20351 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20354 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20356 elif $ac_last_try; then
20357 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20358 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20359 { (exit 1); exit 1; }; }
20361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20365 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20366 if test -n "$ac_eof"; then
20367 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20368 ac_eof=`expr $ac_eof + 1`
20371 cat >>$CONFIG_STATUS <<_ACEOF
20372 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20376 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20377 s/^/s,@/; s/!/@,|#_!!_#|/
20380 s/'"$ac_delim"'$/,g/; t
20382 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20383 ' >>$CONFIG_STATUS <conf$$subs.sed
20384 rm -f conf$$subs.sed
20385 cat >>$CONFIG_STATUS <<_ACEOF
20391 for ac_last_try in false false false false false :; do
20392 cat >conf$$subs.sed <<_ACEOF
20393 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20394 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20395 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20396 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20397 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20398 RPATH!$RPATH$ac_delim
20399 RDYNAMIC!$RDYNAMIC$ac_delim
20400 program_prefix!$program_prefix$ac_delim
20401 LIBOBJS!$LIBOBJS$ac_delim
20402 LTLIBOBJS!$LTLIBOBJS$ac_delim
20405 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20407 elif $ac_last_try; then
20408 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20409 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20410 { (exit 1); exit 1; }; }
20412 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20416 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20417 if test -n "$ac_eof"; then
20418 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20419 ac_eof=`expr $ac_eof + 1`
20422 cat >>$CONFIG_STATUS <<_ACEOF
20423 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20427 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20428 s/^/s,@/; s/!/@,|#_!!_#|/
20431 s/'"$ac_delim"'$/,g/; t
20433 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20434 ' >>$CONFIG_STATUS <conf$$subs.sed
20435 rm -f conf$$subs.sed
20436 cat >>$CONFIG_STATUS <<_ACEOF
20443 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20444 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20445 # trailing colons and then remove the whole line if VPATH becomes empty
20446 # (actually we leave an empty line to preserve line numbers).
20447 if test "x$srcdir" = x.; then
20448 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20449 s/:*\$(srcdir):*/:/
20450 s/:*\${srcdir}:*/:/
20452 s/^\([^=]*=[ ]*\):*/\1/
20458 cat >>$CONFIG_STATUS <<\_ACEOF
20459 fi # test -n "$CONFIG_FILES"
20462 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20465 :[FHLC]) ac_mode=$ac_tag; continue;;
20467 case $ac_mode$ac_tag in
20469 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20470 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20471 { (exit 1); exit 1; }; };;
20472 :[FH]-) ac_tag=-:-;;
20473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20490 -) ac_f="$tmp/stdin";;
20491 *) # Look for the file first in the build tree, then in the source tree
20492 # (if the path is not absolute). The absolute path cannot be DOS-style,
20493 # because $ac_f cannot contain `:'.
20497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20499 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20500 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20501 { (exit 1); exit 1; }; };;
20503 ac_file_inputs="$ac_file_inputs $ac_f"
20506 # Let's still pretend it is `configure' which instantiates (i.e., don't
20507 # use $as_me), people would be surprised to read:
20508 # /* config.h. Generated by config.status. */
20509 configure_input="Generated from "`IFS=:
20510 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20511 if test x"$ac_file" != x-; then
20512 configure_input="$ac_file. $configure_input"
20513 { echo "$as_me:$LINENO: creating $ac_file" >&5
20514 echo "$as_me: creating $ac_file" >&6;}
20518 *:-:* | *:-) cat >"$tmp/stdin";;
20523 ac_dir=`$as_dirname -- "$ac_file" ||
20524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20525 X"$ac_file" : 'X\(//\)[^/]' \| \
20526 X"$ac_file" : 'X\(//\)$' \| \
20527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20533 /^X\(\/\/\)[^/].*/{
20548 -*) as_dir=./$as_dir;;
20550 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20554 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20555 *) as_qdir=$as_dir;;
20557 as_dirs="'$as_qdir' $as_dirs"
20558 as_dir=`$as_dirname -- "$as_dir" ||
20559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20560 X"$as_dir" : 'X\(//\)[^/]' \| \
20561 X"$as_dir" : 'X\(//\)$' \| \
20562 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20568 /^X\(\/\/\)[^/].*/{
20581 test -d "$as_dir" && break
20583 test -z "$as_dirs" || eval "mkdir $as_dirs"
20584 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20585 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20586 { (exit 1); exit 1; }; }; }
20590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20593 # A ".." for each directory in $ac_dir_suffix.
20594 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20595 case $ac_top_builddir_sub in
20596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20600 ac_abs_top_builddir=$ac_pwd
20601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20602 # for backward compatibility:
20603 ac_top_builddir=$ac_top_build_prefix
20606 .) # We are building in place.
20608 ac_top_srcdir=$ac_top_builddir_sub
20609 ac_abs_top_srcdir=$ac_pwd ;;
20610 [\\/]* | ?:[\\/]* ) # Absolute name.
20611 ac_srcdir=$srcdir$ac_dir_suffix;
20612 ac_top_srcdir=$srcdir
20613 ac_abs_top_srcdir=$srcdir ;;
20614 *) # Relative name.
20615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20616 ac_top_srcdir=$ac_top_build_prefix$srcdir
20617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20630 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20634 cat >>$CONFIG_STATUS <<\_ACEOF
20635 # If the template does not know about datarootdir, expand it.
20636 # FIXME: This hack should be removed a few years after 2.60.
20637 ac_datarootdir_hack=; ac_datarootdir_seen=
20639 case `sed -n '/datarootdir/ {
20648 ' $ac_file_inputs` in
20649 *datarootdir*) ac_datarootdir_seen=yes;;
20650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20651 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20652 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20654 cat >>$CONFIG_STATUS <<_ACEOF
20655 ac_datarootdir_hack='
20656 s&@datadir@&$datadir&g
20657 s&@docdir@&$docdir&g
20658 s&@infodir@&$infodir&g
20659 s&@localedir@&$localedir&g
20660 s&@mandir@&$mandir&g
20661 s&\\\${datarootdir}&$datarootdir&g' ;;
20665 # Neutralize VPATH when `$srcdir' = `.'.
20666 # Shell code in configure.ac might set extrasub.
20667 # FIXME: do we really want to maintain this feature?
20668 cat >>$CONFIG_STATUS <<_ACEOF
20672 cat >>$CONFIG_STATUS <<\_ACEOF
20674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20675 s&@configure_input@&$configure_input&;t t
20676 s&@top_builddir@&$ac_top_builddir_sub&;t t
20677 s&@srcdir@&$ac_srcdir&;t t
20678 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20679 s&@top_srcdir@&$ac_top_srcdir&;t t
20680 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20681 s&@builddir@&$ac_builddir&;t t
20682 s&@abs_builddir@&$ac_abs_builddir&;t t
20683 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20684 s&@INSTALL@&$ac_INSTALL&;t t
20685 $ac_datarootdir_hack
20686 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20689 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20690 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20691 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20692 which seems to be undefined. Please make sure it is defined." >&5
20693 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20694 which seems to be undefined. Please make sure it is defined." >&2;}
20698 -) cat "$tmp/out"; rm -f "$tmp/out";;
20699 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20708 # Transform confdefs.h into a sed script `conftest.defines', that
20709 # substitutes the proper values into config.h.in to produce config.h.
20710 rm -f conftest.defines conftest.tail
20711 # First, append a space to every undef/define line, to ease matching.
20712 echo 's/$/ /' >conftest.defines
20713 # Then, protect against being on the right side of a sed subst, or in
20714 # an unquoted here document, in config.status. If some macros were
20715 # called several times there might be several #defines for the same
20716 # symbol, which is useless. But do not sort them, since the last
20717 # AC_DEFINE must be honored.
20718 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20719 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20720 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20721 # PARAMS is the parameter list in the macro definition--in most cases, it's
20722 # just an empty string.
20723 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20724 ac_dB='\\)[ (].*,\\1define\\2'
20732 s/^[ ]*#[ ]*define[ ][ ]*//
20737 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20738 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20739 ' >>conftest.defines
20741 # Remove the space that was appended to ease matching.
20742 # Then replace #undef with comments. This is necessary, for
20743 # example, in the case of _POSIX_SOURCE, which is predefined and required
20744 # on some systems where configure will not decide to define it.
20745 # (The regexp can be short, since the line contains either #define or #undef.)
20747 s,^[ #]*u.*,/* & */,' >>conftest.defines
20749 # Break up conftest.defines:
20750 ac_max_sed_lines=50
20752 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20753 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20754 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20756 ac_in='$ac_file_inputs'
20757 ac_out='"$tmp/out1"'
20758 ac_nxt='"$tmp/out2"'
20762 # Write a here document:
20763 cat >>$CONFIG_STATUS <<_ACEOF
20764 # First, check the format of the line:
20765 cat >"\$tmp/defines.sed" <<\\CEOF
20766 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20767 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20771 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20773 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20774 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20775 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20776 grep . conftest.tail >/dev/null || break
20777 rm -f conftest.defines
20778 mv conftest.tail conftest.defines
20780 rm -f conftest.defines conftest.tail
20782 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20783 cat >>$CONFIG_STATUS <<\_ACEOF
20784 if test x"$ac_file" != x-; then
20785 echo "/* $configure_input */" >"$tmp/config.h"
20786 cat "$ac_result" >>"$tmp/config.h"
20787 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20788 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20789 echo "$as_me: $ac_file is unchanged" >&6;}
20792 mv "$tmp/config.h" $ac_file
20795 echo "/* $configure_input */"
20801 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20802 echo "$as_me: executing $ac_file commands" >&6;}
20807 case $ac_file$ac_mode in
20808 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20809 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20810 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20811 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20812 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20813 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20814 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20815 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20816 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20817 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20818 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20819 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20820 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20821 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20822 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20823 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20824 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20825 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20826 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20827 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20828 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20829 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20830 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20831 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20837 { (exit 0); exit 0; }
20839 chmod +x $CONFIG_STATUS
20840 ac_clean_files=$ac_clean_files_save
20843 # configure is writing to config.log, and then calls config.status.
20844 # config.status does its own redirection, appending to config.log.
20845 # Unfortunately, on DOS this fails, as config.log is still kept open
20846 # by configure, so config.status won't be able to write to it; its
20847 # output is simply discarded. So we exec the FD to /dev/null,
20848 # effectively closing config.log, so it can be properly (re)opened and
20849 # appended to by config.status. When coming back to configure, we
20850 # need to make the FD available again.
20851 if test "$no_create" != yes; then
20853 ac_config_status_args=
20854 test "$silent" = yes &&
20855 ac_config_status_args="$ac_config_status_args --quiet"
20857 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20860 # would make configure fail if this is the last instruction.
20861 $ac_cs_success || { (exit 1); exit 1; }
20865 # CONFIG_SUBDIRS section.
20867 if test "$no_recursion" != yes; then
20869 # Remove --cache-file and --srcdir arguments so they do not pile up.
20870 ac_sub_configure_args=
20872 eval "set x $ac_configure_args"
20876 if test -n "$ac_prev"; then
20881 -cache-file | --cache-file | --cache-fil | --cache-fi \
20882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20883 ac_prev=cache_file ;;
20884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20888 --config-cache | -C)
20890 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20892 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20894 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20896 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20900 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20902 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20906 # Always prepend --prefix to ensure using the same prefix
20907 # in subdir configurations.
20908 ac_arg="--prefix=$prefix"
20910 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20912 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20915 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20917 # Do not complain, so a configure script can configure whichever
20918 # parts of a large source tree are present.
20919 test -d "$srcdir/$ac_dir" || continue
20921 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20922 echo "$as_me:$LINENO: $ac_msg" >&5
20926 -*) as_dir=./$as_dir;;
20928 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20932 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20933 *) as_qdir=$as_dir;;
20935 as_dirs="'$as_qdir' $as_dirs"
20936 as_dir=`$as_dirname -- "$as_dir" ||
20937 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20938 X"$as_dir" : 'X\(//\)[^/]' \| \
20939 X"$as_dir" : 'X\(//\)$' \| \
20940 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20946 /^X\(\/\/\)[^/].*/{
20959 test -d "$as_dir" && break
20961 test -z "$as_dirs" || eval "mkdir $as_dirs"
20962 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20963 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20964 { (exit 1); exit 1; }; }; }
20968 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20971 # A ".." for each directory in $ac_dir_suffix.
20972 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20973 case $ac_top_builddir_sub in
20974 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20975 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20978 ac_abs_top_builddir=$ac_pwd
20979 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20980 # for backward compatibility:
20981 ac_top_builddir=$ac_top_build_prefix
20984 .) # We are building in place.
20986 ac_top_srcdir=$ac_top_builddir_sub
20987 ac_abs_top_srcdir=$ac_pwd ;;
20988 [\\/]* | ?:[\\/]* ) # Absolute name.
20989 ac_srcdir=$srcdir$ac_dir_suffix;
20990 ac_top_srcdir=$srcdir
20991 ac_abs_top_srcdir=$srcdir ;;
20992 *) # Relative name.
20993 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20994 ac_top_srcdir=$ac_top_build_prefix$srcdir
20995 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20997 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21002 # Check for guested configure; otherwise get Cygnus style configure.
21003 if test -f "$ac_srcdir/configure.gnu"; then
21004 ac_sub_configure=$ac_srcdir/configure.gnu
21005 elif test -f "$ac_srcdir/configure"; then
21006 ac_sub_configure=$ac_srcdir/configure
21007 elif test -f "$ac_srcdir/configure.in"; then
21008 # This should be Cygnus configure.
21009 ac_sub_configure=$ac_aux_dir/configure
21011 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21012 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21016 # The recursion is here.
21017 if test -n "$ac_sub_configure"; then
21018 # Make the cache file name correct relative to the subdirectory.
21019 case $cache_file in
21020 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21021 *) # Relative name.
21022 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21025 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21026 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21027 # The eval makes quoting arguments work.
21028 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21029 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21030 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21031 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21032 { (exit 1); exit 1; }; }