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, arm, aarch64, mips, hexagon,
1451 xcore, msp430, nvptx, systemz, r600, and cpp
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 arm*-*) llvm_cv_target_arch="ARM" ;;
4155 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4156 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4157 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4158 xcore-*) llvm_cv_target_arch="XCore" ;;
4159 msp430-*) llvm_cv_target_arch="MSP430" ;;
4160 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4161 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4162 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4163 *) llvm_cv_target_arch="Unknown" ;;
4166 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4167 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4169 if test "$llvm_cv_target_arch" = "Unknown" ; then
4170 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4171 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4174 case "$llvm_cv_target_arch" in
4175 x86) LLVM_NATIVE_ARCH="X86" ;;
4176 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4177 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4180 ARCH=$llvm_cv_target_arch
4182 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4186 i?86-*) host_arch="x86" ;;
4187 amd64-* | x86_64-*) host_arch="x86_64" ;;
4188 sparc*-*) host_arch="Sparc" ;;
4189 powerpc*-*) host_arch="PowerPC" ;;
4190 arm*-*) host_arch="ARM" ;;
4191 aarch64*-*) host_arch="AArch64" ;;
4192 mips-* | mips64-*) host_arch="Mips" ;;
4193 mipsel-* | mips64el-*) host_arch="Mips" ;;
4194 xcore-*) host_arch="XCore" ;;
4195 msp430-*) host_arch="MSP430" ;;
4196 hexagon-*) host_arch="Hexagon" ;;
4197 s390x-*) host_arch="SystemZ" ;;
4198 *) host_arch="Unknown" ;;
4201 if test "$host_arch" = "Unknown" ; then
4202 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4203 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4206 HOST_ARCH=$host_arch
4209 if test "$cross_compiling" = yes; then
4210 LLVM_CROSS_COMPILING=1
4213 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215 if test "${ac_cv_build_exeext+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219 ac_cv_build_exeext=.exe
4221 ac_build_prefix=${build_alias}-
4223 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_build_prefix}gcc; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$BUILD_CC"; then
4231 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 BUILD_CC=$ac_cv_prog_BUILD_CC
4251 if test -n "$BUILD_CC"; then
4252 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253 echo "${ECHO_T}$BUILD_CC" >&6; }
4255 { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4260 if test -z "$BUILD_CC"; then
4261 # Extract the first word of "gcc", so it can be a program name with args.
4262 set dummy gcc; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 if test -n "$BUILD_CC"; then
4269 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_BUILD_CC="gcc"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6; }
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4298 if test -z "$BUILD_CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$BUILD_CC"; then
4307 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318 ac_prog_rejected=yes
4321 ac_cv_prog_BUILD_CC="cc"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 if test $ac_prog_rejected = yes; then
4330 # We found a bogon in the path, so make sure we never use it.
4331 set dummy $ac_cv_prog_BUILD_CC
4333 if test $# != 0; then
4334 # We chose a different compiler from the bogus one.
4335 # However, it has the same basename, so the bogon will be chosen
4336 # first if we set BUILD_CC to just the basename; use the full file name.
4338 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4343 BUILD_CC=$ac_cv_prog_BUILD_CC
4344 if test -n "$BUILD_CC"; then
4345 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346 echo "${ECHO_T}$BUILD_CC" >&6; }
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4355 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357 { (exit 1); exit 1; }; }
4358 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4360 echo 'int main () { return 0; }' > conftest.$ac_ext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4363 (eval $ac_build_link) 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; then
4367 for file in conftest.*; do
4369 *.c | *.o | *.obj | *.dSYM) ;;
4370 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4374 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376 { (exit 1); exit 1; }; }
4379 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4384 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4385 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4387 ac_build_exeext=$BUILD_EXEEXT
4389 ac_build_prefix=${build_alias}-
4390 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}g++; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test -n "$BUILD_CXX"; then
4398 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4418 if test -n "$BUILD_CXX"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4420 echo "${ECHO_T}$BUILD_CXX" >&6; }
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CXX"; then
4428 # Extract the first word of "g++", so it can be a program name with args.
4429 set dummy g++; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CXX"; then
4436 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CXX="g++"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4456 if test -n "$BUILD_CXX"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4458 echo "${ECHO_T}$BUILD_CXX" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CXX"; then
4466 # Extract the first word of "c++", so it can be a program name with args.
4467 set dummy c++; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CXX"; then
4474 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4485 ac_prog_rejected=yes
4488 ac_cv_prog_BUILD_CXX="c++"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CXX
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CXX to just the basename; use the full file name.
4505 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4510 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4511 if test -n "$BUILD_CXX"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4513 echo "${ECHO_T}$BUILD_CXX" >&6; }
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4523 LLVM_CROSS_COMPILING=0
4527 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4538 # Check whether --enable-libcpp was given.
4539 if test "${enable_libcpp+set}" = set; then
4540 enableval=$enable_libcpp;
4545 case "$enableval" in
4546 yes) ENABLE_LIBCPP=1
4550 default) ENABLE_LIBCPP=0
4552 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4553 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4554 { (exit 1); exit 1; }; } ;;
4557 # Check whether --enable-compiler-version-checks was given.
4558 if test "${enable_compiler_version_checks+set}" = set; then
4559 enableval=$enable_compiler_version_checks;
4564 case "$enableval" in
4569 ac_cpp='$CXXCPP $CPPFLAGS'
4570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4574 case "$llvm_cv_cxx_compiler" in
4576 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4577 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4585 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4586 #error This version of Clang is too old to build LLVM
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_compile") 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 { echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6; }
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4632 { { echo "$as_me:$LINENO: error:
4633 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4634 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4635 bypass these sanity checks." >&5
4636 echo "$as_me: error:
4637 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4638 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4639 bypass these sanity checks." >&2;}
4640 { (exit 1); exit 1; }; }
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 if test "$ENABLE_LIBCPP" -eq 0 ; then
4646 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4647 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4648 llvm_cv_old_cxxflags="$CXXFLAGS"
4649 CXXFLAGS="$CXXFLAGS -std=c++0x"
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4658 std::atomic<float> x(0.0f);
4659 int main() { return (float)x; }
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (ac_try="$ac_link"
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669 (eval "$ac_link") 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest$ac_exeext'
4687 { (case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_try") 2>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 { echo "$as_me:$LINENO: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6; }
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704 { { echo "$as_me:$LINENO: error:
4705 We detected a missing feature in the standard C++ library that was known to be
4706 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4707 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4708 than 4.7. You will need to update your system and ensure Clang uses the newer
4711 If this error is incorrect or you need to force things to work, you may pass
4712 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4713 echo "$as_me: error:
4714 We detected a missing feature in the standard C++ library that was known to be
4715 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4716 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4717 than 4.7. You will need to update your system and ensure Clang uses the newer
4720 If this error is incorrect or you need to force things to work, you may pass
4721 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4722 { (exit 1); exit 1; }; }
4725 rm -f core conftest.err conftest.$ac_objext \
4726 conftest$ac_exeext conftest.$ac_ext
4727 CXXFLAGS="$llvm_cv_old_cxxflags"
4731 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4732 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4733 cat >conftest.$ac_ext <<_ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4740 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4741 #error This version of GCC is too old to build LLVM
4745 rm -f conftest.$ac_objext
4746 if { (ac_try="$ac_compile"
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752 (eval "$ac_compile") 2>conftest.er1
4754 grep -v '^ *+' conftest.er1 >conftest.err
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4760 { (case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_try") 2>&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try='test -s conftest.$ac_objext'
4770 { (case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_try") 2>&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 { echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6; }
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787 { { echo "$as_me:$LINENO: error:
4788 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4789 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4790 bypass these sanity checks." >&5
4791 echo "$as_me: error:
4792 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4793 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4794 bypass these sanity checks." >&2;}
4795 { (exit 1); exit 1; }; }
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4813 { (exit 1); exit 1; }; }
4817 # Check whether --enable-cxx1y was given.
4818 if test "${enable_cxx1y+set}" = set; then
4819 enableval=$enable_cxx1y;
4824 case "$enableval" in
4829 default) ENABLE_CXX1Y=0
4831 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4832 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4833 { (exit 1); exit 1; }; } ;;
4836 # Check whether --enable-split-dwarf was given.
4837 if test "${enable_split_dwarf+set}" = set; then
4838 enableval=$enable_split_dwarf;
4843 case "$enableval" in
4844 yes) ENABLE_SPLIT_DWARF=1
4846 no) ENABLE_SPLIT_DWARF=0
4848 default) ENABLE_SPLIT_DWARF=0
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4856 # Check whether --enable-clang-arcmt was given.
4857 if test "${enable_clang_arcmt+set}" = set; then
4858 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4863 case "$enableval" in
4864 yes) ENABLE_CLANG_ARCMT=1
4866 no) ENABLE_CLANG_ARCMT=0
4868 default) ENABLE_CLANG_ARCMT=1
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4875 clang_plugin_support="yes"
4876 # Check whether --enable-clang-plugin-support was given.
4877 if test "${enable_clang_plugin_support+set}" = set; then
4878 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4883 case "$enableval" in
4884 yes) CLANG_PLUGIN_SUPPORT=1
4886 no) CLANG_PLUGIN_SUPPORT=0
4888 default) CLANG_PLUGIN_SUPPORT=1
4890 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4891 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4895 clang_static_analyzer="yes"
4896 # Check whether --enable-clang-static-analyzer was given.
4897 if test "${enable_clang_static_analyzer+set}" = set; then
4898 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4903 case "$enableval" in
4904 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4907 if test ${clang_arcmt} != "no" ; then
4908 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4909 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4910 { (exit 1); exit 1; }; }
4912 ENABLE_CLANG_STATIC_ANALYZER=0
4915 default) ENABLE_CLANG_STATIC_ANALYZER=1
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4922 # Check whether --enable-clang-rewriter was given.
4923 if test "${enable_clang_rewriter+set}" = set; then
4924 enableval=$enable_clang_rewriter;
4929 case "$enableval" in
4930 yes) ENABLE_CLANG_REWRITER=1
4933 if test ${clang_arcmt} != "no" ; then
4934 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4935 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4936 { (exit 1); exit 1; }; }
4938 if test ${clang_static_analyzer} != "no" ; then
4939 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4940 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4941 { (exit 1); exit 1; }; }
4943 ENABLE_CLANG_REWRITER=0
4946 default) ENABLE_CLANG_REWRITER=1
4948 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4949 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4950 { (exit 1); exit 1; }; } ;;
4953 # Check whether --enable-optimized was given.
4954 if test "${enable_optimized+set}" = set; then
4955 enableval=$enable_optimized;
4960 if test ${enableval} = "no" ; then
4964 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4968 # Check whether --enable-profiling was given.
4969 if test "${enable_profiling+set}" = set; then
4970 enableval=$enable_profiling;
4975 if test ${enableval} = "no" ; then
4979 ENABLE_PROFILING=ENABLE_PROFILING=1
4983 # Check whether --enable-assertions was given.
4984 if test "${enable_assertions+set}" = set; then
4985 enableval=$enable_assertions;
4990 if test ${enableval} = "yes" ; then
4994 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4998 # Check whether --enable-werror was given.
4999 if test "${enable_werror+set}" = set; then
5000 enableval=$enable_werror;
5005 case "$enableval" in
5006 yes) ENABLE_WERROR=1
5010 default) ENABLE_WERROR=0
5012 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5013 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5014 { (exit 1); exit 1; }; } ;;
5017 # Check whether --enable-expensive-checks was given.
5018 if test "${enable_expensive_checks+set}" = set; then
5019 enableval=$enable_expensive_checks;
5024 if test ${enableval} = "yes" ; then
5025 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5027 EXPENSIVE_CHECKS=yes
5030 ENABLE_EXPENSIVE_CHECKS=
5036 # Check whether --enable-debug-runtime was given.
5037 if test "${enable_debug_runtime+set}" = set; then
5038 enableval=$enable_debug_runtime;
5043 if test ${enableval} = "no" ; then
5047 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5051 # Check whether --enable-debug-symbols was given.
5052 if test "${enable_debug_symbols+set}" = set; then
5053 enableval=$enable_debug_symbols;
5058 if test ${enableval} = "no" ; then
5062 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5066 # Check whether --enable-keep-symbols was given.
5067 if test "${enable_keep_symbols+set}" = set; then
5068 enableval=$enable_keep_symbols;
5073 if test ${enableval} = "no" ; then
5077 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5081 # Check whether --enable-jit was given.
5082 if test "${enable_jit+set}" = set; then
5083 enableval=$enable_jit;
5088 if test ${enableval} = "no"
5093 case "$llvm_cv_target_arch" in
5094 x86) TARGET_HAS_JIT=1
5096 Sparc) TARGET_HAS_JIT=0
5098 PowerPC) TARGET_HAS_JIT=1
5100 x86_64) TARGET_HAS_JIT=1
5102 ARM) TARGET_HAS_JIT=1
5104 AArch64) TARGET_HAS_JIT=0
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="AArch64 ARM 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 AArch64 ARM 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 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5385 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5386 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5387 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5388 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5389 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5390 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5391 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5392 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5393 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5394 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5395 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5396 host) case "$llvm_cv_target_arch" in
5397 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5398 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5399 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5400 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5401 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5402 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5403 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5404 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5405 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5406 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5407 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5408 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5409 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5410 echo "$as_me: error: Can not set target to build" >&2;}
5411 { (exit 1); exit 1; }; } ;;
5413 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5414 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5415 { (exit 1); exit 1; }; } ;;
5421 # Check whether --enable-experimental-targets was given.
5422 if test "${enable_experimental_targets+set}" = set; then
5423 enableval=$enable_experimental_targets;
5429 if test ${enableval} != "disable"
5431 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5434 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5437 for a_target in $TARGETS_TO_BUILD; do
5438 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5440 cat >>confdefs.h <<_ACEOF
5441 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5444 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5445 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5446 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5447 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5448 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5449 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5451 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5452 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5460 cat >>confdefs.h <<_ACEOF
5461 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5465 cat >>confdefs.h <<_ACEOF
5466 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5470 cat >>confdefs.h <<_ACEOF
5471 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5474 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5476 cat >>confdefs.h <<_ACEOF
5477 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5481 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5483 cat >>confdefs.h <<_ACEOF
5484 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5491 LLVM_ENUM_TARGETS=""
5492 LLVM_ENUM_ASM_PRINTERS=""
5493 LLVM_ENUM_ASM_PARSERS=""
5494 LLVM_ENUM_DISASSEMBLERS=""
5495 for target_to_build in $TARGETS_TO_BUILD; do
5496 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5497 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5498 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5500 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5501 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5503 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5504 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5513 # Check whether --with-optimize-option was given.
5514 if test "${with_optimize_option+set}" = set; then
5515 withval=$with_optimize_option;
5520 { echo "$as_me:$LINENO: checking optimization flags" >&5
5521 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5524 case "$llvm_cv_os_type" in
5525 FreeBSD) optimize_option=-O2 ;;
5526 MingW) optimize_option=-O2 ;;
5527 *) optimize_option=-O3 ;;
5529 *) optimize_option="$withval" ;;
5531 OPTIMIZE_OPTION=$optimize_option
5533 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5534 echo "${ECHO_T}$optimize_option" >&6; }
5537 # Check whether --with-extra-options was given.
5538 if test "${with_extra_options+set}" = set; then
5539 withval=$with_extra_options;
5545 default) EXTRA_OPTIONS= ;;
5546 *) EXTRA_OPTIONS=$withval ;;
5548 EXTRA_OPTIONS=$EXTRA_OPTIONS
5552 # Check whether --with-extra-ld-options was given.
5553 if test "${with_extra_ld_options+set}" = set; then
5554 withval=$with_extra_ld_options;
5560 default) EXTRA_LD_OPTIONS= ;;
5561 *) EXTRA_LD_OPTIONS=$withval ;;
5563 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5566 # Check whether --enable-bindings was given.
5567 if test "${enable_bindings+set}" = set; then
5568 enableval=$enable_bindings;
5573 BINDINGS_TO_BUILD=""
5574 case "$enableval" in
5575 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5576 all ) BINDINGS_TO_BUILD="ocaml" ;;
5577 none | no) BINDINGS_TO_BUILD="" ;;
5578 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5579 case "$a_binding" in
5580 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5581 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5582 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5583 { (exit 1); exit 1; }; } ;;
5590 # Check whether --with-ocaml-libdir was given.
5591 if test "${with_ocaml_libdir+set}" = set; then
5592 withval=$with_ocaml_libdir;
5598 auto) with_ocaml_libdir="$withval" ;;
5599 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5600 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5601 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5602 { (exit 1); exit 1; }; } ;;
5606 # Check whether --with-clang-srcdir was given.
5607 if test "${with_clang_srcdir+set}" = set; then
5608 withval=$with_clang_srcdir;
5614 -) clang_src_root="" ;;
5615 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5616 *) clang_src_root="$ac_pwd/$withval" ;;
5618 CLANG_SRC_ROOT=$clang_src_root
5622 # Check whether --with-clang-resource-dir was given.
5623 if test "${with_clang_resource_dir+set}" = set; then
5624 withval=$with_clang_resource_dir;
5630 cat >>confdefs.h <<_ACEOF
5631 #define CLANG_RESOURCE_DIR "$withval"
5636 # Check whether --with-c-include-dirs was given.
5637 if test "${with_c_include_dirs+set}" = set; then
5638 withval=$with_c_include_dirs;
5644 cat >>confdefs.h <<_ACEOF
5645 #define C_INCLUDE_DIRS "$withval"
5649 # Clang normally uses the system c++ headers and libraries. With this option,
5650 # clang will use the ones provided by a gcc installation instead. This option should
5651 # be passed the same value that was used with --prefix when configuring gcc.
5653 # Check whether --with-gcc-toolchain was given.
5654 if test "${with_gcc_toolchain+set}" = set; then
5655 withval=$with_gcc_toolchain;
5661 cat >>confdefs.h <<_ACEOF
5662 #define GCC_INSTALL_PREFIX "$withval"
5667 # Check whether --with-default-sysroot was given.
5668 if test "${with_default_sysroot+set}" = set; then
5669 withval=$with_default_sysroot;
5675 cat >>confdefs.h <<_ACEOF
5676 #define DEFAULT_SYSROOT "$withval"
5681 # Check whether --with-binutils-include was given.
5682 if test "${with_binutils_include+set}" = set; then
5683 withval=$with_binutils_include;
5689 default) WITH_BINUTILS_INCDIR=default ;;
5690 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5691 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5692 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5693 { (exit 1); exit 1; }; } ;;
5695 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5696 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5698 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5699 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5700 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5701 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5702 { (exit 1); exit 1; }; };
5707 # Check whether --with-bug-report-url was given.
5708 if test "${with_bug_report_url+set}" = set; then
5709 withval=$with_bug_report_url;
5711 withval="http://llvm.org/bugs/"
5715 cat >>confdefs.h <<_ACEOF
5716 #define BUG_REPORT_URL "$withval"
5720 # Check whether --enable-terminfo was given.
5721 if test "${enable_terminfo+set}" = set; then
5722 enableval=$enable_terminfo; case "$enableval" in
5723 yes) llvm_cv_enable_terminfo="yes" ;;
5724 no) llvm_cv_enable_terminfo="no" ;;
5725 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5726 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5727 { (exit 1); exit 1; }; } ;;
5730 llvm_cv_enable_terminfo="yes"
5733 case "$llvm_cv_enable_terminfo" in
5734 yes) ENABLE_TERMINFO=1
5736 no) ENABLE_TERMINFO=0
5740 # Check whether --enable-libedit was given.
5741 if test "${enable_libedit+set}" = set; then
5742 enableval=$enable_libedit; case "$enableval" in
5743 yes) llvm_cv_enable_libedit="yes" ;;
5744 no) llvm_cv_enable_libedit="no" ;;
5745 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5746 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5747 { (exit 1); exit 1; }; } ;;
5750 llvm_cv_enable_libedit="yes"
5754 # Check whether --enable-libffi was given.
5755 if test "${enable_libffi+set}" = set; then
5756 enableval=$enable_libffi; case "$enableval" in
5757 yes) llvm_cv_enable_libffi="yes" ;;
5758 no) llvm_cv_enable_libffi="no" ;;
5759 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5760 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5761 { (exit 1); exit 1; }; } ;;
5764 llvm_cv_enable_libffi=no
5769 # Check whether --with-internal-prefix was given.
5770 if test "${with_internal_prefix+set}" = set; then
5771 withval=$with_internal_prefix;
5776 INTERNAL_PREFIX=$withval
5780 { echo "$as_me:$LINENO: checking for GNU make" >&5
5781 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5782 if test "${llvm_cv_gnu_make_command+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 llvm_cv_gnu_make_command=''
5786 for a in "$MAKE" make gmake gnumake ; do
5787 if test -z "$a" ; then continue ; fi ;
5788 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5790 llvm_cv_gnu_make_command=$a ;
5795 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5796 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5797 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5801 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5802 echo "${ECHO_T}\"Not found\"" >&6; };
5806 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5807 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5809 if test "$LN_S" = "ln -s"; then
5810 { echo "$as_me:$LINENO: result: yes" >&5
5811 echo "${ECHO_T}yes" >&6; }
5813 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5814 echo "${ECHO_T}no, using $LN_S" >&6; }
5817 # Extract the first word of "nm", so it can be a program name with args.
5818 set dummy nm; ac_word=$2
5819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5821 if test "${ac_cv_path_NM+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5849 if test -n "$NM"; then
5850 { echo "$as_me:$LINENO: result: $NM" >&5
5851 echo "${ECHO_T}$NM" >&6; }
5853 { echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6; }
5858 # Extract the first word of "cmp", so it can be a program name with args.
5859 set dummy cmp; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_path_CMP+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5890 if test -n "$CMP"; then
5891 { echo "$as_me:$LINENO: result: $CMP" >&5
5892 echo "${ECHO_T}$CMP" >&6; }
5894 { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5899 # Extract the first word of "cp", so it can be a program name with args.
5900 set dummy cp; ac_word=$2
5901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903 if test "${ac_cv_path_CP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5931 if test -n "$CP"; then
5932 { echo "$as_me:$LINENO: result: $CP" >&5
5933 echo "${ECHO_T}$CP" >&6; }
5935 { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5940 # Extract the first word of "date", so it can be a program name with args.
5941 set dummy date; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_path_DATE+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5971 DATE=$ac_cv_path_DATE
5972 if test -n "$DATE"; then
5973 { echo "$as_me:$LINENO: result: $DATE" >&5
5974 echo "${ECHO_T}$DATE" >&6; }
5976 { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5981 # Extract the first word of "find", so it can be a program name with args.
5982 set dummy find; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_path_FIND+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6012 FIND=$ac_cv_path_FIND
6013 if test -n "$FIND"; then
6014 { echo "$as_me:$LINENO: result: $FIND" >&5
6015 echo "${ECHO_T}$FIND" >&6; }
6017 { echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6; }
6022 # Extract the first word of "grep", so it can be a program name with args.
6023 set dummy grep; ac_word=$2
6024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026 if test "${ac_cv_path_GREP+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6053 GREP=$ac_cv_path_GREP
6054 if test -n "$GREP"; then
6055 { echo "$as_me:$LINENO: result: $GREP" >&5
6056 echo "${ECHO_T}$GREP" >&6; }
6058 { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6063 # Extract the first word of "mkdir", so it can be a program name with args.
6064 set dummy mkdir; ac_word=$2
6065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067 if test "${ac_cv_path_MKDIR+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6094 MKDIR=$ac_cv_path_MKDIR
6095 if test -n "$MKDIR"; then
6096 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6097 echo "${ECHO_T}$MKDIR" >&6; }
6099 { echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6; }
6104 # Extract the first word of "mv", so it can be a program name with args.
6105 set dummy mv; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_MV+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6136 if test -n "$MV"; then
6137 { echo "$as_me:$LINENO: result: $MV" >&5
6138 echo "${ECHO_T}$MV" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6145 if test -n "$ac_tool_prefix"; then
6146 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6147 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_prog_RANLIB+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 if test -n "$RANLIB"; then
6154 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 RANLIB=$ac_cv_prog_RANLIB
6174 if test -n "$RANLIB"; then
6175 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6176 echo "${ECHO_T}$RANLIB" >&6; }
6178 { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6184 if test -z "$ac_cv_prog_RANLIB"; then
6185 ac_ct_RANLIB=$RANLIB
6186 # Extract the first word of "ranlib", so it can be a program name with args.
6187 set dummy ranlib; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 if test -n "$ac_ct_RANLIB"; then
6194 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_prog_ac_ct_RANLIB="ranlib"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6214 if test -n "$ac_ct_RANLIB"; then
6215 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6216 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6218 { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6222 if test "x$ac_ct_RANLIB" = x; then
6225 case $cross_compiling:$ac_tool_warned in
6227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6228 whose name does not start with the host triplet. If you think this
6229 configuration is useful to you, please write to autoconf@gnu.org." >&5
6230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6231 whose name does not start with the host triplet. If you think this
6232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6233 ac_tool_warned=yes ;;
6235 RANLIB=$ac_ct_RANLIB
6238 RANLIB="$ac_cv_prog_RANLIB"
6241 if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6243 set dummy ${ac_tool_prefix}ar; ac_word=$2
6244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246 if test "${ac_cv_prog_AR+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 if test -n "$AR"; then
6250 ac_cv_prog_AR="$AR" # Let the user override the test.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_prog_AR="${ac_tool_prefix}ar"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 if test -n "$AR"; then
6271 { echo "$as_me:$LINENO: result: $AR" >&5
6272 echo "${ECHO_T}$AR" >&6; }
6274 { echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6; }
6280 if test -z "$ac_cv_prog_AR"; then
6282 # Extract the first word of "ar", so it can be a program name with args.
6283 set dummy ar; ac_word=$2
6284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6286 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 if test -n "$ac_ct_AR"; then
6290 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_ac_ct_AR="ar"
6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6310 if test -n "$ac_ct_AR"; then
6311 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6312 echo "${ECHO_T}$ac_ct_AR" >&6; }
6314 { echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6; }
6318 if test "x$ac_ct_AR" = x; then
6321 case $cross_compiling:$ac_tool_warned in
6323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6324 whose name does not start with the host triplet. If you think this
6325 configuration is useful to you, please write to autoconf@gnu.org." >&5
6326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet. If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6329 ac_tool_warned=yes ;;
6337 # Extract the first word of "rm", so it can be a program name with args.
6338 set dummy rm; ac_word=$2
6339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341 if test "${ac_cv_path_RM+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6369 if test -n "$RM"; then
6370 { echo "$as_me:$LINENO: result: $RM" >&5
6371 echo "${ECHO_T}$RM" >&6; }
6373 { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6378 # Extract the first word of "sed", so it can be a program name with args.
6379 set dummy sed; ac_word=$2
6380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6382 if test "${ac_cv_path_SED+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6410 if test -n "$SED"; then
6411 { echo "$as_me:$LINENO: result: $SED" >&5
6412 echo "${ECHO_T}$SED" >&6; }
6414 { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6419 # Extract the first word of "tar", so it can be a program name with args.
6420 set dummy tar; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_path_TAR+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6451 if test -n "$TAR"; then
6452 { echo "$as_me:$LINENO: result: $TAR" >&5
6453 echo "${ECHO_T}$TAR" >&6; }
6455 { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6460 # Extract the first word of "pwd", so it can be a program name with args.
6461 set dummy pwd; ac_word=$2
6462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464 if test "${ac_cv_path_BINPWD+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6491 BINPWD=$ac_cv_path_BINPWD
6492 if test -n "$BINPWD"; then
6493 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6494 echo "${ECHO_T}$BINPWD" >&6; }
6496 { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6502 # Extract the first word of "Graphviz", so it can be a program name with args.
6503 set dummy Graphviz; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6533 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6534 if test -n "$GRAPHVIZ"; then
6535 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6536 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6538 { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6543 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6545 cat >>confdefs.h <<\_ACEOF
6546 #define HAVE_GRAPHVIZ 1
6549 if test "$llvm_cv_os_type" = "MingW" ; then
6550 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6553 cat >>confdefs.h <<_ACEOF
6554 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6558 # Extract the first word of "dot", so it can be a program name with args.
6559 set dummy dot; ac_word=$2
6560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562 if test "${ac_cv_path_DOT+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6577 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6590 if test -n "$DOT"; then
6591 { echo "$as_me:$LINENO: result: $DOT" >&5
6592 echo "${ECHO_T}$DOT" >&6; }
6594 { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6599 if test "$DOT" != "echo dot" ; then
6601 cat >>confdefs.h <<\_ACEOF
6605 if test "$llvm_cv_os_type" = "MingW" ; then
6606 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6609 cat >>confdefs.h <<_ACEOF
6610 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6614 # Extract the first word of "fdp", so it can be a program name with args.
6615 set dummy fdp; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_FDP+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6646 if test -n "$FDP"; then
6647 { echo "$as_me:$LINENO: result: $FDP" >&5
6648 echo "${ECHO_T}$FDP" >&6; }
6650 { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6655 if test "$FDP" != "echo fdp" ; then
6657 cat >>confdefs.h <<\_ACEOF
6661 if test "$llvm_cv_os_type" = "MingW" ; then
6662 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6665 cat >>confdefs.h <<_ACEOF
6666 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6670 # Extract the first word of "neato", so it can be a program name with args.
6671 set dummy neato; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_path_NEATO+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6701 NEATO=$ac_cv_path_NEATO
6702 if test -n "$NEATO"; then
6703 { echo "$as_me:$LINENO: result: $NEATO" >&5
6704 echo "${ECHO_T}$NEATO" >&6; }
6706 { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6711 if test "$NEATO" != "echo neato" ; then
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_NEATO 1
6717 if test "$llvm_cv_os_type" = "MingW" ; then
6718 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6721 cat >>confdefs.h <<_ACEOF
6722 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6726 # Extract the first word of "twopi", so it can be a program name with args.
6727 set dummy twopi; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_TWOPI+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6757 TWOPI=$ac_cv_path_TWOPI
6758 if test -n "$TWOPI"; then
6759 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6760 echo "${ECHO_T}$TWOPI" >&6; }
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6767 if test "$TWOPI" != "echo twopi" ; then
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_TWOPI 1
6773 if test "$llvm_cv_os_type" = "MingW" ; then
6774 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6777 cat >>confdefs.h <<_ACEOF
6778 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6782 # Extract the first word of "circo", so it can be a program name with args.
6783 set dummy circo; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_CIRCO+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6813 CIRCO=$ac_cv_path_CIRCO
6814 if test -n "$CIRCO"; then
6815 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6816 echo "${ECHO_T}$CIRCO" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6823 if test "$CIRCO" != "echo circo" ; then
6825 cat >>confdefs.h <<\_ACEOF
6826 #define HAVE_CIRCO 1
6829 if test "$llvm_cv_os_type" = "MingW" ; then
6830 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6833 cat >>confdefs.h <<_ACEOF
6834 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6838 for ac_prog in gv gsview32
6840 # Extract the first word of "$ac_prog", so it can be a program name with args.
6841 set dummy $ac_prog; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_path_GV+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 if test -n "$GV"; then
6872 { echo "$as_me:$LINENO: result: $GV" >&5
6873 echo "${ECHO_T}$GV" >&6; }
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6880 test -n "$GV" && break
6882 test -n "$GV" || GV="echo gv"
6884 if test "$GV" != "echo gv" ; then
6886 cat >>confdefs.h <<\_ACEOF
6890 if test "$llvm_cv_os_type" = "MingW" ; then
6891 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6894 cat >>confdefs.h <<_ACEOF
6895 #define LLVM_PATH_GV "$GV${EXEEXT}"
6899 # Extract the first word of "dotty", so it can be a program name with args.
6900 set dummy dotty; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_DOTTY+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6930 DOTTY=$ac_cv_path_DOTTY
6931 if test -n "$DOTTY"; then
6932 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6933 echo "${ECHO_T}$DOTTY" >&6; }
6935 { echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6; }
6940 if test "$DOTTY" != "echo dotty" ; then
6942 cat >>confdefs.h <<\_ACEOF
6943 #define HAVE_DOTTY 1
6946 if test "$llvm_cv_os_type" = "MingW" ; then
6947 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6950 cat >>confdefs.h <<_ACEOF
6951 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6955 for ac_prog in xdot xdot.py
6957 # Extract the first word of "$ac_prog", so it can be a program name with args.
6958 set dummy $ac_prog; ac_word=$2
6959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6961 if test "${ac_cv_path_XDOT+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 XDOT=$ac_cv_path_XDOT
6988 if test -n "$XDOT"; then
6989 { echo "$as_me:$LINENO: result: $XDOT" >&5
6990 echo "${ECHO_T}$XDOT" >&6; }
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6997 test -n "$XDOT" && break
6999 test -n "$XDOT" || XDOT="echo xdot"
7001 if test "$XDOT" != "echo xdot" ; then
7003 cat >>confdefs.h <<\_ACEOF
7007 if test "$llvm_cv_os_type" = "MingW" ; then
7008 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7011 cat >>confdefs.h <<_ACEOF
7012 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7017 # Find a good install program. We prefer a C program (faster),
7018 # so one script is as good as another. But avoid the broken or
7019 # incompatible versions:
7020 # SysV /etc/install, /usr/sbin/install
7021 # SunOS /usr/etc/install
7022 # IRIX /sbin/install
7024 # AmigaOS /C/install, which installs bootblocks on floppy discs
7025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7028 # OS/2's system install, which has a completely different semantic
7029 # ./install, which can be erroneously created by make from ./install.sh.
7030 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7032 if test -z "$INSTALL"; then
7033 if test "${ac_cv_path_install+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 # Account for people who put trailing slashes in PATH elements.
7043 ./ | .// | /cC/* | \
7044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7045 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7048 # OSF1 and SCO ODT 3.0 have their own names for install.
7049 # Don't use installbsd from OSF since it installs stuff as root
7051 for ac_prog in ginstall scoinst install; do
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7054 if test $ac_prog = install &&
7055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056 # AIX install. It has an incompatible calling convention.
7058 elif test $ac_prog = install &&
7059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7060 # program-specific install script used by HP pwplus--don't use.
7063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7076 if test "${ac_cv_path_install+set}" = set; then
7077 INSTALL=$ac_cv_path_install
7079 # As a last resort, use the slow shell script. Don't cache a
7080 # value for INSTALL within a source directory, because that will
7081 # break other packages using the cache if that directory is
7082 # removed, or if the value is a relative name.
7083 INSTALL=$ac_install_sh
7086 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7087 echo "${ECHO_T}$INSTALL" >&6; }
7089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7090 # It thinks the first close brace ends the variable substitution.
7091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7098 [\\/$]* | ?:[\\/]* ) ;;
7099 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7102 # Extract the first word of "bzip2", so it can be a program name with args.
7103 set dummy bzip2; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_BZIP2+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 BZIP2=$ac_cv_path_BZIP2
7133 if test -n "$BZIP2"; then
7134 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7135 echo "${ECHO_T}$BZIP2" >&6; }
7137 { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7142 # Extract the first word of "cat", so it can be a program name with args.
7143 set dummy cat; ac_word=$2
7144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146 if test "${ac_cv_path_CAT+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 if test -n "$CAT"; then
7174 { echo "$as_me:$LINENO: result: $CAT" >&5
7175 echo "${ECHO_T}$CAT" >&6; }
7177 { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7182 # Extract the first word of "doxygen", so it can be a program name with args.
7183 set dummy doxygen; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 DOXYGEN=$ac_cv_path_DOXYGEN
7213 if test -n "$DOXYGEN"; then
7214 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7215 echo "${ECHO_T}$DOXYGEN" >&6; }
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7222 # Extract the first word of "groff", so it can be a program name with args.
7223 set dummy groff; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_GROFF+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 GROFF=$ac_cv_path_GROFF
7253 if test -n "$GROFF"; then
7254 { echo "$as_me:$LINENO: result: $GROFF" >&5
7255 echo "${ECHO_T}$GROFF" >&6; }
7257 { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7262 # Extract the first word of "gzip", so it can be a program name with args.
7263 set dummy gzip; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 GZIPBIN=$ac_cv_path_GZIPBIN
7293 if test -n "$GZIPBIN"; then
7294 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7295 echo "${ECHO_T}$GZIPBIN" >&6; }
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 # Extract the first word of "pdfroff", so it can be a program name with args.
7303 set dummy pdfroff; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_PDFROFF+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 PDFROFF=$ac_cv_path_PDFROFF
7333 if test -n "$PDFROFF"; then
7334 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7335 echo "${ECHO_T}$PDFROFF" >&6; }
7337 { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7342 # Extract the first word of "zip", so it can be a program name with args.
7343 set dummy zip; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_ZIP+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 if test -n "$ZIP"; then
7374 { echo "$as_me:$LINENO: result: $ZIP" >&5
7375 echo "${ECHO_T}$ZIP" >&6; }
7377 { echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6; }
7382 for ac_prog in ocamlc
7384 # Extract the first word of "$ac_prog", so it can be a program name with args.
7385 set dummy $ac_prog; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_OCAMLC+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 OCAMLC=$ac_cv_path_OCAMLC
7415 if test -n "$OCAMLC"; then
7416 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7417 echo "${ECHO_T}$OCAMLC" >&6; }
7419 { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7424 test -n "$OCAMLC" && break
7427 for ac_prog in ocamlopt
7429 # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy $ac_prog; ac_word=$2
7431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7448 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 OCAMLOPT=$ac_cv_path_OCAMLOPT
7460 if test -n "$OCAMLOPT"; then
7461 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7462 echo "${ECHO_T}$OCAMLOPT" >&6; }
7464 { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7469 test -n "$OCAMLOPT" && break
7472 for ac_prog in ocamldep
7474 # Extract the first word of "$ac_prog", so it can be a program name with args.
7475 set dummy $ac_prog; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 OCAMLDEP=$ac_cv_path_OCAMLDEP
7505 if test -n "$OCAMLDEP"; then
7506 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7507 echo "${ECHO_T}$OCAMLDEP" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7514 test -n "$OCAMLDEP" && break
7517 for ac_prog in ocamldoc
7519 # Extract the first word of "$ac_prog", so it can be a program name with args.
7520 set dummy $ac_prog; ac_word=$2
7521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 OCAMLDOC=$ac_cv_path_OCAMLDOC
7550 if test -n "$OCAMLDOC"; then
7551 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7552 echo "${ECHO_T}$OCAMLDOC" >&6; }
7554 { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7559 test -n "$OCAMLDOC" && break
7562 for ac_prog in gas as
7564 # Extract the first word of "$ac_prog", so it can be a program name with args.
7565 set dummy $ac_prog; ac_word=$2
7566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568 if test "${ac_cv_path_GAS+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 if test -n "$GAS"; then
7596 { echo "$as_me:$LINENO: result: $GAS" >&5
7597 echo "${ECHO_T}$GAS" >&6; }
7599 { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7604 test -n "$GAS" && break
7608 { echo "$as_me:$LINENO: checking for linker version" >&5
7609 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7610 if test "${llvm_cv_link_version+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 version_string="$(ld -v 2>&1 | head -1)"
7617 if (echo "$version_string" | grep -q "ld64"); then
7618 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7620 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7624 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7625 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7627 cat >>confdefs.h <<_ACEOF
7628 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7634 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7635 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7636 if test "${llvm_cv_link_use_r+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646 CFLAGS="$CFLAGS -Wl,-R."
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (ac_try="$ac_link"
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_link") 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } &&
7676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7677 { (case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_try") 2>&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 llvm_cv_link_use_r=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 llvm_cv_link_use_r=no
7704 rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7716 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7717 if test "$llvm_cv_link_use_r" = yes ; then
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_LINK_R 1
7726 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7727 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7728 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 ac_cpp='$CPP $CPPFLAGS'
7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738 CFLAGS="$CFLAGS -rdynamic"
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (ac_try="$ac_link"
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_link") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7769 { (case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_try") 2>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_try") 2>&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 llvm_cv_link_use_export_dynamic=yes
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 llvm_cv_link_use_export_dynamic=no
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7808 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7809 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7811 cat >>confdefs.h <<\_ACEOF
7812 #define HAVE_LINK_EXPORT_DYNAMIC 1
7818 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7819 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7820 if test "${llvm_cv_link_use_version_script+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831 # The following code is from the autoconf manual,
7832 # "11.13: Limitations of Usual Tools".
7833 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7834 # Use mktemp if possible; otherwise fall back on mkdir,
7835 # with $RANDOM to make collisions less likely.
7839 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7841 test -n "$tmp" && test -d "$tmp"
7843 tmp=$TMPDIR/foo$$-$RANDOM
7844 (umask 077 && mkdir "$tmp")
7847 echo "{" > "$tmp/export.map"
7848 echo " global: main;" >> "$tmp/export.map"
7849 echo " local: *;" >> "$tmp/export.map"
7850 echo "};" >> "$tmp/export.map"
7852 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7853 cat >conftest.$ac_ext <<_ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 llvm_cv_link_use_version_script=yes
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 llvm_cv_link_use_version_script=no
7910 rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 rm "$tmp/export.map"
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7923 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7924 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7925 if test "$llvm_cv_link_use_version_script" = yes ; then
7926 HAVE_LINK_VERSION_SCRIPT=1
7932 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7933 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7934 if test "${ac_cv_path_GREP+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 # Extract the first word of "grep ggrep" to use in msg output
7938 if test -z "$GREP"; then
7939 set dummy grep ggrep; ac_prog_name=$2
7940 if test "${ac_cv_path_GREP+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 ac_path_GREP_found=false
7944 # Loop through the user's path and test for each of PROGNAME-LIST
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7949 test -z "$as_dir" && as_dir=.
7950 for ac_prog in grep ggrep; do
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7953 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7954 # Check for GNU ac_path_GREP and select it if it is found.
7955 # Check for GNU $ac_path_GREP
7956 case `"$ac_path_GREP" --version 2>&1` in
7958 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7961 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7964 cat "conftest.in" "conftest.in" >"conftest.tmp"
7965 mv "conftest.tmp" "conftest.in"
7966 cp "conftest.in" "conftest.nl"
7967 echo 'GREP' >> "conftest.nl"
7968 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7970 ac_count=`expr $ac_count + 1`
7971 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7972 # Best one so far, save it but keep looking for a better one
7973 ac_cv_path_GREP="$ac_path_GREP"
7974 ac_path_GREP_max=$ac_count
7976 # 10*(2^10) chars as input seems more than enough
7977 test $ac_count -gt 10 && break
7979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7983 $ac_path_GREP_found && break 3
7993 GREP="$ac_cv_path_GREP"
7994 if test -z "$GREP"; then
7995 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7996 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7997 { (exit 1); exit 1; }; }
8001 ac_cv_path_GREP=$GREP
8006 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8007 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8008 GREP="$ac_cv_path_GREP"
8011 { echo "$as_me:$LINENO: checking for egrep" >&5
8012 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8013 if test "${ac_cv_path_EGREP+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8017 then ac_cv_path_EGREP="$GREP -E"
8019 # Extract the first word of "egrep" to use in msg output
8020 if test -z "$EGREP"; then
8021 set dummy egrep; ac_prog_name=$2
8022 if test "${ac_cv_path_EGREP+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 ac_path_EGREP_found=false
8026 # Loop through the user's path and test for each of PROGNAME-LIST
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8031 test -z "$as_dir" && as_dir=.
8032 for ac_prog in egrep; do
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8035 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8036 # Check for GNU ac_path_EGREP and select it if it is found.
8037 # Check for GNU $ac_path_EGREP
8038 case `"$ac_path_EGREP" --version 2>&1` in
8040 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8043 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8046 cat "conftest.in" "conftest.in" >"conftest.tmp"
8047 mv "conftest.tmp" "conftest.in"
8048 cp "conftest.in" "conftest.nl"
8049 echo 'EGREP' >> "conftest.nl"
8050 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8052 ac_count=`expr $ac_count + 1`
8053 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8054 # Best one so far, save it but keep looking for a better one
8055 ac_cv_path_EGREP="$ac_path_EGREP"
8056 ac_path_EGREP_max=$ac_count
8058 # 10*(2^10) chars as input seems more than enough
8059 test $ac_count -gt 10 && break
8061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8065 $ac_path_EGREP_found && break 3
8075 EGREP="$ac_cv_path_EGREP"
8076 if test -z "$EGREP"; then
8077 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8078 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8079 { (exit 1); exit 1; }; }
8083 ac_cv_path_EGREP=$EGREP
8089 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8090 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8091 EGREP="$ac_cv_path_EGREP"
8094 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8095 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8096 if test "${ac_cv_header_stdc+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8118 rm -f conftest.$ac_objext
8119 if { (ac_try="$ac_compile"
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_compile") 2>conftest.er1
8127 grep -v '^ *+' conftest.er1 >conftest.err
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8133 { (case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_try") 2>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_try") 2>&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_header_stdc=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_cv_header_stdc=no
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 if test $ac_cv_header_stdc = yes; then
8163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8174 $EGREP "memchr" >/dev/null 2>&1; then
8177 ac_cv_header_stdc=no
8183 if test $ac_cv_header_stdc = yes; then
8184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8185 cat >conftest.$ac_ext <<_ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195 $EGREP "free" >/dev/null 2>&1; then
8198 ac_cv_header_stdc=no
8204 if test $ac_cv_header_stdc = yes; then
8205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8206 if test "$cross_compiling" = yes; then
8209 cat >conftest.$ac_ext <<_ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8217 #if ((' ' & 0x0FF) == 0x020)
8218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8221 # define ISLOWER(c) \
8222 (('a' <= (c) && (c) <= 'i') \
8223 || ('j' <= (c) && (c) <= 'r') \
8224 || ('s' <= (c) && (c) <= 'z'))
8225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8233 for (i = 0; i < 256; i++)
8234 if (XOR (islower (i), ISLOWER (i))
8235 || toupper (i) != TOUPPER (i))
8240 rm -f conftest$ac_exeext
8241 if { (ac_try="$ac_link"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_link") 2>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8251 { (case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_try") 2>&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8262 echo "$as_me: program exited with status $ac_status" >&5
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8267 ac_cv_header_stdc=no
8269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8275 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8276 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8277 if test $ac_cv_header_stdc = yes; then
8279 cat >>confdefs.h <<\_ACEOF
8280 #define STDC_HEADERS 1
8285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8295 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8296 inttypes.h stdint.h unistd.h
8298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 $ac_includes_default
8312 #include <$ac_header>
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8329 { (case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_try") 2>&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest.$ac_objext'
8339 { (case "(($ac_try" in
8340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341 *) ac_try_echo=$ac_try;;
8343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8344 (eval "$ac_try") 2>&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 eval "$as_ac_Header=yes"
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 eval "$as_ac_Header=no"
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 ac_res=`eval echo '${'$as_ac_Header'}'`
8359 { echo "$as_me:$LINENO: result: $ac_res" >&5
8360 echo "${ECHO_T}$ac_res" >&6; }
8361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8362 cat >>confdefs.h <<_ACEOF
8363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8372 for ac_header in errno.h
8374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 ac_res=`eval echo '${'$as_ac_Header'}'`
8382 { echo "$as_me:$LINENO: result: $ac_res" >&5
8383 echo "${ECHO_T}$ac_res" >&6; }
8385 # Is the header compilable?
8386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8388 cat >conftest.$ac_ext <<_ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 $ac_includes_default
8395 #include <$ac_header>
8397 rm -f conftest.$ac_objext
8398 if { (ac_try="$ac_compile"
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_compile") 2>conftest.er1
8406 grep -v '^ *+' conftest.er1 >conftest.err
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412 { (case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_try") 2>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest.$ac_objext'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_try") 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_header_compiler=yes
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8436 ac_header_compiler=no
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8441 echo "${ECHO_T}$ac_header_compiler" >&6; }
8443 # Is the header present?
8444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 #include <$ac_header>
8454 if { (ac_try="$ac_cpp conftest.$ac_ext"
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } >/dev/null; then
8467 if test -s conftest.err; then
8468 ac_cpp_err=$ac_c_preproc_warn_flag
8469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8476 if test -z "$ac_cpp_err"; then
8477 ac_header_preproc=yes
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8482 ac_header_preproc=no
8485 rm -f conftest.err conftest.$ac_ext
8486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8487 echo "${ECHO_T}$ac_header_preproc" >&6; }
8489 # So? What about this header?
8490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8496 ac_header_preproc=yes
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8512 ## ------------------------------------ ##
8513 ## Report this to http://llvm.org/bugs/ ##
8514 ## ------------------------------------ ##
8516 ) | sed "s/^/$as_me: WARNING: /" >&2
8519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 eval "$as_ac_Header=\$ac_header_preproc"
8526 ac_res=`eval echo '${'$as_ac_Header'}'`
8527 { echo "$as_me:$LINENO: result: $ac_res" >&5
8528 echo "${ECHO_T}$ac_res" >&6; }
8531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8532 cat >>confdefs.h <<_ACEOF
8533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8541 case "$llvm_cv_os_type" in
8542 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8543 Darwin) llvm_shlib_ext=.dylib ;;
8544 *) llvm_shlib_ext=.so ;;
8548 cat >>confdefs.h <<_ACEOF
8549 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8553 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8554 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8567 if test "$GCC" != "yes" && test "$ICC" != "yes"
8569 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8570 echo "$as_me: error: gcc|icc required but not found" >&2;}
8571 { (exit 1); exit 1; }; }
8574 if test "$GXX" != "yes" && test "$IXX" != "yes"
8576 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8577 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8578 { (exit 1); exit 1; }; }
8581 if test "$GCC" = "yes"
8583 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8591 #if !defined(__GNUC__) || __GNUC__ < 3
8592 #error Unsupported GCC version
8597 rm -f conftest.$ac_objext
8598 if { (ac_try="$ac_compile"
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_compile") 2>conftest.er1
8606 grep -v '^ *+' conftest.er1 >conftest.err
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8612 { (case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_try") 2>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest.$ac_objext'
8622 { (case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_try") 2>&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8637 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8638 { (exit 1); exit 1; }; }
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 if test -z "$llvm_cv_gnu_make_command"
8646 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8647 echo "$as_me: error: GNU Make required but not found" >&2;}
8648 { (exit 1); exit 1; }; }
8651 { echo "$as_me:$LINENO: result: ok" >&5
8652 echo "${ECHO_T}ok" >&6; }
8654 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8655 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8656 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8658 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8660 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8664 NO_MAYBE_UNINITIALIZED=
8665 if test "$GXX" = "yes"
8667 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8669 if test -z "$NO_MAYBE_UNINITIALIZED"
8671 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8675 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8676 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8679 # Check whether --with-python was given.
8680 if test "${with_python+set}" = set; then
8681 withval=$with_python; PYTHON="$withval"
8685 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8686 { echo "$as_me:$LINENO: checking for python" >&5
8687 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8688 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8689 echo "${ECHO_T}user defined: $with_python" >&6; }
8691 if test -n "$PYTHON" ; then
8692 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8693 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8696 # Extract the first word of "python python2 python26", so it can be a program name with args.
8697 set dummy python python2 python26; ac_word=$2
8698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8700 if test "${ac_cv_path_PYTHON+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8715 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8724 echo "${ECHO_T}not found" >&6; }
8725 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8726 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8727 { (exit 1); exit 1; }; }"
8731 PYTHON=$ac_cv_path_PYTHON
8732 if test -n "$PYTHON"; then
8733 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8734 echo "${ECHO_T}$PYTHON" >&6; }
8736 { echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6; }
8743 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8744 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8745 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8746 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8747 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8748 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8749 if test "$ac_python_version_major" -gt "2" || \
8750 (test "$ac_python_version_major" -eq "2" && \
8751 test "$ac_python_version_minor" -ge "5") ; then
8752 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8753 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8755 { echo "$as_me:$LINENO: result: not found" >&5
8756 echo "${ECHO_T}not found" >&6; }
8757 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8758 See \`config.log' for more details." >&5
8759 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8760 See \`config.log' for more details." >&2;}
8761 { (exit 1); exit 1; }; }
8766 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8767 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8768 if test "${ac_cv_lib_m_sin+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 ac_check_lib_save_LIBS=$LIBS
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8780 /* Override any GCC internal prototype to avoid an error.
8781 Use char because int might match the return type of a GCC
8782 builtin and then its argument prototype would still apply. */
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (ac_try="$ac_link"
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802 (eval "$ac_link") 2>conftest.er1
8804 grep -v '^ *+' conftest.er1 >conftest.err
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8810 { (case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_try") 2>&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; } &&
8819 { ac_try='test -s conftest$ac_exeext'
8820 { (case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_try") 2>&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8837 rm -f core conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8841 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8842 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8843 if test $ac_cv_lib_m_sin = yes; then
8844 cat >>confdefs.h <<_ACEOF
8852 if test "$llvm_cv_os_type" = "MingW" ; then
8854 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8855 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8856 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 ac_check_lib_save_LIBS=$LIBS
8860 LIBS="-limagehlp $LIBS"
8861 cat >conftest.$ac_ext <<_ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (ac_try="$ac_link"
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_link") 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892 { (case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_try") 2>&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_lib_imagehlp_main=yes
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_lib_imagehlp_main=no
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 LIBS=$ac_check_lib_save_LIBS
8923 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8924 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8925 if test $ac_cv_lib_imagehlp_main = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927 #define HAVE_LIBIMAGEHLP 1
8930 LIBS="-limagehlp $LIBS"
8935 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8936 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8937 if test "${ac_cv_lib_psapi_main+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 ac_check_lib_save_LIBS=$LIBS
8941 LIBS="-lpsapi $LIBS"
8942 cat >conftest.$ac_ext <<_ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_lib_psapi_main=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ac_cv_lib_psapi_main=no
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 LIBS=$ac_check_lib_save_LIBS
9004 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
9005 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
9006 if test $ac_cv_lib_psapi_main = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_LIBPSAPI 1
9011 LIBS="-lpsapi $LIBS"
9016 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
9017 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
9018 if test "${ac_cv_lib_shell32_main+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 ac_check_lib_save_LIBS=$LIBS
9022 LIBS="-lshell32 $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9039 rm -f conftest.$ac_objext conftest$ac_exeext
9040 if { (ac_try="$ac_link"
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_link") 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9054 { (case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_try") 2>&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_lib_shell32_main=yes
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_cv_lib_shell32_main=no
9081 rm -f core conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9083 LIBS=$ac_check_lib_save_LIBS
9085 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9086 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9087 if test $ac_cv_lib_shell32_main = yes; then
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_LIBSHELL32 1
9092 LIBS="-lshell32 $LIBS"
9098 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9099 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9100 if test "${ac_cv_search_dlopen+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 ac_func_search_save_LIBS=$LIBS
9104 cat >conftest.$ac_ext <<_ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9111 /* Override any GCC internal prototype to avoid an error.
9112 Use char because int might match the return type of a GCC
9113 builtin and then its argument prototype would still apply. */
9126 for ac_lib in '' dl; do
9127 if test -z "$ac_lib"; then
9128 ac_res="none required"
9131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9133 rm -f conftest.$ac_objext conftest$ac_exeext
9134 if { (ac_try="$ac_link"
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_link") 2>conftest.er1
9142 grep -v '^ *+' conftest.er1 >conftest.err
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9148 { (case "(($ac_try" in
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153 (eval "$ac_try") 2>&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; } &&
9157 { ac_try='test -s conftest$ac_exeext'
9158 { (case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_try") 2>&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 ac_cv_search_dlopen=$ac_res
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9175 rm -f core conftest.err conftest.$ac_objext \
9177 if test "${ac_cv_search_dlopen+set}" = set; then
9181 if test "${ac_cv_search_dlopen+set}" = set; then
9184 ac_cv_search_dlopen=no
9187 LIBS=$ac_func_search_save_LIBS
9189 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9190 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9191 ac_res=$ac_cv_search_dlopen
9192 if test "$ac_res" != no; then
9193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9196 cat >>confdefs.h <<\_ACEOF
9197 #define HAVE_DLOPEN 1
9204 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9205 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9209 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9210 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9211 if test "${ac_cv_search_clock_gettime+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 ac_func_search_save_LIBS=$LIBS
9215 cat >conftest.$ac_ext <<_ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9228 char clock_gettime ();
9232 return clock_gettime ();
9237 for ac_lib in '' rt; do
9238 if test -z "$ac_lib"; then
9239 ac_res="none required"
9242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (ac_try="$ac_link"
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_link") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9259 { (case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_try") 2>&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; } &&
9268 { ac_try='test -s conftest$ac_exeext'
9269 { (case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_try") 2>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9278 ac_cv_search_clock_gettime=$ac_res
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9286 rm -f core conftest.err conftest.$ac_objext \
9288 if test "${ac_cv_search_clock_gettime+set}" = set; then
9292 if test "${ac_cv_search_clock_gettime+set}" = set; then
9295 ac_cv_search_clock_gettime=no
9298 LIBS=$ac_func_search_save_LIBS
9300 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9301 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9302 ac_res=$ac_cv_search_clock_gettime
9303 if test "$ac_res" != no; then
9304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9309 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9310 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9311 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9312 if test "${ac_cv_search_setupterm+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 ac_func_search_save_LIBS=$LIBS
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9323 /* Override any GCC internal prototype to avoid an error.
9324 Use char because int might match the return type of a GCC
9325 builtin and then its argument prototype would still apply. */
9333 return setupterm ();
9338 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9339 if test -z "$ac_lib"; then
9340 ac_res="none required"
9343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_link") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9360 { (case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_try") 2>&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest$ac_exeext'
9370 { (case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_try") 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_cv_search_setupterm=$ac_res
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9387 rm -f core conftest.err conftest.$ac_objext \
9389 if test "${ac_cv_search_setupterm+set}" = set; then
9393 if test "${ac_cv_search_setupterm+set}" = set; then
9396 ac_cv_search_setupterm=no
9399 LIBS=$ac_func_search_save_LIBS
9401 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9402 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9403 ac_res=$ac_cv_search_setupterm
9404 if test "$ac_res" != no; then
9405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9408 cat >>confdefs.h <<\_ACEOF
9409 #define HAVE_TERMINFO 1
9419 if test "$llvm_cv_enable_libedit" = "yes" ; then
9420 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9421 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9422 if test "${ac_cv_search_el_init+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 ac_func_search_save_LIBS=$LIBS
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9448 for ac_lib in '' edit; do
9449 if test -z "$ac_lib"; then
9450 ac_res="none required"
9453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (ac_try="$ac_link"
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_link") 2>conftest.er1
9464 grep -v '^ *+' conftest.er1 >conftest.err
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9470 { (case "(($ac_try" in
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475 (eval "$ac_try") 2>&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; } &&
9479 { ac_try='test -s conftest$ac_exeext'
9480 { (case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_try") 2>&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_search_el_init=$ac_res
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9497 rm -f core conftest.err conftest.$ac_objext \
9499 if test "${ac_cv_search_el_init+set}" = set; then
9503 if test "${ac_cv_search_el_init+set}" = set; then
9506 ac_cv_search_el_init=no
9509 LIBS=$ac_func_search_save_LIBS
9511 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9512 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9513 ac_res=$ac_cv_search_el_init
9514 if test "$ac_res" != no; then
9515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9517 cat >>confdefs.h <<\_ACEOF
9518 #define HAVE_LIBEDIT 1
9525 if test "$llvm_cv_enable_libffi" = "yes" ; then
9526 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9527 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9528 if test "${ac_cv_search_ffi_call+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 ac_func_search_save_LIBS=$LIBS
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9554 for ac_lib in '' ffi; do
9555 if test -z "$ac_lib"; then
9556 ac_res="none required"
9559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_link") 2>conftest.er1
9570 grep -v '^ *+' conftest.er1 >conftest.err
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9576 { (case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_try") 2>&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_cv_search_ffi_call=$ac_res
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9603 rm -f core conftest.err conftest.$ac_objext \
9605 if test "${ac_cv_search_ffi_call+set}" = set; then
9609 if test "${ac_cv_search_ffi_call+set}" = set; then
9612 ac_cv_search_ffi_call=no
9615 LIBS=$ac_func_search_save_LIBS
9617 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9618 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9619 ac_res=$ac_cv_search_ffi_call
9620 if test "$ac_res" != no; then
9621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_FFI_CALL 1
9628 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9629 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9630 { (exit 1); exit 1; }; }
9635 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9636 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9637 if test "${ac_cv_search_mallinfo+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 ac_func_search_save_LIBS=$LIBS
9641 cat >conftest.$ac_ext <<_ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9648 /* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
9663 for ac_lib in '' malloc; do
9664 if test -z "$ac_lib"; then
9665 ac_res="none required"
9668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_link") 2>conftest.er1
9679 grep -v '^ *+' conftest.er1 >conftest.err
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9685 { (case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_try") 2>&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try='test -s conftest$ac_exeext'
9695 { (case "(($ac_try" in
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_try") 2>&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_search_mallinfo=$ac_res
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9712 rm -f core conftest.err conftest.$ac_objext \
9714 if test "${ac_cv_search_mallinfo+set}" = set; then
9718 if test "${ac_cv_search_mallinfo+set}" = set; then
9721 ac_cv_search_mallinfo=no
9724 LIBS=$ac_func_search_save_LIBS
9726 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9727 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9728 ac_res=$ac_cv_search_mallinfo
9729 if test "$ac_res" != no; then
9730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_MALLINFO 1
9739 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9741 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9742 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9743 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 ac_check_lib_save_LIBS=$LIBS
9747 LIBS="-lpthread $LIBS"
9748 cat >conftest.$ac_ext <<_ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9755 /* Override any GCC internal prototype to avoid an error.
9756 Use char because int might match the return type of a GCC
9757 builtin and then its argument prototype would still apply. */
9761 char pthread_mutex_init ();
9765 return pthread_mutex_init ();
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9779 grep -v '^ *+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9785 { (case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_try") 2>&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; } &&
9794 { ac_try='test -s conftest$ac_exeext'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_lib_pthread_pthread_mutex_init=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_cv_lib_pthread_pthread_mutex_init=no
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 LIBS=$ac_check_lib_save_LIBS
9816 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9817 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9818 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define HAVE_LIBPTHREAD 1
9823 LIBS="-lpthread $LIBS"
9827 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9828 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9829 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 ac_func_search_save_LIBS=$LIBS
9833 cat >conftest.$ac_ext <<_ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9846 char pthread_mutex_lock ();
9850 return pthread_mutex_lock ();
9855 for ac_lib in '' pthread; do
9856 if test -z "$ac_lib"; then
9857 ac_res="none required"
9860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_link") 2>conftest.er1
9871 grep -v '^ *+' conftest.er1 >conftest.err
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877 { (case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_try") 2>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_search_pthread_mutex_lock=$ac_res
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9904 rm -f core conftest.err conftest.$ac_objext \
9906 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9910 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9913 ac_cv_search_pthread_mutex_lock=no
9916 LIBS=$ac_func_search_save_LIBS
9918 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9919 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9920 ac_res=$ac_cv_search_pthread_mutex_lock
9921 if test "$ac_res" != no; then
9922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9924 cat >>confdefs.h <<\_ACEOF
9925 #define HAVE_PTHREAD_MUTEX_LOCK 1
9930 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9931 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9932 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 ac_func_search_save_LIBS=$LIBS
9936 cat >conftest.$ac_ext <<_ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9943 /* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9949 char pthread_rwlock_init ();
9953 return pthread_rwlock_init ();
9958 for ac_lib in '' pthread; do
9959 if test -z "$ac_lib"; then
9960 ac_res="none required"
9963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (ac_try="$ac_link"
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_try") 2>&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_try") 2>&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_search_pthread_rwlock_init=$ac_res
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10007 rm -f core conftest.err conftest.$ac_objext \
10009 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10013 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10016 ac_cv_search_pthread_rwlock_init=no
10018 rm conftest.$ac_ext
10019 LIBS=$ac_func_search_save_LIBS
10021 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10022 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
10023 ac_res=$ac_cv_search_pthread_rwlock_init
10024 if test "$ac_res" != no; then
10025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10027 cat >>confdefs.h <<\_ACEOF
10028 #define HAVE_PTHREAD_RWLOCK_INIT 1
10033 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10034 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10035 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 ac_func_search_save_LIBS=$LIBS
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10046 /* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10052 char pthread_getspecific ();
10056 return pthread_getspecific ();
10061 for ac_lib in '' pthread; do
10062 if test -z "$ac_lib"; then
10063 ac_res="none required"
10066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (ac_try="$ac_link"
10070 case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>conftest.er1
10077 grep -v '^ *+' conftest.er1 >conftest.err
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10083 { (case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088 (eval "$ac_try") 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try='test -s conftest$ac_exeext'
10093 { (case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_try") 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_cv_search_pthread_getspecific=$ac_res
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10110 rm -f core conftest.err conftest.$ac_objext \
10112 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10116 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10119 ac_cv_search_pthread_getspecific=no
10121 rm conftest.$ac_ext
10122 LIBS=$ac_func_search_save_LIBS
10124 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10125 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10126 ac_res=$ac_cv_search_pthread_getspecific
10127 if test "$ac_res" != no; then
10128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10130 cat >>confdefs.h <<\_ACEOF
10131 #define HAVE_PTHREAD_GETSPECIFIC 1
10138 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10140 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10141 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10142 if test "${ac_cv_lib_z_compress2+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 ac_check_lib_save_LIBS=$LIBS
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10154 /* Override any GCC internal prototype to avoid an error.
10155 Use char because int might match the return type of a GCC
10156 builtin and then its argument prototype would still apply. */
10164 return compress2 ();
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (ac_try="$ac_link"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_link") 2>conftest.er1
10178 grep -v '^ *+' conftest.er1 >conftest.err
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10184 { (case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_try") 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; } &&
10193 { ac_try='test -s conftest$ac_exeext'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_lib_z_compress2=yes
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ac_cv_lib_z_compress2=no
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10215 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10216 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10217 if test $ac_cv_lib_z_compress2 = yes; then
10218 cat >>confdefs.h <<_ACEOF
10219 #define HAVE_LIBZ 1
10229 # Check whether --with-udis86 was given.
10230 if test "${with_udis86+set}" = set; then
10231 withval=$with_udis86;
10236 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10239 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10240 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10241 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-ludis86 $LIBS"
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_try") 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_cv_lib_udis86_ud_init=yes
10304 echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10307 ac_cv_lib_udis86_ud_init=no
10310 rm -f core conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10312 LIBS=$ac_check_lib_save_LIBS
10314 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10315 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10316 if test $ac_cv_lib_udis86_ud_init = yes; then
10317 cat >>confdefs.h <<_ACEOF
10318 #define HAVE_LIBUDIS86 1
10321 LIBS="-ludis86 $LIBS"
10325 echo "Error! You need to have libudis86 around."
10337 cat >>confdefs.h <<_ACEOF
10338 #define USE_UDIS86 $USE_UDIS86
10343 # Check whether --with-oprofile was given.
10344 if test "${with_oprofile+set}" = set; then
10345 withval=$with_oprofile;
10349 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10350 no) llvm_cv_oppath=
10353 *) llvm_cv_oppath="${withval}/lib/oprofile"
10354 CPPFLAGS="-I${withval}/include";;
10356 case $llvm_cv_os_type in
10358 if test -n "$llvm_cv_oppath" ; then
10359 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10360 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10361 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10362 if test "${ac_cv_search_bfd_init+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 ac_func_search_save_LIBS=$LIBS
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10373 /* Override any GCC internal prototype to avoid an error.
10374 Use char because int might match the return type of a GCC
10375 builtin and then its argument prototype would still apply. */
10383 return bfd_init ();
10388 for ac_lib in '' bfd; do
10389 if test -z "$ac_lib"; then
10390 ac_res="none required"
10393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10404 grep -v '^ *+' conftest.er1 >conftest.err
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10410 { (case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_try") 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; } &&
10419 { ac_try='test -s conftest$ac_exeext'
10420 { (case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_try") 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_cv_search_bfd_init=$ac_res
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10437 rm -f core conftest.err conftest.$ac_objext \
10439 if test "${ac_cv_search_bfd_init+set}" = set; then
10443 if test "${ac_cv_search_bfd_init+set}" = set; then
10446 ac_cv_search_bfd_init=no
10448 rm conftest.$ac_ext
10449 LIBS=$ac_func_search_save_LIBS
10451 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10452 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10453 ac_res=$ac_cv_search_bfd_init
10454 if test "$ac_res" != no; then
10455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10459 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10460 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10461 if test "${ac_cv_search_op_open_agent+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 ac_func_search_save_LIBS=$LIBS
10465 cat >conftest.$ac_ext <<_ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10472 /* Override any GCC internal prototype to avoid an error.
10473 Use char because int might match the return type of a GCC
10474 builtin and then its argument prototype would still apply. */
10478 char op_open_agent ();
10482 return op_open_agent ();
10487 for ac_lib in '' opagent; do
10488 if test -z "$ac_lib"; then
10489 ac_res="none required"
10492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10494 rm -f conftest.$ac_objext conftest$ac_exeext
10495 if { (ac_try="$ac_link"
10496 case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_link") 2>conftest.er1
10503 grep -v '^ *+' conftest.er1 >conftest.err
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10509 { (case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_try") 2>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try='test -s conftest$ac_exeext'
10519 { (case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_try") 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 ac_cv_search_op_open_agent=$ac_res
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10536 rm -f core conftest.err conftest.$ac_objext \
10538 if test "${ac_cv_search_op_open_agent+set}" = set; then
10542 if test "${ac_cv_search_op_open_agent+set}" = set; then
10545 ac_cv_search_op_open_agent=no
10547 rm conftest.$ac_ext
10548 LIBS=$ac_func_search_save_LIBS
10550 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10551 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10552 ac_res=$ac_cv_search_op_open_agent
10553 if test "$ac_res" != no; then
10554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10558 echo "Error! You need to have libopagent around."
10563 if test "${ac_cv_header_opagent_h+set}" = set; then
10564 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10565 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10566 if test "${ac_cv_header_opagent_h+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10570 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10572 # Is the header compilable?
10573 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10574 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 $ac_includes_default
10582 #include <opagent.h>
10584 rm -f conftest.$ac_objext
10585 if { (ac_try="$ac_compile"
10586 case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_try") 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_header_compiler=yes
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 ac_header_compiler=no
10626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10628 echo "${ECHO_T}$ac_header_compiler" >&6; }
10630 # Is the header present?
10631 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10632 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <opagent.h>
10641 if { (ac_try="$ac_cpp conftest.$ac_ext"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649 grep -v '^ *+' conftest.er1 >conftest.err
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } >/dev/null; then
10654 if test -s conftest.err; then
10655 ac_cpp_err=$ac_c_preproc_warn_flag
10656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10663 if test -z "$ac_cpp_err"; then
10664 ac_header_preproc=yes
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_header_preproc=no
10672 rm -f conftest.err conftest.$ac_ext
10673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674 echo "${ECHO_T}$ac_header_preproc" >&6; }
10676 # So? What about this header?
10677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10680 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10682 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10683 ac_header_preproc=yes
10686 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10687 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10689 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10691 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10693 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10695 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10697 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10699 ## ------------------------------------ ##
10700 ## Report this to http://llvm.org/bugs/ ##
10701 ## ------------------------------------ ##
10703 ) | sed "s/^/$as_me: WARNING: /" >&2
10706 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10707 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10708 if test "${ac_cv_header_opagent_h+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 ac_cv_header_opagent_h=$ac_header_preproc
10713 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10714 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10717 if test $ac_cv_header_opagent_h = yes; then
10721 echo "Error! You need to have opagent.h around."
10729 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10730 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10731 { (exit 1); exit 1; }; } ;;
10742 cat >>confdefs.h <<_ACEOF
10743 #define LLVM_USE_OPROFILE $USE_OPROFILE
10748 # Check whether --with-intel-jitevents was given.
10749 if test "${with_intel_jitevents+set}" = set; then
10750 withval=$with_intel_jitevents;
10752 yes) USE_INTEL_JITEVENTS=1
10754 no) USE_INTEL_JITEVENTS=0
10756 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10757 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10758 { (exit 1); exit 1; }; };;
10761 case $llvm_cv_os_type in
10762 Linux|Win32|Cygwin|MingW) ;;
10763 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10764 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10765 { (exit 1); exit 1; }; };;
10768 case "$llvm_cv_target_arch" in
10770 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10771 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10772 { (exit 1); exit 1; }; };;
10777 USE_INTEL_JITEVENTS=0
10783 cat >>confdefs.h <<_ACEOF
10784 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10788 for ac_prog in xml2-config
10790 # Extract the first word of "$ac_prog", so it can be a program name with args.
10791 set dummy $ac_prog; ac_word=$2
10792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10794 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 if test -n "$XML2CONFIG"; then
10798 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_prog_XML2CONFIG="$ac_prog"
10808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10818 if test -n "$XML2CONFIG"; then
10819 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10820 echo "${ECHO_T}$XML2CONFIG" >&6; }
10822 { echo "$as_me:$LINENO: result: no" >&5
10823 echo "${ECHO_T}no" >&6; }
10827 test -n "$XML2CONFIG" && break
10831 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10832 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10833 if test "x$XML2CONFIG" = "x"; then
10834 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10835 echo "${ECHO_T}xml2-config not found" >&6; }
10837 LIBXML2_INC=`$XML2CONFIG --cflags`
10838 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10839 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10840 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10841 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10842 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-lxml2 $LIBS"
10847 cat >conftest.$ac_ext <<_ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10860 char xmlReadFile ();
10864 return xmlReadFile ();
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (ac_try="$ac_link"
10871 case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_link") 2>conftest.er1
10878 grep -v '^ *+' conftest.er1 >conftest.err
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884 { (case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_try") 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest$ac_exeext'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_cv_lib_xml2_xmlReadFile=yes
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_cv_lib_xml2_xmlReadFile=no
10911 rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10915 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10916 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10917 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10919 cat >>confdefs.h <<\_ACEOF
10920 #define CLANG_HAVE_LIBXML 1
10923 LIBXML2_LIBS="-lxml2"
10936 ac_header_dirent=no
10937 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10938 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10939 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10940 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 cat >conftest.$ac_ext <<_ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #include <sys/types.h>
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10971 grep -v '^ *+' conftest.er1 >conftest.err
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_try") 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest.$ac_objext'
10987 { (case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_try") 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 eval "$as_ac_Header=yes"
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 eval "$as_ac_Header=no"
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 ac_res=`eval echo '${'$as_ac_Header'}'`
11007 { echo "$as_me:$LINENO: result: $ac_res" >&5
11008 echo "${ECHO_T}$ac_res" >&6; }
11009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11010 cat >>confdefs.h <<_ACEOF
11011 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11014 ac_header_dirent=$ac_hdr; break
11018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11019 if test $ac_header_dirent = dirent.h; then
11020 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11021 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11022 if test "${ac_cv_search_opendir+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 ac_func_search_save_LIBS=$LIBS
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11048 for ac_lib in '' dir; do
11049 if test -z "$ac_lib"; then
11050 ac_res="none required"
11053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (ac_try="$ac_link"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 ac_cv_search_opendir=$ac_res
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11097 rm -f core conftest.err conftest.$ac_objext \
11099 if test "${ac_cv_search_opendir+set}" = set; then
11103 if test "${ac_cv_search_opendir+set}" = set; then
11106 ac_cv_search_opendir=no
11108 rm conftest.$ac_ext
11109 LIBS=$ac_func_search_save_LIBS
11111 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11112 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11113 ac_res=$ac_cv_search_opendir
11114 if test "$ac_res" != no; then
11115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11120 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11122 if test "${ac_cv_search_opendir+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 ac_func_search_save_LIBS=$LIBS
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11148 for ac_lib in '' x; do
11149 if test -z "$ac_lib"; then
11150 ac_res="none required"
11153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11155 rm -f conftest.$ac_objext conftest$ac_exeext
11156 if { (ac_try="$ac_link"
11157 case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_link") 2>conftest.er1
11164 grep -v '^ *+' conftest.er1 >conftest.err
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest$ac_exeext'
11180 { (case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_search_opendir=$ac_res
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11197 rm -f core conftest.err conftest.$ac_objext \
11199 if test "${ac_cv_search_opendir+set}" = set; then
11203 if test "${ac_cv_search_opendir+set}" = set; then
11206 ac_cv_search_opendir=no
11208 rm conftest.$ac_ext
11209 LIBS=$ac_func_search_save_LIBS
11211 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11212 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11213 ac_res=$ac_cv_search_opendir
11214 if test "$ac_res" != no; then
11215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11221 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11222 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11223 if test "${ac_cv_header_mmap_anon+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 ac_cpp='$CPP $CPPFLAGS'
11228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11232 cat >conftest.$ac_ext <<_ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 #include <sys/mman.h>
11239 #include <unistd.h>
11244 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11249 rm -f conftest.$ac_objext
11250 if { (ac_try="$ac_compile"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_compile") 2>conftest.er1
11258 grep -v '^ *+' conftest.er1 >conftest.err
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11264 { (case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_try") 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_try") 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 ac_cv_header_mmap_anon=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_cv_header_mmap_anon=no
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 ac_cpp='$CPP $CPPFLAGS'
11294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11300 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11301 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11302 if test "$ac_cv_header_mmap_anon" = yes; then
11304 cat >>confdefs.h <<\_ACEOF
11305 #define HAVE_MMAP_ANONYMOUS 1
11310 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11311 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11312 if test "${ac_cv_header_stat_broken+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 cat >conftest.$ac_ext <<_ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 #include <sys/types.h>
11322 #include <sys/stat.h>
11324 #if defined S_ISBLK && defined S_IFDIR
11325 # if S_ISBLK (S_IFDIR)
11330 #if defined S_ISBLK && defined S_IFCHR
11331 # if S_ISBLK (S_IFCHR)
11336 #if defined S_ISLNK && defined S_IFREG
11337 # if S_ISLNK (S_IFREG)
11342 #if defined S_ISSOCK && defined S_IFREG
11343 # if S_ISSOCK (S_IFREG)
11349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11350 $EGREP "You lose" >/dev/null 2>&1; then
11351 ac_cv_header_stat_broken=yes
11353 ac_cv_header_stat_broken=no
11358 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11359 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11360 if test $ac_cv_header_stat_broken = yes; then
11362 cat >>confdefs.h <<\_ACEOF
11363 #define STAT_MACROS_BROKEN 1
11368 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11369 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11370 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 cat >conftest.$ac_ext <<_ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 #include <sys/types.h>
11380 #include <sys/wait.h>
11381 #ifndef WEXITSTATUS
11382 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11385 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11393 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11398 rm -f conftest.$ac_objext
11399 if { (ac_try="$ac_compile"
11400 case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_compile") 2>conftest.er1
11407 grep -v '^ *+' conftest.er1 >conftest.err
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11413 { (case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_try") 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_try") 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_cv_header_sys_wait_h=yes
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ac_cv_header_sys_wait_h=no
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11443 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11444 if test $ac_cv_header_sys_wait_h = yes; then
11446 cat >>confdefs.h <<\_ACEOF
11447 #define HAVE_SYS_WAIT_H 1
11452 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11453 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11454 if test "${ac_cv_header_time+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 cat >conftest.$ac_ext <<_ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 #include <sys/types.h>
11464 #include <sys/time.h>
11470 if ((struct tm *) 0)
11476 rm -f conftest.$ac_objext
11477 if { (ac_try="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11491 { (case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_try") 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_header_time=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 ac_cv_header_time=no
11518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11521 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11522 if test $ac_cv_header_time = yes; then
11524 cat >>confdefs.h <<\_ACEOF
11525 #define TIME_WITH_SYS_TIME 1
11532 ac_cpp='$CXXCPP $CPPFLAGS'
11533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11538 ac_cpp='$CXXCPP $CPPFLAGS'
11539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11542 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11543 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11544 if test -z "$CXXCPP"; then
11545 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 # Double quotes because CXXCPP needs to be expanded
11549 for CXXCPP in "$CXX -E" "/lib/cpp"
11551 ac_preproc_ok=false
11552 for ac_cxx_preproc_warn_flag in '' yes
11554 # Use a header file that comes with gcc, so configuring glibc
11555 # with a fresh cross-compiler works.
11556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11557 # <limits.h> exists even on freestanding compilers.
11558 # On the NeXT, cc -E runs the code through the compiler's parser,
11559 # not just through cpp. "Syntax error" is here to catch this case.
11560 cat >conftest.$ac_ext <<_ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11567 # include <limits.h>
11569 # include <assert.h>
11573 if { (ac_try="$ac_cpp conftest.$ac_ext"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11581 grep -v '^ *+' conftest.er1 >conftest.err
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } >/dev/null; then
11586 if test -s conftest.err; then
11587 ac_cpp_err=$ac_cxx_preproc_warn_flag
11588 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11595 if test -z "$ac_cpp_err"; then
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 # Broken: fails on valid input.
11605 rm -f conftest.err conftest.$ac_ext
11607 # OK, works on sane cases. Now check whether nonexistent headers
11608 # can be detected and how.
11609 cat >conftest.$ac_ext <<_ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 #include <ac_nonexistent.h>
11617 if { (ac_try="$ac_cpp conftest.$ac_ext"
11618 case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } >/dev/null; then
11630 if test -s conftest.err; then
11631 ac_cpp_err=$ac_cxx_preproc_warn_flag
11632 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11639 if test -z "$ac_cpp_err"; then
11640 # Broken: success on invalid input.
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 # Passes both tests.
11651 rm -f conftest.err conftest.$ac_ext
11654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11655 rm -f conftest.err conftest.$ac_ext
11656 if $ac_preproc_ok; then
11661 ac_cv_prog_CXXCPP=$CXXCPP
11664 CXXCPP=$ac_cv_prog_CXXCPP
11666 ac_cv_prog_CXXCPP=$CXXCPP
11668 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11669 echo "${ECHO_T}$CXXCPP" >&6; }
11670 ac_preproc_ok=false
11671 for ac_cxx_preproc_warn_flag in '' yes
11673 # Use a header file that comes with gcc, so configuring glibc
11674 # with a fresh cross-compiler works.
11675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676 # <limits.h> exists even on freestanding compilers.
11677 # On the NeXT, cc -E runs the code through the compiler's parser,
11678 # not just through cpp. "Syntax error" is here to catch this case.
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11686 # include <limits.h>
11688 # include <assert.h>
11692 if { (ac_try="$ac_cpp conftest.$ac_ext"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } >/dev/null; then
11705 if test -s conftest.err; then
11706 ac_cpp_err=$ac_cxx_preproc_warn_flag
11707 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11714 if test -z "$ac_cpp_err"; then
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 # Broken: fails on valid input.
11724 rm -f conftest.err conftest.$ac_ext
11726 # OK, works on sane cases. Now check whether nonexistent headers
11727 # can be detected and how.
11728 cat >conftest.$ac_ext <<_ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 #include <ac_nonexistent.h>
11736 if { (ac_try="$ac_cpp conftest.$ac_ext"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } >/dev/null; then
11749 if test -s conftest.err; then
11750 ac_cpp_err=$ac_cxx_preproc_warn_flag
11751 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11758 if test -z "$ac_cpp_err"; then
11759 # Broken: success on invalid input.
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 # Passes both tests.
11770 rm -f conftest.err conftest.$ac_ext
11773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11774 rm -f conftest.err conftest.$ac_ext
11775 if $ac_preproc_ok; then
11778 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11779 See \`config.log' for more details." >&5
11780 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11781 See \`config.log' for more details." >&2;}
11782 { (exit 1); exit 1; }; }
11786 ac_cpp='$CXXCPP $CPPFLAGS'
11787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11793 for ac_header in cxxabi.h
11795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 ac_res=`eval echo '${'$as_ac_Header'}'`
11803 { echo "$as_me:$LINENO: result: $ac_res" >&5
11804 echo "${ECHO_T}$ac_res" >&6; }
11806 # Is the header compilable?
11807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11809 cat >conftest.$ac_ext <<_ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 #include <$ac_header>
11818 rm -f conftest.$ac_objext
11819 if { (ac_try="$ac_compile"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_compile") 2>conftest.er1
11827 grep -v '^ *+' conftest.er1 >conftest.err
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11833 { (case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_try") 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_try") 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_header_compiler=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_header_compiler=no
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11862 echo "${ECHO_T}$ac_header_compiler" >&6; }
11864 # Is the header present?
11865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11867 cat >conftest.$ac_ext <<_ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 #include <$ac_header>
11875 if { (ac_try="$ac_cpp conftest.$ac_ext"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } >/dev/null; then
11888 if test -s conftest.err; then
11889 ac_cpp_err=$ac_cxx_preproc_warn_flag
11890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11897 if test -z "$ac_cpp_err"; then
11898 ac_header_preproc=yes
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11903 ac_header_preproc=no
11906 rm -f conftest.err conftest.$ac_ext
11907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11908 echo "${ECHO_T}$ac_header_preproc" >&6; }
11910 # So? What about this header?
11911 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11917 ac_header_preproc=yes
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11933 ## ------------------------------------ ##
11934 ## Report this to http://llvm.org/bugs/ ##
11935 ## ------------------------------------ ##
11937 ) | sed "s/^/$as_me: WARNING: /" >&2
11940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 eval "$as_ac_Header=\$ac_header_preproc"
11947 ac_res=`eval echo '${'$as_ac_Header'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949 echo "${ECHO_T}$ac_res" >&6; }
11952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11962 ac_cpp='$CPP $CPPFLAGS'
11963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 ac_res=`eval echo '${'$as_ac_Header'}'`
11982 { echo "$as_me:$LINENO: result: $ac_res" >&5
11983 echo "${ECHO_T}$ac_res" >&6; }
11985 # Is the header compilable?
11986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 $ac_includes_default
11995 #include <$ac_header>
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_header_compiler=yes
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12036 ac_header_compiler=no
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6; }
12043 # Is the header present?
12044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12046 cat >conftest.$ac_ext <<_ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <$ac_header>
12054 if { (ac_try="$ac_cpp conftest.$ac_ext"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
12069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12076 if test -z "$ac_cpp_err"; then
12077 ac_header_preproc=yes
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_header_preproc=no
12085 rm -f conftest.err conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12087 echo "${ECHO_T}$ac_header_preproc" >&6; }
12089 # So? What about this header?
12090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12096 ac_header_preproc=yes
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12112 ## ------------------------------------ ##
12113 ## Report this to http://llvm.org/bugs/ ##
12114 ## ------------------------------------ ##
12116 ) | sed "s/^/$as_me: WARNING: /" >&2
12119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 eval "$as_ac_Header=\$ac_header_preproc"
12126 ac_res=`eval echo '${'$as_ac_Header'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128 echo "${ECHO_T}$ac_res" >&6; }
12131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12132 cat >>confdefs.h <<_ACEOF
12133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12146 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 ac_res=`eval echo '${'$as_ac_Header'}'`
12156 { echo "$as_me:$LINENO: result: $ac_res" >&5
12157 echo "${ECHO_T}$ac_res" >&6; }
12159 # Is the header compilable?
12160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12162 cat >conftest.$ac_ext <<_ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h. */
12168 $ac_includes_default
12169 #include <$ac_header>
12171 rm -f conftest.$ac_objext
12172 if { (ac_try="$ac_compile"
12173 case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_compile") 2>conftest.er1
12180 grep -v '^ *+' conftest.er1 >conftest.err
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest.$ac_objext'
12196 { (case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_try") 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_header_compiler=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 ac_header_compiler=no
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12215 echo "${ECHO_T}$ac_header_compiler" >&6; }
12217 # Is the header present?
12218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12220 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 #include <$ac_header>
12228 if { (ac_try="$ac_cpp conftest.$ac_ext"
12229 case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12236 grep -v '^ *+' conftest.er1 >conftest.err
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } >/dev/null; then
12241 if test -s conftest.err; then
12242 ac_cpp_err=$ac_c_preproc_warn_flag
12243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12250 if test -z "$ac_cpp_err"; then
12251 ac_header_preproc=yes
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 ac_header_preproc=no
12259 rm -f conftest.err conftest.$ac_ext
12260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12261 echo "${ECHO_T}$ac_header_preproc" >&6; }
12263 # So? What about this header?
12264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12270 ac_header_preproc=yes
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12286 ## ------------------------------------ ##
12287 ## Report this to http://llvm.org/bugs/ ##
12288 ## ------------------------------------ ##
12290 ) | sed "s/^/$as_me: WARNING: /" >&2
12293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 eval "$as_ac_Header=\$ac_header_preproc"
12300 ac_res=`eval echo '${'$as_ac_Header'}'`
12301 { echo "$as_me:$LINENO: result: $ac_res" >&5
12302 echo "${ECHO_T}$ac_res" >&6; }
12305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12306 cat >>confdefs.h <<_ACEOF
12307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12315 for ac_header in utime.h
12317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 ac_res=`eval echo '${'$as_ac_Header'}'`
12325 { echo "$as_me:$LINENO: result: $ac_res" >&5
12326 echo "${ECHO_T}$ac_res" >&6; }
12328 # Is the header compilable?
12329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 $ac_includes_default
12338 #include <$ac_header>
12340 rm -f conftest.$ac_objext
12341 if { (ac_try="$ac_compile"
12342 case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_compile") 2>conftest.er1
12349 grep -v '^ *+' conftest.er1 >conftest.err
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12355 { (case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_try") 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_try") 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_header_compiler=no
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384 echo "${ECHO_T}$ac_header_compiler" >&6; }
12386 # Is the header present?
12387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 #include <$ac_header>
12397 if { (ac_try="$ac_cpp conftest.$ac_ext"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12405 grep -v '^ *+' conftest.er1 >conftest.err
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } >/dev/null; then
12410 if test -s conftest.err; then
12411 ac_cpp_err=$ac_c_preproc_warn_flag
12412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12419 if test -z "$ac_cpp_err"; then
12420 ac_header_preproc=yes
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 ac_header_preproc=no
12428 rm -f conftest.err conftest.$ac_ext
12429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12430 echo "${ECHO_T}$ac_header_preproc" >&6; }
12432 # So? What about this header?
12433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12439 ac_header_preproc=yes
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12455 ## ------------------------------------ ##
12456 ## Report this to http://llvm.org/bugs/ ##
12457 ## ------------------------------------ ##
12459 ) | sed "s/^/$as_me: WARNING: /" >&2
12462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 eval "$as_ac_Header=\$ac_header_preproc"
12469 ac_res=`eval echo '${'$as_ac_Header'}'`
12470 { echo "$as_me:$LINENO: result: $ac_res" >&5
12471 echo "${ECHO_T}$ac_res" >&6; }
12474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12475 cat >>confdefs.h <<_ACEOF
12476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12488 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 ac_res=`eval echo '${'$as_ac_Header'}'`
12498 { echo "$as_me:$LINENO: result: $ac_res" >&5
12499 echo "${ECHO_T}$ac_res" >&6; }
12501 # Is the header compilable?
12502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12504 cat >conftest.$ac_ext <<_ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 $ac_includes_default
12511 #include <$ac_header>
12513 rm -f conftest.$ac_objext
12514 if { (ac_try="$ac_compile"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_compile") 2>conftest.er1
12522 grep -v '^ *+' conftest.er1 >conftest.err
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest.$ac_objext'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_header_compiler=yes
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_header_compiler=no
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12557 echo "${ECHO_T}$ac_header_compiler" >&6; }
12559 # Is the header present?
12560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 #include <$ac_header>
12570 if { (ac_try="$ac_cpp conftest.$ac_ext"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } >/dev/null; then
12583 if test -s conftest.err; then
12584 ac_cpp_err=$ac_c_preproc_warn_flag
12585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12592 if test -z "$ac_cpp_err"; then
12593 ac_header_preproc=yes
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ac_header_preproc=no
12601 rm -f conftest.err conftest.$ac_ext
12602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12603 echo "${ECHO_T}$ac_header_preproc" >&6; }
12605 # So? What about this header?
12606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12612 ac_header_preproc=yes
12615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12628 ## ------------------------------------ ##
12629 ## Report this to http://llvm.org/bugs/ ##
12630 ## ------------------------------------ ##
12632 ) | sed "s/^/$as_me: WARNING: /" >&2
12635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 eval "$as_ac_Header=\$ac_header_preproc"
12642 ac_res=`eval echo '${'$as_ac_Header'}'`
12643 { echo "$as_me:$LINENO: result: $ac_res" >&5
12644 echo "${ECHO_T}$ac_res" >&6; }
12647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12648 cat >>confdefs.h <<_ACEOF
12649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12659 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 ac_res=`eval echo '${'$as_ac_Header'}'`
12669 { echo "$as_me:$LINENO: result: $ac_res" >&5
12670 echo "${ECHO_T}$ac_res" >&6; }
12672 # Is the header compilable?
12673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681 $ac_includes_default
12682 #include <$ac_header>
12684 rm -f conftest.$ac_objext
12685 if { (ac_try="$ac_compile"
12686 case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_compile") 2>conftest.er1
12693 grep -v '^ *+' conftest.er1 >conftest.err
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest.$ac_objext'
12709 { (case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_try") 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_header_compiler=yes
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12723 ac_header_compiler=no
12726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12728 echo "${ECHO_T}$ac_header_compiler" >&6; }
12730 # Is the header present?
12731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12733 cat >conftest.$ac_ext <<_ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739 #include <$ac_header>
12741 if { (ac_try="$ac_cpp conftest.$ac_ext"
12742 case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } >/dev/null; then
12754 if test -s conftest.err; then
12755 ac_cpp_err=$ac_c_preproc_warn_flag
12756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12763 if test -z "$ac_cpp_err"; then
12764 ac_header_preproc=yes
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ac_header_preproc=no
12772 rm -f conftest.err conftest.$ac_ext
12773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12774 echo "${ECHO_T}$ac_header_preproc" >&6; }
12776 # So? What about this header?
12777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12783 ac_header_preproc=yes
12786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12799 ## ------------------------------------ ##
12800 ## Report this to http://llvm.org/bugs/ ##
12801 ## ------------------------------------ ##
12803 ) | sed "s/^/$as_me: WARNING: /" >&2
12806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12811 eval "$as_ac_Header=\$ac_header_preproc"
12813 ac_res=`eval echo '${'$as_ac_Header'}'`
12814 { echo "$as_me:$LINENO: result: $ac_res" >&5
12815 echo "${ECHO_T}$ac_res" >&6; }
12818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12819 cat >>confdefs.h <<_ACEOF
12820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12828 for ac_header in valgrind/valgrind.h
12830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 ac_res=`eval echo '${'$as_ac_Header'}'`
12838 { echo "$as_me:$LINENO: result: $ac_res" >&5
12839 echo "${ECHO_T}$ac_res" >&6; }
12841 # Is the header compilable?
12842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12844 cat >conftest.$ac_ext <<_ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 $ac_includes_default
12851 #include <$ac_header>
12853 rm -f conftest.$ac_objext
12854 if { (ac_try="$ac_compile"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_compile") 2>conftest.er1
12862 grep -v '^ *+' conftest.er1 >conftest.err
12864 cat conftest.err >&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12868 { (case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_try") 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883 (eval "$ac_try") 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_header_compiler=yes
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ac_header_compiler=no
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12897 echo "${ECHO_T}$ac_header_compiler" >&6; }
12899 # Is the header present?
12900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12902 cat >conftest.$ac_ext <<_ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12908 #include <$ac_header>
12910 if { (ac_try="$ac_cpp conftest.$ac_ext"
12911 case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12918 grep -v '^ *+' conftest.er1 >conftest.err
12920 cat conftest.err >&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } >/dev/null; then
12923 if test -s conftest.err; then
12924 ac_cpp_err=$ac_c_preproc_warn_flag
12925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12932 if test -z "$ac_cpp_err"; then
12933 ac_header_preproc=yes
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ac_header_preproc=no
12941 rm -f conftest.err conftest.$ac_ext
12942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12943 echo "${ECHO_T}$ac_header_preproc" >&6; }
12945 # So? What about this header?
12946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12952 ac_header_preproc=yes
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12968 ## ------------------------------------ ##
12969 ## Report this to http://llvm.org/bugs/ ##
12970 ## ------------------------------------ ##
12972 ) | sed "s/^/$as_me: WARNING: /" >&2
12975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 eval "$as_ac_Header=\$ac_header_preproc"
12982 ac_res=`eval echo '${'$as_ac_Header'}'`
12983 { echo "$as_me:$LINENO: result: $ac_res" >&5
12984 echo "${ECHO_T}$ac_res" >&6; }
12987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12988 cat >>confdefs.h <<_ACEOF
12989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12997 for ac_header in fenv.h
12999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 ac_res=`eval echo '${'$as_ac_Header'}'`
13007 { echo "$as_me:$LINENO: result: $ac_res" >&5
13008 echo "${ECHO_T}$ac_res" >&6; }
13010 # Is the header compilable?
13011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13013 cat >conftest.$ac_ext <<_ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 $ac_includes_default
13020 #include <$ac_header>
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_compile") 2>conftest.er1
13031 grep -v '^ *+' conftest.er1 >conftest.err
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037 { (case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_try") 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest.$ac_objext'
13047 { (case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_try") 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_header_compiler=yes
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 ac_header_compiler=no
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13066 echo "${ECHO_T}$ac_header_compiler" >&6; }
13068 # Is the header present?
13069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 #include <$ac_header>
13079 if { (ac_try="$ac_cpp conftest.$ac_ext"
13080 case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13087 grep -v '^ *+' conftest.er1 >conftest.err
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } >/dev/null; then
13092 if test -s conftest.err; then
13093 ac_cpp_err=$ac_c_preproc_warn_flag
13094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13101 if test -z "$ac_cpp_err"; then
13102 ac_header_preproc=yes
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 ac_header_preproc=no
13110 rm -f conftest.err conftest.$ac_ext
13111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13112 echo "${ECHO_T}$ac_header_preproc" >&6; }
13114 # So? What about this header?
13115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13121 ac_header_preproc=yes
13124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13137 ## ------------------------------------ ##
13138 ## Report this to http://llvm.org/bugs/ ##
13139 ## ------------------------------------ ##
13141 ) | sed "s/^/$as_me: WARNING: /" >&2
13144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 eval "$as_ac_Header=\$ac_header_preproc"
13151 ac_res=`eval echo '${'$as_ac_Header'}'`
13152 { echo "$as_me:$LINENO: result: $ac_res" >&5
13153 echo "${ECHO_T}$ac_res" >&6; }
13156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13157 cat >>confdefs.h <<_ACEOF
13158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13165 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13166 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13167 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 cat >conftest.$ac_ext <<_ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13181 #ifndef FE_ALL_EXCEPT
13182 char *p = (char *) FE_ALL_EXCEPT;
13190 rm -f conftest.$ac_objext
13191 if { (ac_try="$ac_compile"
13192 case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_compile") 2>conftest.er1
13199 grep -v '^ *+' conftest.er1 >conftest.err
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13205 { (case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_try") 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest.$ac_objext'
13215 { (case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_try") 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_cv_have_decl_FE_ALL_EXCEPT=yes
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13229 ac_cv_have_decl_FE_ALL_EXCEPT=no
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13234 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13235 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13236 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13238 cat >>confdefs.h <<_ACEOF
13239 #define HAVE_DECL_FE_ALL_EXCEPT 1
13244 cat >>confdefs.h <<_ACEOF
13245 #define HAVE_DECL_FE_ALL_EXCEPT 0
13250 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13251 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13252 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 cat >conftest.$ac_ext <<_ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13267 char *p = (char *) FE_INEXACT;
13275 rm -f conftest.$ac_objext
13276 if { (ac_try="$ac_compile"
13277 case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_compile") 2>conftest.er1
13284 grep -v '^ *+' conftest.er1 >conftest.err
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest.$ac_objext'
13300 { (case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_try") 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 ac_cv_have_decl_FE_INEXACT=yes
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 ac_cv_have_decl_FE_INEXACT=no
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13320 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13321 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13323 cat >>confdefs.h <<_ACEOF
13324 #define HAVE_DECL_FE_INEXACT 1
13329 cat >>confdefs.h <<_ACEOF
13330 #define HAVE_DECL_FE_INEXACT 0
13337 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13339 for ac_header in pthread.h
13341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 ac_res=`eval echo '${'$as_ac_Header'}'`
13349 { echo "$as_me:$LINENO: result: $ac_res" >&5
13350 echo "${ECHO_T}$ac_res" >&6; }
13352 # Is the header compilable?
13353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13355 cat >conftest.$ac_ext <<_ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13361 $ac_includes_default
13362 #include <$ac_header>
13364 rm -f conftest.$ac_objext
13365 if { (ac_try="$ac_compile"
13366 case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_compile") 2>conftest.er1
13373 grep -v '^ *+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13379 { (case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_try") 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest.$ac_objext'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_header_compiler=yes
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 ac_header_compiler=no
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13408 echo "${ECHO_T}$ac_header_compiler" >&6; }
13410 # Is the header present?
13411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #include <$ac_header>
13421 if { (ac_try="$ac_cpp conftest.$ac_ext"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13429 grep -v '^ *+' conftest.er1 >conftest.err
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } >/dev/null; then
13434 if test -s conftest.err; then
13435 ac_cpp_err=$ac_c_preproc_warn_flag
13436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13443 if test -z "$ac_cpp_err"; then
13444 ac_header_preproc=yes
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13449 ac_header_preproc=no
13452 rm -f conftest.err conftest.$ac_ext
13453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13454 echo "${ECHO_T}$ac_header_preproc" >&6; }
13456 # So? What about this header?
13457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13463 ac_header_preproc=yes
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13479 ## ------------------------------------ ##
13480 ## Report this to http://llvm.org/bugs/ ##
13481 ## ------------------------------------ ##
13483 ) | sed "s/^/$as_me: WARNING: /" >&2
13486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 eval "$as_ac_Header=\$ac_header_preproc"
13493 ac_res=`eval echo '${'$as_ac_Header'}'`
13494 { echo "$as_me:$LINENO: result: $ac_res" >&5
13495 echo "${ECHO_T}$ac_res" >&6; }
13498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13499 cat >>confdefs.h <<_ACEOF
13500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13515 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13517 for ac_header in zlib.h
13519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 ac_res=`eval echo '${'$as_ac_Header'}'`
13527 { echo "$as_me:$LINENO: result: $ac_res" >&5
13528 echo "${ECHO_T}$ac_res" >&6; }
13530 # Is the header compilable?
13531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 $ac_includes_default
13540 #include <$ac_header>
13542 rm -f conftest.$ac_objext
13543 if { (ac_try="$ac_compile"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_compile") 2>conftest.er1
13551 grep -v '^ *+' conftest.er1 >conftest.err
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_header_compiler=yes
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 ac_header_compiler=no
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13586 echo "${ECHO_T}$ac_header_compiler" >&6; }
13588 # Is the header present?
13589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 #include <$ac_header>
13599 if { (ac_try="$ac_cpp conftest.$ac_ext"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13607 grep -v '^ *+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } >/dev/null; then
13612 if test -s conftest.err; then
13613 ac_cpp_err=$ac_c_preproc_warn_flag
13614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13621 if test -z "$ac_cpp_err"; then
13622 ac_header_preproc=yes
13624 echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13627 ac_header_preproc=no
13630 rm -f conftest.err conftest.$ac_ext
13631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13632 echo "${ECHO_T}$ac_header_preproc" >&6; }
13634 # So? What about this header?
13635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13641 ac_header_preproc=yes
13644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13657 ## ------------------------------------ ##
13658 ## Report this to http://llvm.org/bugs/ ##
13659 ## ------------------------------------ ##
13661 ) | sed "s/^/$as_me: WARNING: /" >&2
13664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 eval "$as_ac_Header=\$ac_header_preproc"
13671 ac_res=`eval echo '${'$as_ac_Header'}'`
13672 { echo "$as_me:$LINENO: result: $ac_res" >&5
13673 echo "${ECHO_T}$ac_res" >&6; }
13676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13677 cat >>confdefs.h <<_ACEOF
13678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13694 if test "$llvm_cv_enable_libffi" = "yes" ; then
13697 for ac_header in ffi.h ffi/ffi.h
13699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 ac_res=`eval echo '${'$as_ac_Header'}'`
13707 { echo "$as_me:$LINENO: result: $ac_res" >&5
13708 echo "${ECHO_T}$ac_res" >&6; }
13710 # Is the header compilable?
13711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13713 cat >conftest.$ac_ext <<_ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 $ac_includes_default
13720 #include <$ac_header>
13722 rm -f conftest.$ac_objext
13723 if { (ac_try="$ac_compile"
13724 case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_compile") 2>conftest.er1
13731 grep -v '^ *+' conftest.er1 >conftest.err
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 ac_header_compiler=yes
13758 echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13761 ac_header_compiler=no
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13766 echo "${ECHO_T}$ac_header_compiler" >&6; }
13768 # Is the header present?
13769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13771 cat >conftest.$ac_ext <<_ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 #include <$ac_header>
13779 if { (ac_try="$ac_cpp conftest.$ac_ext"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } >/dev/null; then
13792 if test -s conftest.err; then
13793 ac_cpp_err=$ac_c_preproc_warn_flag
13794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13801 if test -z "$ac_cpp_err"; then
13802 ac_header_preproc=yes
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_header_preproc=no
13810 rm -f conftest.err conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13812 echo "${ECHO_T}$ac_header_preproc" >&6; }
13814 # So? What about this header?
13815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13821 ac_header_preproc=yes
13824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13837 ## ------------------------------------ ##
13838 ## Report this to http://llvm.org/bugs/ ##
13839 ## ------------------------------------ ##
13841 ) | sed "s/^/$as_me: WARNING: /" >&2
13844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 eval "$as_ac_Header=\$ac_header_preproc"
13851 ac_res=`eval echo '${'$as_ac_Header'}'`
13852 { echo "$as_me:$LINENO: result: $ac_res" >&5
13853 echo "${ECHO_T}$ac_res" >&6; }
13856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13857 cat >>confdefs.h <<_ACEOF
13858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13868 for ac_header in CrashReporterClient.h
13870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 ac_res=`eval echo '${'$as_ac_Header'}'`
13878 { echo "$as_me:$LINENO: result: $ac_res" >&5
13879 echo "${ECHO_T}$ac_res" >&6; }
13881 # Is the header compilable?
13882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 $ac_includes_default
13891 #include <$ac_header>
13893 rm -f conftest.$ac_objext
13894 if { (ac_try="$ac_compile"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_compile") 2>conftest.er1
13902 grep -v '^ *+' conftest.er1 >conftest.err
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
13907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13908 { (case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; } &&
13917 { ac_try='test -s conftest.$ac_objext'
13918 { (case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_try") 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_header_compiler=yes
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ac_header_compiler=no
13935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13937 echo "${ECHO_T}$ac_header_compiler" >&6; }
13939 # Is the header present?
13940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 #include <$ac_header>
13950 if { (ac_try="$ac_cpp conftest.$ac_ext"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } >/dev/null; then
13963 if test -s conftest.err; then
13964 ac_cpp_err=$ac_c_preproc_warn_flag
13965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13972 if test -z "$ac_cpp_err"; then
13973 ac_header_preproc=yes
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13978 ac_header_preproc=no
13981 rm -f conftest.err conftest.$ac_ext
13982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13983 echo "${ECHO_T}$ac_header_preproc" >&6; }
13985 # So? What about this header?
13986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13992 ac_header_preproc=yes
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14008 ## ------------------------------------ ##
14009 ## Report this to http://llvm.org/bugs/ ##
14010 ## ------------------------------------ ##
14012 ) | sed "s/^/$as_me: WARNING: /" >&2
14015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 eval "$as_ac_Header=\$ac_header_preproc"
14022 ac_res=`eval echo '${'$as_ac_Header'}'`
14023 { echo "$as_me:$LINENO: result: $ac_res" >&5
14024 echo "${ECHO_T}$ac_res" >&6; }
14027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14028 cat >>confdefs.h <<_ACEOF
14029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14037 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14038 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14039 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14047 extern const char *__crashreporter_info__;
14049 __crashreporter_info__ = "test";
14055 rm -f conftest.$ac_objext conftest$ac_exeext
14056 if { (ac_try="$ac_link"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_link") 2>conftest.er1
14064 grep -v '^ *+' conftest.er1 >conftest.err
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14070 { (case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_try") 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; } &&
14079 { ac_try='test -s conftest$ac_exeext'
14080 { (case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_try") 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14090 { echo "$as_me:$LINENO: result: yes" >&5
14091 echo "${ECHO_T}yes" >&6; }
14093 cat >>confdefs.h <<\_ACEOF
14094 #define HAVE_CRASHREPORTER_INFO 1
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14103 { echo "$as_me:$LINENO: result: no" >&5
14104 echo "${ECHO_T}no" >&6; }
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_CRASHREPORTER_INFO 0
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14118 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14119 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14120 if test "${ac_cv_huge_val_sanity+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 ac_cpp='$CXXCPP $CPPFLAGS'
14126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14130 ac_save_CXXFLAGS=$CXXFLAGS
14131 CXXFLAGS="$CXXFLAGS -pedantic"
14132 if test "$cross_compiling" = yes; then
14133 ac_cv_huge_val_sanity=yes
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14145 double x = HUGE_VAL; return x != x;
14150 rm -f conftest$ac_exeext
14151 if { (ac_try="$ac_link"
14152 case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_link") 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_huge_val_sanity=yes
14172 echo "$as_me: program exited with status $ac_status" >&5
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14176 ( exit $ac_status )
14177 ac_cv_huge_val_sanity=no
14179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14183 CXXFLAGS=$ac_save_CXXFLAGS
14185 ac_cpp='$CPP $CPPFLAGS'
14186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14192 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14193 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14194 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14197 { echo "$as_me:$LINENO: checking for pid_t" >&5
14198 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14199 if test "${ac_cv_type_pid_t+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 cat >conftest.$ac_ext <<_ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 $ac_includes_default
14209 typedef pid_t ac__type_new_;
14213 if ((ac__type_new_ *) 0)
14215 if (sizeof (ac__type_new_))
14221 rm -f conftest.$ac_objext
14222 if { (ac_try="$ac_compile"
14223 case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_compile") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1 >conftest.err
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
14235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_try") 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_type_pid_t=yes
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_cv_type_pid_t=no
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14267 if test $ac_cv_type_pid_t = yes; then
14271 cat >>confdefs.h <<_ACEOF
14277 { echo "$as_me:$LINENO: checking for size_t" >&5
14278 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14279 if test "${ac_cv_type_size_t+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 cat >conftest.$ac_ext <<_ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14288 $ac_includes_default
14289 typedef size_t ac__type_new_;
14293 if ((ac__type_new_ *) 0)
14295 if (sizeof (ac__type_new_))
14301 rm -f conftest.$ac_objext
14302 if { (ac_try="$ac_compile"
14303 case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_compile") 2>conftest.er1
14310 grep -v '^ *+' conftest.er1 >conftest.err
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest.$ac_objext'
14326 { (case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_try") 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_type_size_t=yes
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ac_cv_type_size_t=no
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14346 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14347 if test $ac_cv_type_size_t = yes; then
14351 cat >>confdefs.h <<_ACEOF
14352 #define size_t unsigned int
14358 cat >>confdefs.h <<_ACEOF
14359 #define RETSIGTYPE void
14362 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14363 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14364 if test "${ac_cv_struct_tm+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 cat >conftest.$ac_ext <<_ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <sys/types.h>
14379 struct tm *tp; tp->tm_sec;
14384 rm -f conftest.$ac_objext
14385 if { (ac_try="$ac_compile"
14386 case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391 (eval "$ac_compile") 2>conftest.er1
14393 grep -v '^ *+' conftest.er1 >conftest.err
14395 cat conftest.err >&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
14398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399 { (case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_try") 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest.$ac_objext'
14409 { (case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_try") 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_struct_tm=time.h
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_cv_struct_tm=sys/time.h
14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14428 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14429 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14430 if test $ac_cv_struct_tm = sys/time.h; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define TM_IN_SYS_TIME 1
14438 { echo "$as_me:$LINENO: checking for int64_t" >&5
14439 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14440 if test "${ac_cv_type_int64_t+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14443 cat >conftest.$ac_ext <<_ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 $ac_includes_default
14450 typedef int64_t ac__type_new_;
14454 if ((ac__type_new_ *) 0)
14456 if (sizeof (ac__type_new_))
14462 rm -f conftest.$ac_objext
14463 if { (ac_try="$ac_compile"
14464 case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_compile") 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14477 { (case "(($ac_try" in
14478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479 *) ac_try_echo=$ac_try;;
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482 (eval "$ac_try") 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; } &&
14486 { ac_try='test -s conftest.$ac_objext'
14487 { (case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_try") 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_cv_type_int64_t=yes
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 ac_cv_type_int64_t=no
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14507 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14508 if test $ac_cv_type_int64_t = yes; then
14510 cat >>confdefs.h <<_ACEOF
14511 #define HAVE_INT64_T 1
14516 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14517 echo "$as_me: error: Type int64_t required but not found" >&2;}
14518 { (exit 1); exit 1; }; }
14521 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14522 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14523 if test "${ac_cv_type_uint64_t+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 cat >conftest.$ac_ext <<_ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 $ac_includes_default
14533 typedef uint64_t ac__type_new_;
14537 if ((ac__type_new_ *) 0)
14539 if (sizeof (ac__type_new_))
14545 rm -f conftest.$ac_objext
14546 if { (ac_try="$ac_compile"
14547 case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_compile") 2>conftest.er1
14554 grep -v '^ *+' conftest.er1 >conftest.err
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14560 { (case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_try") 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_cv_type_uint64_t=yes
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ac_cv_type_uint64_t=no
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14590 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14591 if test $ac_cv_type_uint64_t = yes; then
14593 cat >>confdefs.h <<_ACEOF
14594 #define HAVE_UINT64_T 1
14599 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14600 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14601 if test "${ac_cv_type_u_int64_t+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 cat >conftest.$ac_ext <<_ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 $ac_includes_default
14611 typedef u_int64_t ac__type_new_;
14615 if ((ac__type_new_ *) 0)
14617 if (sizeof (ac__type_new_))
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14632 grep -v '^ *+' conftest.er1 >conftest.err
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_type_u_int64_t=yes
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_cv_type_u_int64_t=no
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14668 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14669 if test $ac_cv_type_u_int64_t = yes; then
14671 cat >>confdefs.h <<_ACEOF
14672 #define HAVE_U_INT64_T 1
14677 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14678 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14679 { (exit 1); exit 1; }; }
14693 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 cat >conftest.$ac_ext <<_ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14709 #define $ac_func innocuous_$ac_func
14711 /* System header to define __stub macros and hopefully few prototypes,
14712 which can conflict with char $ac_func (); below.
14713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714 <limits.h> exists even on freestanding compilers. */
14717 # include <limits.h>
14719 # include <assert.h>
14724 /* Override any GCC internal prototype to avoid an error.
14725 Use char because int might match the return type of a GCC
14726 builtin and then its argument prototype would still apply. */
14731 /* The GNU C library defines this for functions which it implements
14732 to always fail with ENOSYS. Some functions are actually named
14733 something starting with __ and the normal name is an alias. */
14734 #if defined __stub_$ac_func || defined __stub___$ac_func
14741 return $ac_func ();
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (ac_try="$ac_link"
14748 case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_link") 2>conftest.er1
14755 grep -v '^ *+' conftest.er1 >conftest.err
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14761 { (case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_try") 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; } &&
14770 { ac_try='test -s conftest$ac_exeext'
14771 { (case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_try") 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 eval "$as_ac_var=yes"
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 eval "$as_ac_var=no"
14788 rm -f core conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14791 ac_res=`eval echo '${'$as_ac_var'}'`
14792 { echo "$as_me:$LINENO: result: $ac_res" >&5
14793 echo "${ECHO_T}$ac_res" >&6; }
14794 if test `eval echo '${'$as_ac_var'}'` = yes; then
14795 cat >>confdefs.h <<_ACEOF
14796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14806 for ac_func in powf fmodf strtof round
14808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 cat >conftest.$ac_ext <<_ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14822 #define $ac_func innocuous_$ac_func
14824 /* System header to define __stub macros and hopefully few prototypes,
14825 which can conflict with char $ac_func (); below.
14826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14827 <limits.h> exists even on freestanding compilers. */
14830 # include <limits.h>
14832 # include <assert.h>
14837 /* Override any GCC internal prototype to avoid an error.
14838 Use char because int might match the return type of a GCC
14839 builtin and then its argument prototype would still apply. */
14844 /* The GNU C library defines this for functions which it implements
14845 to always fail with ENOSYS. Some functions are actually named
14846 something starting with __ and the normal name is an alias. */
14847 #if defined __stub_$ac_func || defined __stub___$ac_func
14854 return $ac_func ();
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (ac_try="$ac_link"
14861 case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_link") 2>conftest.er1
14868 grep -v '^ *+' conftest.er1 >conftest.err
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14874 { (case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_try") 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest$ac_exeext'
14884 { (case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_try") 2>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 eval "$as_ac_var=yes"
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 eval "$as_ac_var=no"
14901 rm -f core conftest.err conftest.$ac_objext \
14902 conftest$ac_exeext conftest.$ac_ext
14904 ac_res=`eval echo '${'$as_ac_var'}'`
14905 { echo "$as_me:$LINENO: result: $ac_res" >&5
14906 echo "${ECHO_T}$ac_res" >&6; }
14907 if test `eval echo '${'$as_ac_var'}'` = yes; then
14908 cat >>confdefs.h <<_ACEOF
14909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14920 for ac_func in log log2 log10 exp exp2
14922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14936 #define $ac_func innocuous_$ac_func
14938 /* System header to define __stub macros and hopefully few prototypes,
14939 which can conflict with char $ac_func (); below.
14940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14941 <limits.h> exists even on freestanding compilers. */
14944 # include <limits.h>
14946 # include <assert.h>
14951 /* Override any GCC internal prototype to avoid an error.
14952 Use char because int might match the return type of a GCC
14953 builtin and then its argument prototype would still apply. */
14958 /* The GNU C library defines this for functions which it implements
14959 to always fail with ENOSYS. Some functions are actually named
14960 something starting with __ and the normal name is an alias. */
14961 #if defined __stub_$ac_func || defined __stub___$ac_func
14968 return $ac_func ();
14973 rm -f conftest.$ac_objext conftest$ac_exeext
14974 if { (ac_try="$ac_link"
14975 case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_link") 2>conftest.er1
14982 grep -v '^ *+' conftest.er1 >conftest.err
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14988 { (case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_try") 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; } &&
14997 { ac_try='test -s conftest$ac_exeext'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 eval "$as_ac_var=yes"
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15012 eval "$as_ac_var=no"
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15018 ac_res=`eval echo '${'$as_ac_var'}'`
15019 { echo "$as_me:$LINENO: result: $ac_res" >&5
15020 echo "${ECHO_T}$ac_res" >&6; }
15021 if test `eval echo '${'$as_ac_var'}'` = yes; then
15022 cat >>confdefs.h <<_ACEOF
15023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15034 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15050 #define $ac_func innocuous_$ac_func
15052 /* System header to define __stub macros and hopefully few prototypes,
15053 which can conflict with char $ac_func (); below.
15054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15055 <limits.h> exists even on freestanding compilers. */
15058 # include <limits.h>
15060 # include <assert.h>
15065 /* Override any GCC internal prototype to avoid an error.
15066 Use char because int might match the return type of a GCC
15067 builtin and then its argument prototype would still apply. */
15072 /* The GNU C library defines this for functions which it implements
15073 to always fail with ENOSYS. Some functions are actually named
15074 something starting with __ and the normal name is an alias. */
15075 #if defined __stub_$ac_func || defined __stub___$ac_func
15082 return $ac_func ();
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (ac_try="$ac_link"
15089 case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_link") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; } &&
15111 { ac_try='test -s conftest$ac_exeext'
15112 { (case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_try") 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 eval "$as_ac_var=yes"
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 eval "$as_ac_var=no"
15129 rm -f core conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
15132 ac_res=`eval echo '${'$as_ac_var'}'`
15133 { echo "$as_me:$LINENO: result: $ac_res" >&5
15134 echo "${ECHO_T}$ac_res" >&6; }
15135 if test `eval echo '${'$as_ac_var'}'` = yes; then
15136 cat >>confdefs.h <<_ACEOF
15137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15146 for ac_func in isatty mkdtemp mkstemp
15148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 cat >conftest.$ac_ext <<_ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15162 #define $ac_func innocuous_$ac_func
15164 /* System header to define __stub macros and hopefully few prototypes,
15165 which can conflict with char $ac_func (); below.
15166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15167 <limits.h> exists even on freestanding compilers. */
15170 # include <limits.h>
15172 # include <assert.h>
15177 /* Override any GCC internal prototype to avoid an error.
15178 Use char because int might match the return type of a GCC
15179 builtin and then its argument prototype would still apply. */
15184 /* The GNU C library defines this for functions which it implements
15185 to always fail with ENOSYS. Some functions are actually named
15186 something starting with __ and the normal name is an alias. */
15187 #if defined __stub_$ac_func || defined __stub___$ac_func
15194 return $ac_func ();
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15208 grep -v '^ *+' conftest.er1 >conftest.err
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15214 { (case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_try") 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; } &&
15223 { ac_try='test -s conftest$ac_exeext'
15224 { (case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_try") 2>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 eval "$as_ac_var=yes"
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 eval "$as_ac_var=no"
15241 rm -f core conftest.err conftest.$ac_objext \
15242 conftest$ac_exeext conftest.$ac_ext
15244 ac_res=`eval echo '${'$as_ac_var'}'`
15245 { echo "$as_me:$LINENO: result: $ac_res" >&5
15246 echo "${ECHO_T}$ac_res" >&6; }
15247 if test `eval echo '${'$as_ac_var'}'` = yes; then
15248 cat >>confdefs.h <<_ACEOF
15249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15261 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 cat >conftest.$ac_ext <<_ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15277 #define $ac_func innocuous_$ac_func
15279 /* System header to define __stub macros and hopefully few prototypes,
15280 which can conflict with char $ac_func (); below.
15281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15282 <limits.h> exists even on freestanding compilers. */
15285 # include <limits.h>
15287 # include <assert.h>
15292 /* Override any GCC internal prototype to avoid an error.
15293 Use char because int might match the return type of a GCC
15294 builtin and then its argument prototype would still apply. */
15299 /* The GNU C library defines this for functions which it implements
15300 to always fail with ENOSYS. Some functions are actually named
15301 something starting with __ and the normal name is an alias. */
15302 #if defined __stub_$ac_func || defined __stub___$ac_func
15309 return $ac_func ();
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (ac_try="$ac_link"
15316 case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321 (eval "$ac_link") 2>conftest.er1
15323 grep -v '^ *+' conftest.er1 >conftest.err
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15329 { (case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_try") 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 eval "$as_ac_var=yes"
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 eval "$as_ac_var=no"
15356 rm -f core conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext conftest.$ac_ext
15359 ac_res=`eval echo '${'$as_ac_var'}'`
15360 { echo "$as_me:$LINENO: result: $ac_res" >&5
15361 echo "${ECHO_T}$ac_res" >&6; }
15362 if test `eval echo '${'$as_ac_var'}'` = yes; then
15363 cat >>confdefs.h <<_ACEOF
15364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15373 for ac_func in strerror strerror_r setenv
15375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15389 #define $ac_func innocuous_$ac_func
15391 /* System header to define __stub macros and hopefully few prototypes,
15392 which can conflict with char $ac_func (); below.
15393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15394 <limits.h> exists even on freestanding compilers. */
15397 # include <limits.h>
15399 # include <assert.h>
15404 /* Override any GCC internal prototype to avoid an error.
15405 Use char because int might match the return type of a GCC
15406 builtin and then its argument prototype would still apply. */
15411 /* The GNU C library defines this for functions which it implements
15412 to always fail with ENOSYS. Some functions are actually named
15413 something starting with __ and the normal name is an alias. */
15414 #if defined __stub_$ac_func || defined __stub___$ac_func
15421 return $ac_func ();
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_link") 2>conftest.er1
15435 grep -v '^ *+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest$ac_exeext'
15451 { (case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_try") 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 eval "$as_ac_var=yes"
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 eval "$as_ac_var=no"
15468 rm -f core conftest.err conftest.$ac_objext \
15469 conftest$ac_exeext conftest.$ac_ext
15471 ac_res=`eval echo '${'$as_ac_var'}'`
15472 { echo "$as_me:$LINENO: result: $ac_res" >&5
15473 echo "${ECHO_T}$ac_res" >&6; }
15474 if test `eval echo '${'$as_ac_var'}'` = yes; then
15475 cat >>confdefs.h <<_ACEOF
15476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15486 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15502 #define $ac_func innocuous_$ac_func
15504 /* System header to define __stub macros and hopefully few prototypes,
15505 which can conflict with char $ac_func (); below.
15506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15507 <limits.h> exists even on freestanding compilers. */
15510 # include <limits.h>
15512 # include <assert.h>
15517 /* Override any GCC internal prototype to avoid an error.
15518 Use char because int might match the return type of a GCC
15519 builtin and then its argument prototype would still apply. */
15524 /* The GNU C library defines this for functions which it implements
15525 to always fail with ENOSYS. Some functions are actually named
15526 something starting with __ and the normal name is an alias. */
15527 #if defined __stub_$ac_func || defined __stub___$ac_func
15534 return $ac_func ();
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (ac_try="$ac_link"
15541 case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_link") 2>conftest.er1
15548 grep -v '^ *+' conftest.er1 >conftest.err
15550 cat conftest.err >&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15554 { (case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_try") 2>&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; } &&
15563 { ac_try='test -s conftest$ac_exeext'
15564 { (case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_try") 2>&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 eval "$as_ac_var=yes"
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15578 eval "$as_ac_var=no"
15581 rm -f core conftest.err conftest.$ac_objext \
15582 conftest$ac_exeext conftest.$ac_ext
15584 ac_res=`eval echo '${'$as_ac_var'}'`
15585 { echo "$as_me:$LINENO: result: $ac_res" >&5
15586 echo "${ECHO_T}$ac_res" >&6; }
15587 if test `eval echo '${'$as_ac_var'}'` = yes; then
15588 cat >>confdefs.h <<_ACEOF
15589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15600 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 cat >conftest.$ac_ext <<_ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h. */
15614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15616 #define $ac_func innocuous_$ac_func
15618 /* System header to define __stub macros and hopefully few prototypes,
15619 which can conflict with char $ac_func (); below.
15620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15621 <limits.h> exists even on freestanding compilers. */
15624 # include <limits.h>
15626 # include <assert.h>
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15638 /* The GNU C library defines this for functions which it implements
15639 to always fail with ENOSYS. Some functions are actually named
15640 something starting with __ and the normal name is an alias. */
15641 #if defined __stub_$ac_func || defined __stub___$ac_func
15648 return $ac_func ();
15653 rm -f conftest.$ac_objext conftest$ac_exeext
15654 if { (ac_try="$ac_link"
15655 case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_link") 2>conftest.er1
15662 grep -v '^ *+' conftest.er1 >conftest.err
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } &&
15667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15668 { (case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_try") 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; } &&
15677 { ac_try='test -s conftest$ac_exeext'
15678 { (case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_try") 2>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; }; then
15687 eval "$as_ac_var=yes"
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 eval "$as_ac_var=no"
15695 rm -f core conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
15698 ac_res=`eval echo '${'$as_ac_var'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15701 if test `eval echo '${'$as_ac_var'}'` = yes; then
15702 cat >>confdefs.h <<_ACEOF
15703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15711 for ac_func in futimes futimens
15713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 cat >conftest.$ac_ext <<_ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15727 #define $ac_func innocuous_$ac_func
15729 /* System header to define __stub macros and hopefully few prototypes,
15730 which can conflict with char $ac_func (); below.
15731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15732 <limits.h> exists even on freestanding compilers. */
15735 # include <limits.h>
15737 # include <assert.h>
15742 /* Override any GCC internal prototype to avoid an error.
15743 Use char because int might match the return type of a GCC
15744 builtin and then its argument prototype would still apply. */
15749 /* The GNU C library defines this for functions which it implements
15750 to always fail with ENOSYS. Some functions are actually named
15751 something starting with __ and the normal name is an alias. */
15752 #if defined __stub_$ac_func || defined __stub___$ac_func
15759 return $ac_func ();
15764 rm -f conftest.$ac_objext conftest$ac_exeext
15765 if { (ac_try="$ac_link"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_link") 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest$ac_exeext'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 eval "$as_ac_var=yes"
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 eval "$as_ac_var=no"
15806 rm -f core conftest.err conftest.$ac_objext \
15807 conftest$ac_exeext conftest.$ac_ext
15809 ac_res=`eval echo '${'$as_ac_var'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15812 if test `eval echo '${'$as_ac_var'}'` = yes; then
15813 cat >>confdefs.h <<_ACEOF
15814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15820 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15821 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15822 if test "${llvm_cv_c_printf_a+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 ac_cpp='$CPP $CPPFLAGS'
15827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15831 if test "$cross_compiling" = yes; then
15832 llvmac_cv_c_printf_a=no
15834 cat >conftest.$ac_ext <<_ACEOF
15838 cat confdefs.h >>conftest.$ac_ext
15839 cat >>conftest.$ac_ext <<_ACEOF
15840 /* end confdefs.h. */
15843 #include <stdlib.h>
15849 volatile double A, B;
15853 sprintf(Buffer, "%a", A);
15857 if (A != 0x1.999999999999ap-4)
15864 rm -f conftest$ac_exeext
15865 if { (ac_try="$ac_link"
15866 case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_link") 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15875 { (case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_try") 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 llvm_cv_c_printf_a=yes
15886 echo "$as_me: program exited with status $ac_status" >&5
15887 echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15890 ( exit $ac_status )
15891 llvmac_cv_c_printf_a=no
15893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15898 ac_cpp='$CPP $CPPFLAGS'
15899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15904 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15905 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15906 if test "$llvm_cv_c_printf_a" = "yes"; then
15908 cat >>confdefs.h <<\_ACEOF
15909 #define HAVE_PRINTF_A 1
15916 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15917 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15918 if test "${ac_cv_func_rand48+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 ac_cpp='$CXXCPP $CPPFLAGS'
15924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15928 cat >conftest.$ac_ext <<_ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <stdlib.h>
15938 srand48(0);lrand48();drand48();
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } &&
15957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15958 { (case "(($ac_try" in
15959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963 (eval "$ac_try") 2>&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; } &&
15967 { ac_try='test -s conftest.$ac_objext'
15968 { (case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_try") 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15977 ac_cv_func_rand48=yes
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 ac_cv_func_rand48=no
15985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987 ac_cpp='$CPP $CPPFLAGS'
15988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15995 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15997 if test "$ac_cv_func_rand48" = "yes" ; then
15999 cat >>confdefs.h <<\_ACEOF
16000 #define HAVE_RAND48 1
16006 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
16007 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
16008 if test "${ac_cv_have_decl_arc4random+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 $ac_includes_default
16022 char *p = (char *) arc4random;
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_compile") 2>conftest.er1
16039 grep -v '^ *+' conftest.er1 >conftest.err
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } &&
16044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16045 { (case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_try") 2>&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; } &&
16054 { ac_try='test -s conftest.$ac_objext'
16055 { (case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_try") 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; }; then
16064 ac_cv_have_decl_arc4random=yes
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16069 ac_cv_have_decl_arc4random=no
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16075 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16076 if test $ac_cv_have_decl_arc4random = yes; then
16078 cat >>confdefs.h <<_ACEOF
16079 #define HAVE_DECL_ARC4RANDOM 1
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_DECL_ARC4RANDOM 0
16093 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16094 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16095 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 $ac_includes_default
16109 char *p = (char *) strerror_s;
16117 rm -f conftest.$ac_objext
16118 if { (ac_try="$ac_compile"
16119 case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_compile") 2>conftest.er1
16126 grep -v '^ *+' conftest.er1 >conftest.err
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest.$ac_objext'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_try") 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_have_decl_strerror_s=yes
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 ac_cv_have_decl_strerror_s=no
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16162 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16163 if test $ac_cv_have_decl_strerror_s = yes; then
16165 cat >>confdefs.h <<_ACEOF
16166 #define HAVE_DECL_STRERROR_S 1
16171 cat >>confdefs.h <<_ACEOF
16172 #define HAVE_DECL_STRERROR_S 0
16180 if test "$llvm_cv_os_type" = "MingW" ; then
16181 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16182 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16183 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 ac_check_lib_save_LIBS=$LIBS
16188 cat >conftest.$ac_ext <<_ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16195 /* Override any GCC internal prototype to avoid an error.
16196 Use char because int might match the return type of a GCC
16197 builtin and then its argument prototype would still apply. */
16210 rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (ac_try="$ac_link"
16212 case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217 (eval "$ac_link") 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } &&
16224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16225 { (case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_try") 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; } &&
16234 { ac_try='test -s conftest$ac_exeext'
16235 { (case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_try") 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_cv_lib_gcc__alloca=yes
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 ac_cv_lib_gcc__alloca=no
16252 rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 LIBS=$ac_check_lib_save_LIBS
16256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16257 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16258 if test $ac_cv_lib_gcc__alloca = yes; then
16260 cat >>confdefs.h <<\_ACEOF
16261 #define HAVE__ALLOCA 1
16266 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16267 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16268 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 ac_check_lib_save_LIBS=$LIBS
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16280 /* Override any GCC internal prototype to avoid an error.
16281 Use char because int might match the return type of a GCC
16282 builtin and then its argument prototype would still apply. */
16290 return __alloca ();
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (ac_try="$ac_link"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_link") 2>conftest.er1
16304 grep -v '^ *+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest$ac_exeext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_lib_gcc___alloca=yes
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_cv_lib_gcc___alloca=no
16337 rm -f core conftest.err conftest.$ac_objext \
16338 conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16341 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16342 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16343 if test $ac_cv_lib_gcc___alloca = yes; then
16345 cat >>confdefs.h <<\_ACEOF
16346 #define HAVE___ALLOCA 1
16351 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16352 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16353 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 ac_check_lib_save_LIBS=$LIBS
16358 cat >conftest.$ac_ext <<_ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16365 /* Override any GCC internal prototype to avoid an error.
16366 Use char because int might match the return type of a GCC
16367 builtin and then its argument prototype would still apply. */
16375 return __chkstk ();
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (ac_try="$ac_link"
16382 case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_link") 2>conftest.er1
16389 grep -v '^ *+' conftest.er1 >conftest.err
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } &&
16394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16395 { (case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_try") 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest$ac_exeext'
16405 { (case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_try") 2>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_cv_lib_gcc___chkstk=yes
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 ac_cv_lib_gcc___chkstk=no
16422 rm -f core conftest.err conftest.$ac_objext \
16423 conftest$ac_exeext conftest.$ac_ext
16424 LIBS=$ac_check_lib_save_LIBS
16426 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16427 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16428 if test $ac_cv_lib_gcc___chkstk = yes; then
16430 cat >>confdefs.h <<\_ACEOF
16431 #define HAVE___CHKSTK 1
16436 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16437 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16438 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 ac_check_lib_save_LIBS=$LIBS
16443 cat >conftest.$ac_ext <<_ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16450 /* Override any GCC internal prototype to avoid an error.
16451 Use char because int might match the return type of a GCC
16452 builtin and then its argument prototype would still apply. */
16460 return ___chkstk ();
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (ac_try="$ac_link"
16467 case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472 (eval "$ac_link") 2>conftest.er1
16474 grep -v '^ *+' conftest.er1 >conftest.err
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16480 { (case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_try") 2>&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; } &&
16489 { ac_try='test -s conftest$ac_exeext'
16490 { (case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_try") 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_cv_lib_gcc____chkstk=yes
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ac_cv_lib_gcc____chkstk=no
16507 rm -f core conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16509 LIBS=$ac_check_lib_save_LIBS
16511 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16512 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16513 if test $ac_cv_lib_gcc____chkstk = yes; then
16515 cat >>confdefs.h <<\_ACEOF
16516 #define HAVE____CHKSTK 1
16522 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16523 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16524 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 ac_check_lib_save_LIBS=$LIBS
16529 cat >conftest.$ac_ext <<_ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16536 /* Override any GCC internal prototype to avoid an error.
16537 Use char because int might match the return type of a GCC
16538 builtin and then its argument prototype would still apply. */
16546 return __ashldi3 ();
16551 rm -f conftest.$ac_objext conftest$ac_exeext
16552 if { (ac_try="$ac_link"
16553 case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_link") 2>conftest.er1
16560 grep -v '^ *+' conftest.er1 >conftest.err
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16566 { (case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_try") 2>&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; } &&
16575 { ac_try='test -s conftest$ac_exeext'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_lib_gcc___ashldi3=yes
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16590 ac_cv_lib_gcc___ashldi3=no
16593 rm -f core conftest.err conftest.$ac_objext \
16594 conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16597 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16598 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16599 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE___ASHLDI3 1
16607 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16608 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16609 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 ac_check_lib_save_LIBS=$LIBS
16614 cat >conftest.$ac_ext <<_ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16621 /* Override any GCC internal prototype to avoid an error.
16622 Use char because int might match the return type of a GCC
16623 builtin and then its argument prototype would still apply. */
16631 return __ashrdi3 ();
16636 rm -f conftest.$ac_objext conftest$ac_exeext
16637 if { (ac_try="$ac_link"
16638 case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_link") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
16650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651 { (case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_try") 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest$ac_exeext'
16661 { (case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_try") 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_cv_lib_gcc___ashrdi3=yes
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_cv_lib_gcc___ashrdi3=no
16678 rm -f core conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16682 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16683 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16684 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE___ASHRDI3 1
16692 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16693 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16694 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 ac_check_lib_save_LIBS=$LIBS
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16716 return __divdi3 ();
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (ac_try="$ac_link"
16723 case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_link") 2>conftest.er1
16730 grep -v '^ *+' conftest.er1 >conftest.err
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16736 { (case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_try") 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest$ac_exeext'
16746 { (case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_try") 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_lib_gcc___divdi3=yes
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_cv_lib_gcc___divdi3=no
16763 rm -f core conftest.err conftest.$ac_objext \
16764 conftest$ac_exeext conftest.$ac_ext
16765 LIBS=$ac_check_lib_save_LIBS
16767 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16768 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16769 if test $ac_cv_lib_gcc___divdi3 = yes; then
16771 cat >>confdefs.h <<\_ACEOF
16772 #define HAVE___DIVDI3 1
16777 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16778 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16779 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 ac_check_lib_save_LIBS=$LIBS
16784 cat >conftest.$ac_ext <<_ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16791 /* Override any GCC internal prototype to avoid an error.
16792 Use char because int might match the return type of a GCC
16793 builtin and then its argument prototype would still apply. */
16801 return __fixdfdi ();
16806 rm -f conftest.$ac_objext conftest$ac_exeext
16807 if { (ac_try="$ac_link"
16808 case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_link") 2>conftest.er1
16815 grep -v '^ *+' conftest.er1 >conftest.err
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest$ac_exeext'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 ac_cv_lib_gcc___fixdfdi=yes
16842 echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16845 ac_cv_lib_gcc___fixdfdi=no
16848 rm -f core conftest.err conftest.$ac_objext \
16849 conftest$ac_exeext conftest.$ac_ext
16850 LIBS=$ac_check_lib_save_LIBS
16852 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16853 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16854 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16856 cat >>confdefs.h <<\_ACEOF
16857 #define HAVE___FIXDFDI 1
16862 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16863 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16864 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 ac_check_lib_save_LIBS=$LIBS
16869 cat >conftest.$ac_ext <<_ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16876 /* Override any GCC internal prototype to avoid an error.
16877 Use char because int might match the return type of a GCC
16878 builtin and then its argument prototype would still apply. */
16886 return __fixsfdi ();
16891 rm -f conftest.$ac_objext conftest$ac_exeext
16892 if { (ac_try="$ac_link"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_link") 2>conftest.er1
16900 grep -v '^ *+' conftest.er1 >conftest.err
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16906 { (case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_try") 2>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } &&
16915 { ac_try='test -s conftest$ac_exeext'
16916 { (case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_try") 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_cv_lib_gcc___fixsfdi=yes
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 ac_cv_lib_gcc___fixsfdi=no
16933 rm -f core conftest.err conftest.$ac_objext \
16934 conftest$ac_exeext conftest.$ac_ext
16935 LIBS=$ac_check_lib_save_LIBS
16937 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16938 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16939 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16941 cat >>confdefs.h <<\_ACEOF
16942 #define HAVE___FIXSFDI 1
16947 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16948 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16949 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 ac_check_lib_save_LIBS=$LIBS
16954 cat >conftest.$ac_ext <<_ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16961 /* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16967 char __floatdidf ();
16971 return __floatdidf ();
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (ac_try="$ac_link"
16978 case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_link") 2>conftest.er1
16985 grep -v '^ *+' conftest.er1 >conftest.err
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_cv_lib_gcc___floatdidf=yes
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17015 ac_cv_lib_gcc___floatdidf=no
17018 rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020 LIBS=$ac_check_lib_save_LIBS
17022 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17023 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17024 if test $ac_cv_lib_gcc___floatdidf = yes; then
17026 cat >>confdefs.h <<\_ACEOF
17027 #define HAVE___FLOATDIDF 1
17032 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17033 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17034 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 ac_check_lib_save_LIBS=$LIBS
17039 cat >conftest.$ac_ext <<_ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h. */
17046 /* Override any GCC internal prototype to avoid an error.
17047 Use char because int might match the return type of a GCC
17048 builtin and then its argument prototype would still apply. */
17056 return __lshrdi3 ();
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 ac_cv_lib_gcc___lshrdi3=yes
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 ac_cv_lib_gcc___lshrdi3=no
17103 rm -f core conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17105 LIBS=$ac_check_lib_save_LIBS
17107 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17108 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17109 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17111 cat >>confdefs.h <<\_ACEOF
17112 #define HAVE___LSHRDI3 1
17117 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17118 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17119 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17122 ac_check_lib_save_LIBS=$LIBS
17124 cat >conftest.$ac_ext <<_ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17131 /* Override any GCC internal prototype to avoid an error.
17132 Use char because int might match the return type of a GCC
17133 builtin and then its argument prototype would still apply. */
17141 return __moddi3 ();
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (ac_try="$ac_link"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_link") 2>conftest.er1
17155 grep -v '^ *+' conftest.er1 >conftest.err
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest$ac_exeext'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 ac_cv_lib_gcc___moddi3=yes
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17185 ac_cv_lib_gcc___moddi3=no
17188 rm -f core conftest.err conftest.$ac_objext \
17189 conftest$ac_exeext conftest.$ac_ext
17190 LIBS=$ac_check_lib_save_LIBS
17192 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17193 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17194 if test $ac_cv_lib_gcc___moddi3 = yes; then
17196 cat >>confdefs.h <<\_ACEOF
17197 #define HAVE___MODDI3 1
17202 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17203 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17204 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 ac_check_lib_save_LIBS=$LIBS
17209 cat >conftest.$ac_ext <<_ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17216 /* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17226 return __udivdi3 ();
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (ac_try="$ac_link"
17233 case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_link") 2>conftest.er1
17240 grep -v '^ *+' conftest.er1 >conftest.err
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
17245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17246 { (case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_try") 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest$ac_exeext'
17256 { (case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_try") 2>&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 ac_cv_lib_gcc___udivdi3=yes
17267 echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17270 ac_cv_lib_gcc___udivdi3=no
17273 rm -f core conftest.err conftest.$ac_objext \
17274 conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17278 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17279 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17281 cat >>confdefs.h <<\_ACEOF
17282 #define HAVE___UDIVDI3 1
17287 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17288 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17289 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 ac_check_lib_save_LIBS=$LIBS
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17301 /* Override any GCC internal prototype to avoid an error.
17302 Use char because int might match the return type of a GCC
17303 builtin and then its argument prototype would still apply. */
17311 return __umoddi3 ();
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (ac_try="$ac_link"
17318 case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_link") 2>conftest.er1
17325 grep -v '^ *+' conftest.er1 >conftest.err
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try='test -s conftest$ac_exeext'
17341 { (case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_try") 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ac_cv_lib_gcc___umoddi3=yes
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ac_cv_lib_gcc___umoddi3=no
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17360 LIBS=$ac_check_lib_save_LIBS
17362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17363 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17364 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE___UMODDI3 1
17373 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17374 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17375 if test "${ac_cv_lib_gcc___main+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 ac_check_lib_save_LIBS=$LIBS
17380 cat >conftest.$ac_ext <<_ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17387 /* Override any GCC internal prototype to avoid an error.
17388 Use char because int might match the return type of a GCC
17389 builtin and then its argument prototype would still apply. */
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (ac_try="$ac_link"
17404 case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_link") 2>conftest.er1
17411 grep -v '^ *+' conftest.er1 >conftest.err
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest$ac_exeext'
17427 { (case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_try") 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_lib_gcc___main=yes
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 ac_cv_lib_gcc___main=no
17444 rm -f core conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17446 LIBS=$ac_check_lib_save_LIBS
17448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17449 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17450 if test $ac_cv_lib_gcc___main = yes; then
17452 cat >>confdefs.h <<\_ACEOF
17453 #define HAVE___MAIN 1
17458 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17459 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17460 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 ac_check_lib_save_LIBS=$LIBS
17465 cat >conftest.$ac_ext <<_ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17472 /* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17482 return __cmpdi2 ();
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17496 grep -v '^ *+' conftest.er1 >conftest.err
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_lib_gcc___cmpdi2=yes
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 ac_cv_lib_gcc___cmpdi2=no
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531 LIBS=$ac_check_lib_save_LIBS
17533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17534 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17535 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17537 cat >>confdefs.h <<\_ACEOF
17538 #define HAVE___CMPDI2 1
17545 if test "$llvm_cv_os_type" = "MingW" ; then
17546 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17547 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17548 cat >conftest.$ac_ext <<_ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17556 #include <windows.h>
17557 #include <imagehlp.h>
17558 extern void foo(PENUMLOADED_MODULES_CALLBACK);
17559 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17563 rm -f conftest.$ac_objext
17564 if { (ac_try="$ac_compile"
17565 case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_compile") 2>conftest.er1
17572 grep -v '^ *+' conftest.er1 >conftest.err
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest.$ac_objext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17598 { echo "$as_me:$LINENO: result: yes" >&5
17599 echo "${ECHO_T}yes" >&6; }
17600 llvm_cv_win32_elmcb_pcstr="PCSTR"
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17607 { echo "$as_me:$LINENO: result: no" >&5
17608 echo "${ECHO_T}no" >&6; }
17609 llvm_cv_win32_elmcb_pcstr="PSTR"
17613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615 cat >>confdefs.h <<_ACEOF
17616 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17623 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17624 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17625 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 ac_cpp='$CXXCPP $CPPFLAGS'
17631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17635 cat >conftest.$ac_ext <<_ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17650 rm -f conftest.$ac_objext
17651 if { (ac_try="$ac_compile"
17652 case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_compile") 2>conftest.er1
17659 grep -v '^ *+' conftest.er1 >conftest.err
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest.$ac_objext'
17675 { (case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_try") 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 ac_cv_func_isnan_in_math_h=yes
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ac_cv_func_isnan_in_math_h=no
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694 ac_cpp='$CPP $CPPFLAGS'
17695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17701 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17702 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17705 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17707 cat >>confdefs.h <<\_ACEOF
17708 #define HAVE_ISNAN_IN_MATH_H 1
17714 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17715 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17716 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17721 ac_cpp='$CXXCPP $CPPFLAGS'
17722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17726 cat >conftest.$ac_ext <<_ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17741 rm -f conftest.$ac_objext
17742 if { (ac_try="$ac_compile"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_compile") 2>conftest.er1
17750 grep -v '^ *+' conftest.er1 >conftest.err
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest.$ac_objext'
17766 { (case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_func_isnan_in_cmath=yes
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17780 ac_cv_func_isnan_in_cmath=no
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785 ac_cpp='$CPP $CPPFLAGS'
17786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17792 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17793 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17795 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17797 cat >>confdefs.h <<\_ACEOF
17798 #define HAVE_ISNAN_IN_CMATH 1
17804 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17805 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17806 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 ac_cpp='$CXXCPP $CPPFLAGS'
17812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17816 cat >conftest.$ac_ext <<_ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17826 float f; std::isnan(f);
17831 rm -f conftest.$ac_objext
17832 if { (ac_try="$ac_compile"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_compile") 2>conftest.er1
17840 grep -v '^ *+' conftest.er1 >conftest.err
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_cv_func_std_isnan_in_cmath=yes
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 ac_cv_func_std_isnan_in_cmath=no
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875 ac_cpp='$CPP $CPPFLAGS'
17876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17882 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17883 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17885 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17887 cat >>confdefs.h <<\_ACEOF
17888 #define HAVE_STD_ISNAN_IN_CMATH 1
17896 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17897 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17898 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 ac_cpp='$CXXCPP $CPPFLAGS'
17904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17908 cat >conftest.$ac_ext <<_ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17923 rm -f conftest.$ac_objext
17924 if { (ac_try="$ac_compile"
17925 case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_compile") 2>conftest.er1
17932 grep -v '^ *+' conftest.er1 >conftest.err
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17938 { (case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_try") 2>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; } &&
17947 { ac_try='test -s conftest.$ac_objext'
17948 { (case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_try") 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_cv_func_isinf_in_math_h=yes
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 ac_cv_func_isinf_in_math_h=no
17965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17967 ac_cpp='$CPP $CPPFLAGS'
17968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17975 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17977 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17979 cat >>confdefs.h <<\_ACEOF
17980 #define HAVE_ISINF_IN_MATH_H 1
17986 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17987 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17988 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 ac_cpp='$CXXCPP $CPPFLAGS'
17994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17998 cat >conftest.$ac_ext <<_ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18013 rm -f conftest.$ac_objext
18014 if { (ac_try="$ac_compile"
18015 case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020 (eval "$ac_compile") 2>conftest.er1
18022 grep -v '^ *+' conftest.er1 >conftest.err
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18028 { (case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_try") 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; } &&
18037 { ac_try='test -s conftest.$ac_objext'
18038 { (case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_try") 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047 ac_cv_func_isinf_in_cmath=yes
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18052 ac_cv_func_isinf_in_cmath=no
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18057 ac_cpp='$CPP $CPPFLAGS'
18058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18064 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18065 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18067 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE_ISINF_IN_CMATH 1
18076 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18077 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18078 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 ac_cpp='$CXXCPP $CPPFLAGS'
18084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18088 cat >conftest.$ac_ext <<_ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18098 float f; std::isinf(f);
18103 rm -f conftest.$ac_objext
18104 if { (ac_try="$ac_compile"
18105 case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_compile") 2>conftest.er1
18112 grep -v '^ *+' conftest.er1 >conftest.err
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18118 { (case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_try") 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest.$ac_objext'
18128 { (case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_try") 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
18137 ac_cv_func_std_isinf_in_cmath=yes
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18142 ac_cv_func_std_isinf_in_cmath=no
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147 ac_cpp='$CPP $CPPFLAGS'
18148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18154 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18155 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18157 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18159 cat >>confdefs.h <<\_ACEOF
18160 #define HAVE_STD_ISINF_IN_CMATH 1
18166 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18167 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18168 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 ac_cpp='$CXXCPP $CPPFLAGS'
18174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18178 cat >conftest.$ac_ext <<_ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18184 #include <ieeefp.h>
18188 float f; finite(f);
18193 rm -f conftest.$ac_objext
18194 if { (ac_try="$ac_compile"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_compile") 2>conftest.er1
18202 grep -v '^ *+' conftest.er1 >conftest.err
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18208 { (case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_try") 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try='test -s conftest.$ac_objext'
18218 { (case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_try") 2>&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 ac_cv_func_finite_in_ieeefp_h=yes
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 ac_cv_func_finite_in_ieeefp_h=no
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237 ac_cpp='$CPP $CPPFLAGS'
18238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18244 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18245 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18247 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18249 cat >>confdefs.h <<\_ACEOF
18250 #define HAVE_FINITE_IN_IEEEFP_H 1
18257 if test "$llvm_cv_platform_type" = "Unix" ; then
18260 for ac_header in stdlib.h unistd.h
18262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 ac_res=`eval echo '${'$as_ac_Header'}'`
18270 { echo "$as_me:$LINENO: result: $ac_res" >&5
18271 echo "${ECHO_T}$ac_res" >&6; }
18273 # Is the header compilable?
18274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18276 cat >conftest.$ac_ext <<_ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 $ac_includes_default
18283 #include <$ac_header>
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest.$ac_objext'
18310 { (case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_try") 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 ac_header_compiler=yes
18321 echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18324 ac_header_compiler=no
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18329 echo "${ECHO_T}$ac_header_compiler" >&6; }
18331 # Is the header present?
18332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18334 cat >conftest.$ac_ext <<_ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 #include <$ac_header>
18342 if { (ac_try="$ac_cpp conftest.$ac_ext"
18343 case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18350 grep -v '^ *+' conftest.er1 >conftest.err
18352 cat conftest.err >&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } >/dev/null; then
18355 if test -s conftest.err; then
18356 ac_cpp_err=$ac_c_preproc_warn_flag
18357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18364 if test -z "$ac_cpp_err"; then
18365 ac_header_preproc=yes
18367 echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18370 ac_header_preproc=no
18373 rm -f conftest.err conftest.$ac_ext
18374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18375 echo "${ECHO_T}$ac_header_preproc" >&6; }
18377 # So? What about this header?
18378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18384 ac_header_preproc=yes
18387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18400 ## ------------------------------------ ##
18401 ## Report this to http://llvm.org/bugs/ ##
18402 ## ------------------------------------ ##
18404 ) | sed "s/^/$as_me: WARNING: /" >&2
18407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18412 eval "$as_ac_Header=\$ac_header_preproc"
18414 ac_res=`eval echo '${'$as_ac_Header'}'`
18415 { echo "$as_me:$LINENO: result: $ac_res" >&5
18416 echo "${ECHO_T}$ac_res" >&6; }
18419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18420 cat >>confdefs.h <<_ACEOF
18421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18429 for ac_func in getpagesize
18431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18437 cat >conftest.$ac_ext <<_ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18445 #define $ac_func innocuous_$ac_func
18447 /* System header to define __stub macros and hopefully few prototypes,
18448 which can conflict with char $ac_func (); below.
18449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18450 <limits.h> exists even on freestanding compilers. */
18453 # include <limits.h>
18455 # include <assert.h>
18460 /* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18467 /* The GNU C library defines this for functions which it implements
18468 to always fail with ENOSYS. Some functions are actually named
18469 something starting with __ and the normal name is an alias. */
18470 #if defined __stub_$ac_func || defined __stub___$ac_func
18477 return $ac_func ();
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18491 grep -v '^ *+' conftest.er1 >conftest.err
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_try") 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 eval "$as_ac_var=yes"
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18521 eval "$as_ac_var=no"
18524 rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18527 ac_res=`eval echo '${'$as_ac_var'}'`
18528 { echo "$as_me:$LINENO: result: $ac_res" >&5
18529 echo "${ECHO_T}$ac_res" >&6; }
18530 if test `eval echo '${'$as_ac_var'}'` = yes; then
18531 cat >>confdefs.h <<_ACEOF
18532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18538 { echo "$as_me:$LINENO: checking for working mmap" >&5
18539 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18543 if test "$cross_compiling" = yes; then
18544 ac_cv_func_mmap_fixed_mapped=no
18546 cat >conftest.$ac_ext <<_ACEOF
18549 cat confdefs.h >>conftest.$ac_ext
18550 cat >>conftest.$ac_ext <<_ACEOF
18551 /* end confdefs.h. */
18552 $ac_includes_default
18553 /* malloc might have been renamed as rpl_malloc. */
18556 /* Thanks to Mike Haertel and Jim Avera for this test.
18557 Here is a matrix of mmap possibilities:
18558 mmap private not fixed
18559 mmap private fixed at somewhere currently unmapped
18560 mmap private fixed at somewhere already mapped
18561 mmap shared not fixed
18562 mmap shared fixed at somewhere currently unmapped
18563 mmap shared fixed at somewhere already mapped
18564 For private mappings, we should verify that changes cannot be read()
18565 back from the file, nor mmap's back from the file at a different
18566 address. (There have been systems where private was not correctly
18567 implemented like the infamous i386 svr4.0, and systems where the
18568 VM page cache was not coherent with the file system buffer cache
18569 like early versions of FreeBSD and possibly contemporary NetBSD.)
18570 For shared mappings, we should conversely verify that changes get
18571 propagated back to all the places they're supposed to be.
18573 Grep wants private fixed already mapped.
18574 The main things grep needs to know about mmap are:
18575 * does it exist and is it safe to write into the mmap'd area
18576 * how to use it (BSD variants) */
18579 #include <sys/mman.h>
18581 #if !STDC_HEADERS && !HAVE_STDLIB_H
18585 /* This mess was copied from the GNU getpagesize.h. */
18586 #if !HAVE_GETPAGESIZE
18587 /* Assume that all systems that can run configure have sys/param.h. */
18588 # if !HAVE_SYS_PARAM_H
18589 # define HAVE_SYS_PARAM_H 1
18592 # ifdef _SC_PAGESIZE
18593 # define getpagesize() sysconf(_SC_PAGESIZE)
18594 # else /* no _SC_PAGESIZE */
18595 # if HAVE_SYS_PARAM_H
18596 # include <sys/param.h>
18597 # ifdef EXEC_PAGESIZE
18598 # define getpagesize() EXEC_PAGESIZE
18599 # else /* no EXEC_PAGESIZE */
18601 # define getpagesize() NBPG * CLSIZE
18604 # endif /* no CLSIZE */
18605 # else /* no NBPG */
18607 # define getpagesize() NBPC
18608 # else /* no NBPC */
18610 # define getpagesize() PAGESIZE
18611 # endif /* PAGESIZE */
18612 # endif /* no NBPC */
18613 # endif /* no NBPG */
18614 # endif /* no EXEC_PAGESIZE */
18615 # else /* no HAVE_SYS_PARAM_H */
18616 # define getpagesize() 8192 /* punt totally */
18617 # endif /* no HAVE_SYS_PARAM_H */
18618 # endif /* no _SC_PAGESIZE */
18620 #endif /* no HAVE_GETPAGESIZE */
18625 char *data, *data2, *data3;
18629 pagesize = getpagesize ();
18631 /* First, make a file with some known garbage in it. */
18632 data = (char *) malloc (pagesize);
18635 for (i = 0; i < pagesize; ++i)
18636 *(data + i) = rand ();
18638 fd = creat ("conftest.mmap", 0600);
18641 if (write (fd, data, pagesize) != pagesize)
18645 /* Next, try to mmap the file at a fixed address which already has
18646 something else allocated at it. If we can, also make sure that
18647 we see the same garbage. */
18648 fd = open ("conftest.mmap", O_RDWR);
18651 data2 = (char *) malloc (2 * pagesize);
18654 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18655 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18656 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18658 for (i = 0; i < pagesize; ++i)
18659 if (*(data + i) != *(data2 + i))
18662 /* Finally, make sure that changes to the mapped area do not
18663 percolate back to the file as seen by read(). (This is a bug on
18664 some variants of i386 svr4.0.) */
18665 for (i = 0; i < pagesize; ++i)
18666 *(data2 + i) = *(data2 + i) + 1;
18667 data3 = (char *) malloc (pagesize);
18670 if (read (fd, data3, pagesize) != pagesize)
18672 for (i = 0; i < pagesize; ++i)
18673 if (*(data + i) != *(data3 + i))
18679 rm -f conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_link") 2>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_cv_func_mmap_fixed_mapped=yes
18701 echo "$as_me: program exited with status $ac_status" >&5
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ( exit $ac_status )
18706 ac_cv_func_mmap_fixed_mapped=no
18708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18713 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18714 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18715 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18717 cat >>confdefs.h <<\_ACEOF
18718 #define HAVE_MMAP 1
18722 rm -f conftest.mmap
18724 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18725 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18726 if test "${ac_cv_func_mmap_file+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 ac_cpp='$CPP $CPPFLAGS'
18731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18735 if test "$cross_compiling" = yes; then
18736 ac_cv_func_mmap_file=no
18738 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18746 #include <sys/types.h>
18747 #include <sys/mman.h>
18755 fd = creat ("foo",0777);
18756 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18758 return (fd != (int) MAP_FAILED);
18763 rm -f conftest$ac_exeext
18764 if { (ac_try="$ac_link"
18765 case "(($ac_try" in
18766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767 *) ac_try_echo=$ac_try;;
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770 (eval "$ac_link") 2>&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_func_mmap_file=yes
18785 echo "$as_me: program exited with status $ac_status" >&5
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18789 ( exit $ac_status )
18790 ac_cv_func_mmap_file=no
18792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18797 ac_cpp='$CPP $CPPFLAGS'
18798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18804 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18805 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18806 if test "$ac_cv_func_mmap_file" = yes; then
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_MMAP_FILE
18816 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18817 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18818 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18821 if test "$llvm_cv_os_type" = "Interix" ; then
18822 ac_cv_need_dev_zero_for_mmap=yes
18824 ac_cv_need_dev_zero_for_mmap=no
18828 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18829 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18830 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18832 cat >>confdefs.h <<\_ACEOF
18833 #define NEED_DEV_ZERO_FOR_MMAP 1
18838 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18840 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18841 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18843 if test "$ac_cv_func_mmap_file" = "no"
18845 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18846 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18850 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18851 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18853 ac_cpp='$CXXCPP $CPPFLAGS'
18854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18858 cat >conftest.$ac_ext <<_ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18867 volatile unsigned long val = 1;
18868 __sync_synchronize();
18869 __sync_val_compare_and_swap(&val, 1, 0);
18870 __sync_add_and_fetch(&val, 1);
18871 __sync_sub_and_fetch(&val, 1);
18877 rm -f conftest.$ac_objext conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_link") 2>conftest.er1
18886 grep -v '^ *+' conftest.er1 >conftest.err
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18892 { (case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest$ac_exeext'
18902 { (case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_try") 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18912 { echo "$as_me:$LINENO: result: yes" >&5
18913 echo "${ECHO_T}yes" >&6; }
18915 cat >>confdefs.h <<\_ACEOF
18916 #define LLVM_HAS_ATOMICS 1
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18925 { echo "$as_me:$LINENO: result: no" >&5
18926 echo "${ECHO_T}no" >&6; }
18928 cat >>confdefs.h <<\_ACEOF
18929 #define LLVM_HAS_ATOMICS 0
18932 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18933 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18937 rm -f core conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18940 ac_cpp='$CPP $CPPFLAGS'
18941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18947 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18948 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18949 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18950 if test "${llvm_cv_linux_mixed+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 ac_cpp='$CPP $CPPFLAGS'
18955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18959 cat >conftest.$ac_ext <<_ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18966 error: Not x86-64 even if uname says so!
18977 rm -f conftest.$ac_objext
18978 if { (ac_try="$ac_compile"
18979 case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984 (eval "$ac_compile") 2>conftest.er1
18986 grep -v '^ *+' conftest.er1 >conftest.err
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18992 { (case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest.$ac_objext'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 llvm_cv_linux_mixed=no
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19016 llvm_cv_linux_mixed=yes
19019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021 ac_cpp='$CPP $CPPFLAGS'
19022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19029 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19031 if test "$llvm_cv_linux_mixed" = "yes"; then
19032 llvm_cv_target_arch="x86"
19038 for ac_func in __dso_handle
19040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 cat >conftest.$ac_ext <<_ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19054 #define $ac_func innocuous_$ac_func
19056 /* System header to define __stub macros and hopefully few prototypes,
19057 which can conflict with char $ac_func (); below.
19058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19059 <limits.h> exists even on freestanding compilers. */
19062 # include <limits.h>
19064 # include <assert.h>
19069 /* Override any GCC internal prototype to avoid an error.
19070 Use char because int might match the return type of a GCC
19071 builtin and then its argument prototype would still apply. */
19076 /* The GNU C library defines this for functions which it implements
19077 to always fail with ENOSYS. Some functions are actually named
19078 something starting with __ and the normal name is an alias. */
19079 #if defined __stub_$ac_func || defined __stub___$ac_func
19086 return $ac_func ();
19091 rm -f conftest.$ac_objext conftest$ac_exeext
19092 if { (ac_try="$ac_link"
19093 case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_link") 2>conftest.er1
19100 grep -v '^ *+' conftest.er1 >conftest.err
19102 cat conftest.err >&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } &&
19105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19106 { (case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_try") 2>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; } &&
19115 { ac_try='test -s conftest$ac_exeext'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 eval "$as_ac_var=yes"
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 eval "$as_ac_var=no"
19133 rm -f core conftest.err conftest.$ac_objext \
19134 conftest$ac_exeext conftest.$ac_ext
19136 ac_res=`eval echo '${'$as_ac_var'}'`
19137 { echo "$as_me:$LINENO: result: $ac_res" >&5
19138 echo "${ECHO_T}$ac_res" >&6; }
19139 if test `eval echo '${'$as_ac_var'}'` = yes; then
19140 cat >>confdefs.h <<_ACEOF
19141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19148 SHLIBEXT=$llvm_shlib_ext
19151 if test "${prefix}" = "NONE" ; then
19152 prefix="/usr/local"
19154 eval LLVM_PREFIX="${prefix}";
19155 eval LLVM_BINDIR="${prefix}/bin";
19156 eval LLVM_DATADIR="${prefix}/share/llvm";
19157 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19158 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19159 eval LLVM_INCLUDEDIR="${prefix}/include";
19160 eval LLVM_INFODIR="${prefix}/info";
19161 eval LLVM_MANDIR="${prefix}/man";
19162 LLVM_CONFIGTIME=`date`
19173 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19174 LLVM_CONFIGTIME="(timestamp not enabled)"
19178 cat >>confdefs.h <<_ACEOF
19179 #define LLVM_PREFIX "$LLVM_PREFIX"
19183 cat >>confdefs.h <<_ACEOF
19184 #define LLVM_BINDIR "$LLVM_BINDIR"
19188 cat >>confdefs.h <<_ACEOF
19189 #define LLVM_DATADIR "$LLVM_DATADIR"
19193 cat >>confdefs.h <<_ACEOF
19194 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19198 cat >>confdefs.h <<_ACEOF
19199 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19203 cat >>confdefs.h <<_ACEOF
19204 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19208 cat >>confdefs.h <<_ACEOF
19209 #define LLVM_INFODIR "$LLVM_INFODIR"
19213 cat >>confdefs.h <<_ACEOF
19214 #define LLVM_MANDIR "$LLVM_MANDIR"
19218 cat >>confdefs.h <<_ACEOF
19219 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19223 cat >>confdefs.h <<_ACEOF
19224 #define LLVM_HOST_TRIPLE "$host"
19228 cat >>confdefs.h <<_ACEOF
19229 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19233 if test "$BINDINGS_TO_BUILD" = auto ; then
19234 BINDINGS_TO_BUILD=""
19235 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19236 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19239 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19245 binding_prereqs_failed=0
19246 for a_binding in $BINDINGS_TO_BUILD ; do
19247 case "$a_binding" in
19249 if test "x$OCAMLC" = x ; then
19250 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19251 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19252 binding_prereqs_failed=1
19254 if test "x$OCAMLDEP" = x ; then
19255 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19256 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19257 binding_prereqs_failed=1
19259 if test "x$OCAMLOPT" = x ; then
19260 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19261 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19263 if test "x$with_ocaml_libdir" != xauto ; then
19264 OCAML_LIBDIR=$with_ocaml_libdir
19267 ocaml_stdlib="`"$OCAMLC" -where`"
19268 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19270 # ocaml stdlib is beneath our prefix; use stdlib
19271 OCAML_LIBDIR=$ocaml_stdlib
19274 # ocaml stdlib is outside our prefix; use libdir/ocaml
19275 OCAML_LIBDIR=${prefix}/lib/ocaml
19282 if test "$binding_prereqs_failed" = 1 ; then
19283 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19284 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19285 { (exit 1); exit 1; }; }
19288 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19289 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19290 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 ac_cpp='$CXXCPP $CPPFLAGS'
19295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19299 oldcxxflags="$CXXFLAGS"
19300 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19301 cat >conftest.$ac_ext <<_ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_compile") 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19331 { (case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_try") 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
19341 { (case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
19350 llvm_cv_cxx_visibility_inlines_hidden=yes
19352 echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19355 llvm_cv_cxx_visibility_inlines_hidden=no
19358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19359 CXXFLAGS="$oldcxxflags"
19361 ac_cpp='$CPP $CPPFLAGS'
19362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19368 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19369 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19370 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19371 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19374 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19379 if test "$llvm_cv_link_use_r" = "yes" ; then
19386 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19387 RDYNAMIC="-rdynamic"
19394 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19401 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19403 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19405 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19407 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19409 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19412 ac_config_files="$ac_config_files Makefile.config"
19415 ac_config_files="$ac_config_files llvm.spec"
19418 ac_config_files="$ac_config_files docs/doxygen.cfg"
19421 if test "${clang_src_root}" = ""; then
19422 clang_src_root="$srcdir/tools/clang"
19424 if test -f ${clang_src_root}/README.txt; then
19425 configh="include/clang/Config/config.h"
19426 doxy="docs/doxygen.cfg"
19427 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19429 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19433 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19436 test "x$program_prefix" = "xNONE" && program_prefix=""
19440 ac_config_commands="$ac_config_commands setup"
19442 ac_config_commands="$ac_config_commands Makefile"
19445 ac_config_commands="$ac_config_commands Makefile.common"
19448 ac_config_commands="$ac_config_commands examples/Makefile"
19451 ac_config_commands="$ac_config_commands lib/Makefile"
19454 ac_config_commands="$ac_config_commands test/Makefile"
19457 ac_config_commands="$ac_config_commands test/Makefile.tests"
19460 ac_config_commands="$ac_config_commands unittests/Makefile"
19463 ac_config_commands="$ac_config_commands tools/Makefile"
19466 ac_config_commands="$ac_config_commands utils/Makefile"
19469 ac_config_commands="$ac_config_commands projects/Makefile"
19472 ac_config_commands="$ac_config_commands bindings/Makefile"
19475 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19479 cat >confcache <<\_ACEOF
19480 # This file is a shell script that caches the results of configure
19481 # tests run on this system so they can be shared between configure
19482 # scripts and configure runs, see configure's option --config-cache.
19483 # It is not useful on other systems. If it contains results you don't
19484 # want to keep, you may remove or edit it.
19486 # config.status only pays attention to the cache file if you give it
19487 # the --recheck option to rerun configure.
19489 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19491 # following values.
19495 # The following way of writing the cache mishandles newlines in values,
19496 # but we know of no workaround that is simple, portable, and efficient.
19497 # So, we kill variables containing newlines.
19498 # Ultrix sh set writes to stderr and can't be redirected directly,
19499 # and sets the high bit in the cache file unless we assign to the vars.
19501 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19502 eval ac_val=\$$ac_var
19506 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19507 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19510 _ | IFS | as_nl) ;; #(
19511 *) $as_unset $ac_var ;;
19517 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19518 *${as_nl}ac_space=\ *)
19519 # `set' does not quote correctly, so add quotes (double-quote
19520 # substitution turns \\\\ into \\, and sed turns \\ into \).
19523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19526 # `set' quotes correctly as required by POSIX, so do not add quotes.
19527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19540 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19541 if test -w "$cache_file"; then
19542 test "x$cache_file" != "x/dev/null" &&
19543 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19544 echo "$as_me: updating cache $cache_file" >&6;}
19545 cat confcache >$cache_file
19547 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19548 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19554 # Let make expand exec_prefix.
19555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19557 DEFS=-DHAVE_CONFIG_H
19561 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19562 # 1. Remove the extension, and $U if already installed.
19563 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19564 ac_i=`echo "$ac_i" | sed "$ac_script"`
19565 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19566 # will be set to the directory where LIBOBJS objects are built.
19567 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19568 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19570 LIBOBJS=$ac_libobjs
19572 LTLIBOBJS=$ac_ltlibobjs
19576 : ${CONFIG_STATUS=./config.status}
19577 ac_clean_files_save=$ac_clean_files
19578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19581 cat >$CONFIG_STATUS <<_ACEOF
19583 # Generated by $as_me.
19584 # Run this file to recreate the current configuration.
19585 # Compiler output produced by configure, useful for debugging
19586 # configure, is in config.log if it exists.
19589 ac_cs_recheck=false
19591 SHELL=\${CONFIG_SHELL-$SHELL}
19594 cat >>$CONFIG_STATUS <<\_ACEOF
19595 ## --------------------- ##
19596 ## M4sh Initialization. ##
19597 ## --------------------- ##
19599 # Be Bourne compatible
19600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19604 # is contrary to our usage. Disable this feature.
19605 alias -g '${1+"$@"}'='"$@"'
19606 setopt NO_GLOB_SUBST
19608 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19610 BIN_SH=xpg4; export BIN_SH # for Tru64
19611 DUALCASE=1; export DUALCASE # for MKS sh
19615 # Avoid depending upon Character Ranges.
19616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19619 as_cr_digits='0123456789'
19620 as_cr_alnum=$as_cr_Letters$as_cr_digits
19622 # The user is always right.
19623 if test "${PATH_SEPARATOR+set}" != set; then
19624 echo "#! /bin/sh" >conf$$.sh
19625 echo "exit 0" >>conf$$.sh
19627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19635 # Support unset when possible.
19636 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19644 # We need space, tab and new line, in precisely that order. Quoting is
19645 # there to prevent editors from complaining about space-tab.
19646 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19647 # splitting by setting IFS to empty value.)
19652 # Find who we are. Look in the path if we contain no directory separator.
19654 *[\\/]* ) as_myself=$0 ;;
19655 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19656 for as_dir in $PATH
19659 test -z "$as_dir" && as_dir=.
19660 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19666 # We did not find ourselves, most probably we were run as `sh COMMAND'
19667 # in which case we are not to be found in the path.
19668 if test "x$as_myself" = x; then
19671 if test ! -f "$as_myself"; then
19672 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19673 { (exit 1); exit 1; }
19676 # Work around bugs in pre-3.0 UWIN ksh.
19677 for as_var in ENV MAIL MAILPATH
19678 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19686 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19687 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19688 LC_TELEPHONE LC_TIME
19690 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19691 eval $as_var=C; export $as_var
19693 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19697 # Required to use basename.
19698 if expr a : '\(a\)' >/dev/null 2>&1 &&
19699 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19705 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19706 as_basename=basename
19712 # Name of the executable.
19713 as_me=`$as_basename -- "$0" ||
19714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19715 X"$0" : 'X\(//\)$' \| \
19716 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19718 sed '/^.*\/\([^/][^/]*\)\/*$/{
19737 as_lineno_1=$LINENO
19738 as_lineno_2=$LINENO
19739 test "x$as_lineno_1" != "x$as_lineno_2" &&
19740 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19742 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19743 # uniformly replaced by the line number. The first 'sed' inserts a
19744 # line-number line after each line using $LINENO; the second 'sed'
19745 # does the real work. The second script uses 'N' to pair each
19746 # line-number line with the line containing $LINENO, and appends
19747 # trailing '-' during substitution so that $LINENO is not a special
19748 # case at line end.
19749 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19750 # scripts with optimization help from Paolo Bonzini. Blame Lee
19751 # E. McMahon (1931-1989) for sed's syntax. :-)
19763 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19766 ' >$as_me.lineno &&
19767 chmod +x "$as_me.lineno" ||
19768 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19769 { (exit 1); exit 1; }; }
19771 # Don't try to exec as it changes $[0], causing all sort of problems
19772 # (the dirname of $[0] is not the place where we might find the
19773 # original and so on. Autoconf is especially sensitive to this).
19774 . "./$as_me.lineno"
19775 # Exit status is that of the last command.
19780 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19786 ECHO_C= ECHO_N= ECHO_T=
19787 case `echo -n x` in
19789 case `echo 'x\c'` in
19790 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19797 if expr a : '\(a\)' >/dev/null 2>&1 &&
19798 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19804 rm -f conf$$ conf$$.exe conf$$.file
19805 if test -d conf$$.dir; then
19806 rm -f conf$$.dir/conf$$.file
19812 if ln -s conf$$.file conf$$ 2>/dev/null; then
19814 # ... but there are two gotchas:
19815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19817 # In both cases, we have to default to `cp -p'.
19818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19820 elif ln conf$$.file conf$$ 2>/dev/null; then
19825 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19826 rmdir conf$$.dir 2>/dev/null
19828 if mkdir -p . 2>/dev/null; then
19831 test -d ./-p && rmdir ./-p
19835 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19836 # systems may use methods other than mode bits to determine executability.
19837 cat >conf$$.file <<_ASEOF
19841 chmod +x conf$$.file
19842 if test -x conf$$.file >/dev/null 2>&1; then
19843 as_executable_p="test -x"
19849 # Sed expression to map a string onto a valid CPP name.
19850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19852 # Sed expression to map a string onto a valid variable name.
19853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19858 # Save the log message, to keep $[0] and so on meaningful, and to
19859 # report actual input values of CONFIG_FILES etc. instead of their
19860 # values after options handling.
19862 This file was extended by LLVM $as_me 3.5.0svn, which was
19863 generated by GNU Autoconf 2.60. Invocation command line was
19865 CONFIG_FILES = $CONFIG_FILES
19866 CONFIG_HEADERS = $CONFIG_HEADERS
19867 CONFIG_LINKS = $CONFIG_LINKS
19868 CONFIG_COMMANDS = $CONFIG_COMMANDS
19871 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19876 cat >>$CONFIG_STATUS <<_ACEOF
19877 # Files that config.status was made for.
19878 config_files="$ac_config_files"
19879 config_headers="$ac_config_headers"
19880 config_commands="$ac_config_commands"
19884 cat >>$CONFIG_STATUS <<\_ACEOF
19886 \`$as_me' instantiates files from templates according to the
19887 current configuration.
19889 Usage: $0 [OPTIONS] [FILE]...
19891 -h, --help print this help, then exit
19892 -V, --version print version number, then exit
19893 -q, --quiet do not print progress messages
19894 -d, --debug don't remove temporary files
19895 --recheck update $as_me by reconfiguring in the same conditions
19896 --file=FILE[:TEMPLATE]
19897 instantiate the configuration file FILE
19898 --header=FILE[:TEMPLATE]
19899 instantiate the configuration header FILE
19901 Configuration files:
19904 Configuration headers:
19907 Configuration commands:
19910 Report bugs to <bug-autoconf@gnu.org>."
19913 cat >>$CONFIG_STATUS <<_ACEOF
19915 LLVM config.status 3.5.0svn
19916 configured by $0, generated by GNU Autoconf 2.60,
19917 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19919 Copyright (C) 2006 Free Software Foundation, Inc.
19920 This config.status script is free software; the Free Software Foundation
19921 gives unlimited permission to copy, distribute and modify it."
19928 cat >>$CONFIG_STATUS <<\_ACEOF
19929 # If no file are specified by the user, then we need to provide default
19930 # value. By we need to know if files were specified by the user.
19936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19948 # Handling of the options.
19949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19952 echo "$ac_cs_version"; exit ;;
19953 --debug | --debu | --deb | --de | --d | -d )
19955 --file | --fil | --fi | --f )
19957 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19958 ac_need_defaults=false;;
19959 --header | --heade | --head | --hea )
19961 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19962 ac_need_defaults=false;;
19964 # Conflict between --help and --header
19965 { echo "$as_me: error: ambiguous option: $1
19966 Try \`$0 --help' for more information." >&2
19967 { (exit 1); exit 1; }; };;
19968 --help | --hel | -h )
19969 echo "$ac_cs_usage"; exit ;;
19970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19974 # This is an error.
19975 -*) { echo "$as_me: error: unrecognized option: $1
19976 Try \`$0 --help' for more information." >&2
19977 { (exit 1); exit 1; }; } ;;
19979 *) ac_config_targets="$ac_config_targets $1"
19980 ac_need_defaults=false ;;
19986 ac_configure_extra_args=
19988 if $ac_cs_silent; then
19990 ac_configure_extra_args="$ac_configure_extra_args --silent"
19994 cat >>$CONFIG_STATUS <<_ACEOF
19995 if \$ac_cs_recheck; then
19996 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19997 CONFIG_SHELL=$SHELL
19998 export CONFIG_SHELL
19999 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20003 cat >>$CONFIG_STATUS <<\_ACEOF
20007 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20008 ## Running $as_me. ##
20014 cat >>$CONFIG_STATUS <<_ACEOF
20018 llvm_src="${srcdir}"
20022 cat >>$CONFIG_STATUS <<\_ACEOF
20024 # Handling of arguments.
20025 for ac_config_target in $ac_config_targets
20027 case $ac_config_target in
20028 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20029 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20030 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20031 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20032 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20033 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20034 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20035 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20036 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20037 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20038 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20039 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20040 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20041 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20042 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20043 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20044 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20045 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20046 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20047 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20048 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20049 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20050 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20051 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20052 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20053 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20055 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20056 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20057 { (exit 1); exit 1; }; };;
20062 # If the user did not use the arguments to specify the items to instantiate,
20063 # then the envvar interface is used. Set only those that are not.
20064 # We use the long form for the default assignment because of an extremely
20065 # bizarre bug on SunOS 4.1.3.
20066 if $ac_need_defaults; then
20067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20069 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20072 # Have a temporary directory for convenience. Make it in the build tree
20073 # simply because there is no reason against having it here, and in addition,
20074 # creating and moving files from /tmp can sometimes cause problems.
20075 # Hook for its removal unless debugging.
20076 # Note that there is a small window in which the directory will not be cleaned:
20077 # after its creation but before its name has been assigned to `$tmp'.
20081 trap 'exit_status=$?
20082 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20084 trap '{ (exit 1); exit 1; }' 1 2 13 15
20086 # Create a (secure) tmp directory for tmp files.
20089 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20090 test -n "$tmp" && test -d "$tmp"
20093 tmp=./conf$$-$RANDOM
20094 (umask 077 && mkdir "$tmp")
20097 echo "$me: cannot create a temporary directory in ." >&2
20098 { (exit 1); exit 1; }
20102 # Set up the sed scripts for CONFIG_FILES section.
20105 # No need to generate the scripts if there are no CONFIG_FILES.
20106 # This happens for instance when ./config.status config.h
20107 if test -n "$CONFIG_FILES"; then
20114 for ac_last_try in false false false false false :; do
20115 cat >conf$$subs.sed <<_ACEOF
20116 SHELL!$SHELL$ac_delim
20117 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20118 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20119 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20120 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20121 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20122 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20123 exec_prefix!$exec_prefix$ac_delim
20124 prefix!$prefix$ac_delim
20125 program_transform_name!$program_transform_name$ac_delim
20126 bindir!$bindir$ac_delim
20127 sbindir!$sbindir$ac_delim
20128 libexecdir!$libexecdir$ac_delim
20129 datarootdir!$datarootdir$ac_delim
20130 datadir!$datadir$ac_delim
20131 sysconfdir!$sysconfdir$ac_delim
20132 sharedstatedir!$sharedstatedir$ac_delim
20133 localstatedir!$localstatedir$ac_delim
20134 includedir!$includedir$ac_delim
20135 oldincludedir!$oldincludedir$ac_delim
20136 docdir!$docdir$ac_delim
20137 infodir!$infodir$ac_delim
20138 htmldir!$htmldir$ac_delim
20139 dvidir!$dvidir$ac_delim
20140 pdfdir!$pdfdir$ac_delim
20141 psdir!$psdir$ac_delim
20142 libdir!$libdir$ac_delim
20143 localedir!$localedir$ac_delim
20144 mandir!$mandir$ac_delim
20145 DEFS!$DEFS$ac_delim
20146 ECHO_C!$ECHO_C$ac_delim
20147 ECHO_N!$ECHO_N$ac_delim
20148 ECHO_T!$ECHO_T$ac_delim
20149 LIBS!$LIBS$ac_delim
20150 build_alias!$build_alias$ac_delim
20151 host_alias!$host_alias$ac_delim
20152 target_alias!$target_alias$ac_delim
20153 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20154 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20155 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20156 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
20157 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20159 CFLAGS!$CFLAGS$ac_delim
20160 LDFLAGS!$LDFLAGS$ac_delim
20161 CPPFLAGS!$CPPFLAGS$ac_delim
20162 ac_ct_CC!$ac_ct_CC$ac_delim
20163 EXEEXT!$EXEEXT$ac_delim
20164 OBJEXT!$OBJEXT$ac_delim
20166 CXXFLAGS!$CXXFLAGS$ac_delim
20167 ac_ct_CXX!$ac_ct_CXX$ac_delim
20169 subdirs!$subdirs$ac_delim
20170 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20171 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20172 build!$build$ac_delim
20173 build_cpu!$build_cpu$ac_delim
20174 build_vendor!$build_vendor$ac_delim
20175 build_os!$build_os$ac_delim
20176 host!$host$ac_delim
20177 host_cpu!$host_cpu$ac_delim
20178 host_vendor!$host_vendor$ac_delim
20179 host_os!$host_os$ac_delim
20180 target!$target$ac_delim
20181 target_cpu!$target_cpu$ac_delim
20182 target_vendor!$target_vendor$ac_delim
20183 target_os!$target_os$ac_delim
20185 HOST_OS!$HOST_OS$ac_delim
20186 TARGET_OS!$TARGET_OS$ac_delim
20187 LINKALL!$LINKALL$ac_delim
20188 NOLINKALL!$NOLINKALL$ac_delim
20189 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20190 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20191 ARCH!$ARCH$ac_delim
20192 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20193 HOST_ARCH!$HOST_ARCH$ac_delim
20194 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20195 BUILD_CC!$BUILD_CC$ac_delim
20196 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20197 BUILD_CXX!$BUILD_CXX$ac_delim
20198 CVSBUILD!$CVSBUILD$ac_delim
20199 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20200 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
20201 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20202 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20203 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
20204 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20205 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20206 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20207 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20208 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20209 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20210 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20211 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20212 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20215 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20217 elif $ac_last_try; then
20218 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20219 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20220 { (exit 1); exit 1; }; }
20222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20226 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20227 if test -n "$ac_eof"; then
20228 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20229 ac_eof=`expr $ac_eof + 1`
20232 cat >>$CONFIG_STATUS <<_ACEOF
20233 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20237 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20238 s/^/s,@/; s/!/@,|#_!!_#|/
20241 s/'"$ac_delim"'$/,g/; t
20243 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20244 ' >>$CONFIG_STATUS <conf$$subs.sed
20245 rm -f conf$$subs.sed
20246 cat >>$CONFIG_STATUS <<_ACEOF
20252 for ac_last_try in false false false false false :; do
20253 cat >conf$$subs.sed <<_ACEOF
20254 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20255 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20257 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20258 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20259 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20260 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20261 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20262 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20263 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20264 ENABLE_PIC!$ENABLE_PIC$ac_delim
20265 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20266 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20267 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20268 ALL_TARGETS!$ALL_TARGETS$ac_delim
20269 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20270 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20271 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20272 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20273 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20274 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20275 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20276 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20277 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20278 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20279 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20280 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20281 ifGNUmake!$ifGNUmake$ac_delim
20282 LN_S!$LN_S$ac_delim
20286 DATE!$DATE$ac_delim
20287 FIND!$FIND$ac_delim
20288 GREP!$GREP$ac_delim
20289 MKDIR!$MKDIR$ac_delim
20291 RANLIB!$RANLIB$ac_delim
20296 BINPWD!$BINPWD$ac_delim
20297 GRAPHVIZ!$GRAPHVIZ$ac_delim
20300 NEATO!$NEATO$ac_delim
20301 TWOPI!$TWOPI$ac_delim
20302 CIRCO!$CIRCO$ac_delim
20304 DOTTY!$DOTTY$ac_delim
20305 XDOT!$XDOT$ac_delim
20306 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20307 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20308 INSTALL_DATA!$INSTALL_DATA$ac_delim
20309 BZIP2!$BZIP2$ac_delim
20311 DOXYGEN!$DOXYGEN$ac_delim
20312 GROFF!$GROFF$ac_delim
20313 GZIPBIN!$GZIPBIN$ac_delim
20314 PDFROFF!$PDFROFF$ac_delim
20316 OCAMLC!$OCAMLC$ac_delim
20317 OCAMLOPT!$OCAMLOPT$ac_delim
20318 OCAMLDEP!$OCAMLDEP$ac_delim
20319 OCAMLDOC!$OCAMLDOC$ac_delim
20321 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20322 EGREP!$EGREP$ac_delim
20323 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20324 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20325 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20326 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20327 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20328 PYTHON!$PYTHON$ac_delim
20329 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20330 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20331 USE_UDIS86!$USE_UDIS86$ac_delim
20332 USE_OPROFILE!$USE_OPROFILE$ac_delim
20333 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20334 XML2CONFIG!$XML2CONFIG$ac_delim
20335 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20336 LIBXML2_INC!$LIBXML2_INC$ac_delim
20337 CXXCPP!$CXXCPP$ac_delim
20338 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20339 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20340 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20341 MMAP_FILE!$MMAP_FILE$ac_delim
20342 SHLIBEXT!$SHLIBEXT$ac_delim
20343 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20344 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20345 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20346 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20347 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20348 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20349 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20350 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20353 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20355 elif $ac_last_try; then
20356 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20357 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20358 { (exit 1); exit 1; }; }
20360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20364 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20365 if test -n "$ac_eof"; then
20366 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20367 ac_eof=`expr $ac_eof + 1`
20370 cat >>$CONFIG_STATUS <<_ACEOF
20371 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20375 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20376 s/^/s,@/; s/!/@,|#_!!_#|/
20379 s/'"$ac_delim"'$/,g/; t
20381 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20382 ' >>$CONFIG_STATUS <conf$$subs.sed
20383 rm -f conf$$subs.sed
20384 cat >>$CONFIG_STATUS <<_ACEOF
20390 for ac_last_try in false false false false false :; do
20391 cat >conf$$subs.sed <<_ACEOF
20392 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20393 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20394 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20395 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20396 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20397 RPATH!$RPATH$ac_delim
20398 RDYNAMIC!$RDYNAMIC$ac_delim
20399 program_prefix!$program_prefix$ac_delim
20400 LIBOBJS!$LIBOBJS$ac_delim
20401 LTLIBOBJS!$LTLIBOBJS$ac_delim
20404 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20406 elif $ac_last_try; then
20407 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20408 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20409 { (exit 1); exit 1; }; }
20411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20415 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20416 if test -n "$ac_eof"; then
20417 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20418 ac_eof=`expr $ac_eof + 1`
20421 cat >>$CONFIG_STATUS <<_ACEOF
20422 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20426 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20427 s/^/s,@/; s/!/@,|#_!!_#|/
20430 s/'"$ac_delim"'$/,g/; t
20432 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20433 ' >>$CONFIG_STATUS <conf$$subs.sed
20434 rm -f conf$$subs.sed
20435 cat >>$CONFIG_STATUS <<_ACEOF
20442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20444 # trailing colons and then remove the whole line if VPATH becomes empty
20445 # (actually we leave an empty line to preserve line numbers).
20446 if test "x$srcdir" = x.; then
20447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20448 s/:*\$(srcdir):*/:/
20449 s/:*\${srcdir}:*/:/
20451 s/^\([^=]*=[ ]*\):*/\1/
20457 cat >>$CONFIG_STATUS <<\_ACEOF
20458 fi # test -n "$CONFIG_FILES"
20461 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20464 :[FHLC]) ac_mode=$ac_tag; continue;;
20466 case $ac_mode$ac_tag in
20468 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20469 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20470 { (exit 1); exit 1; }; };;
20471 :[FH]-) ac_tag=-:-;;
20472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20489 -) ac_f="$tmp/stdin";;
20490 *) # Look for the file first in the build tree, then in the source tree
20491 # (if the path is not absolute). The absolute path cannot be DOS-style,
20492 # because $ac_f cannot contain `:'.
20496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20498 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20499 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20500 { (exit 1); exit 1; }; };;
20502 ac_file_inputs="$ac_file_inputs $ac_f"
20505 # Let's still pretend it is `configure' which instantiates (i.e., don't
20506 # use $as_me), people would be surprised to read:
20507 # /* config.h. Generated by config.status. */
20508 configure_input="Generated from "`IFS=:
20509 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20510 if test x"$ac_file" != x-; then
20511 configure_input="$ac_file. $configure_input"
20512 { echo "$as_me:$LINENO: creating $ac_file" >&5
20513 echo "$as_me: creating $ac_file" >&6;}
20517 *:-:* | *:-) cat >"$tmp/stdin";;
20522 ac_dir=`$as_dirname -- "$ac_file" ||
20523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20524 X"$ac_file" : 'X\(//\)[^/]' \| \
20525 X"$ac_file" : 'X\(//\)$' \| \
20526 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20532 /^X\(\/\/\)[^/].*/{
20547 -*) as_dir=./$as_dir;;
20549 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20553 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20554 *) as_qdir=$as_dir;;
20556 as_dirs="'$as_qdir' $as_dirs"
20557 as_dir=`$as_dirname -- "$as_dir" ||
20558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20559 X"$as_dir" : 'X\(//\)[^/]' \| \
20560 X"$as_dir" : 'X\(//\)$' \| \
20561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20567 /^X\(\/\/\)[^/].*/{
20580 test -d "$as_dir" && break
20582 test -z "$as_dirs" || eval "mkdir $as_dirs"
20583 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20584 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20585 { (exit 1); exit 1; }; }; }
20589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20592 # A ".." for each directory in $ac_dir_suffix.
20593 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20594 case $ac_top_builddir_sub in
20595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20599 ac_abs_top_builddir=$ac_pwd
20600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20601 # for backward compatibility:
20602 ac_top_builddir=$ac_top_build_prefix
20605 .) # We are building in place.
20607 ac_top_srcdir=$ac_top_builddir_sub
20608 ac_abs_top_srcdir=$ac_pwd ;;
20609 [\\/]* | ?:[\\/]* ) # Absolute name.
20610 ac_srcdir=$srcdir$ac_dir_suffix;
20611 ac_top_srcdir=$srcdir
20612 ac_abs_top_srcdir=$srcdir ;;
20613 *) # Relative name.
20614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20615 ac_top_srcdir=$ac_top_build_prefix$srcdir
20616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20633 cat >>$CONFIG_STATUS <<\_ACEOF
20634 # If the template does not know about datarootdir, expand it.
20635 # FIXME: This hack should be removed a few years after 2.60.
20636 ac_datarootdir_hack=; ac_datarootdir_seen=
20638 case `sed -n '/datarootdir/ {
20647 ' $ac_file_inputs` in
20648 *datarootdir*) ac_datarootdir_seen=yes;;
20649 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20650 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20651 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20653 cat >>$CONFIG_STATUS <<_ACEOF
20654 ac_datarootdir_hack='
20655 s&@datadir@&$datadir&g
20656 s&@docdir@&$docdir&g
20657 s&@infodir@&$infodir&g
20658 s&@localedir@&$localedir&g
20659 s&@mandir@&$mandir&g
20660 s&\\\${datarootdir}&$datarootdir&g' ;;
20664 # Neutralize VPATH when `$srcdir' = `.'.
20665 # Shell code in configure.ac might set extrasub.
20666 # FIXME: do we really want to maintain this feature?
20667 cat >>$CONFIG_STATUS <<_ACEOF
20671 cat >>$CONFIG_STATUS <<\_ACEOF
20673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20674 s&@configure_input@&$configure_input&;t t
20675 s&@top_builddir@&$ac_top_builddir_sub&;t t
20676 s&@srcdir@&$ac_srcdir&;t t
20677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20678 s&@top_srcdir@&$ac_top_srcdir&;t t
20679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20680 s&@builddir@&$ac_builddir&;t t
20681 s&@abs_builddir@&$ac_abs_builddir&;t t
20682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20683 s&@INSTALL@&$ac_INSTALL&;t t
20684 $ac_datarootdir_hack
20685 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20687 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20688 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20689 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20690 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20691 which seems to be undefined. Please make sure it is defined." >&5
20692 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20693 which seems to be undefined. Please make sure it is defined." >&2;}
20697 -) cat "$tmp/out"; rm -f "$tmp/out";;
20698 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20707 # Transform confdefs.h into a sed script `conftest.defines', that
20708 # substitutes the proper values into config.h.in to produce config.h.
20709 rm -f conftest.defines conftest.tail
20710 # First, append a space to every undef/define line, to ease matching.
20711 echo 's/$/ /' >conftest.defines
20712 # Then, protect against being on the right side of a sed subst, or in
20713 # an unquoted here document, in config.status. If some macros were
20714 # called several times there might be several #defines for the same
20715 # symbol, which is useless. But do not sort them, since the last
20716 # AC_DEFINE must be honored.
20717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20718 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20719 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20720 # PARAMS is the parameter list in the macro definition--in most cases, it's
20721 # just an empty string.
20722 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20723 ac_dB='\\)[ (].*,\\1define\\2'
20731 s/^[ ]*#[ ]*define[ ][ ]*//
20736 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20737 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20738 ' >>conftest.defines
20740 # Remove the space that was appended to ease matching.
20741 # Then replace #undef with comments. This is necessary, for
20742 # example, in the case of _POSIX_SOURCE, which is predefined and required
20743 # on some systems where configure will not decide to define it.
20744 # (The regexp can be short, since the line contains either #define or #undef.)
20746 s,^[ #]*u.*,/* & */,' >>conftest.defines
20748 # Break up conftest.defines:
20749 ac_max_sed_lines=50
20751 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20752 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20753 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20755 ac_in='$ac_file_inputs'
20756 ac_out='"$tmp/out1"'
20757 ac_nxt='"$tmp/out2"'
20761 # Write a here document:
20762 cat >>$CONFIG_STATUS <<_ACEOF
20763 # First, check the format of the line:
20764 cat >"\$tmp/defines.sed" <<\\CEOF
20765 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20766 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20770 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20772 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20773 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20774 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20775 grep . conftest.tail >/dev/null || break
20776 rm -f conftest.defines
20777 mv conftest.tail conftest.defines
20779 rm -f conftest.defines conftest.tail
20781 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20782 cat >>$CONFIG_STATUS <<\_ACEOF
20783 if test x"$ac_file" != x-; then
20784 echo "/* $configure_input */" >"$tmp/config.h"
20785 cat "$ac_result" >>"$tmp/config.h"
20786 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20787 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20788 echo "$as_me: $ac_file is unchanged" >&6;}
20791 mv "$tmp/config.h" $ac_file
20794 echo "/* $configure_input */"
20800 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20801 echo "$as_me: executing $ac_file commands" >&6;}
20806 case $ac_file$ac_mode in
20807 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20808 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20809 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20810 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20811 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20812 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20813 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20814 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20815 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20816 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20817 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20818 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20819 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20820 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20821 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20822 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20823 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20824 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20825 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20826 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20827 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20828 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20829 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20830 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20836 { (exit 0); exit 0; }
20838 chmod +x $CONFIG_STATUS
20839 ac_clean_files=$ac_clean_files_save
20842 # configure is writing to config.log, and then calls config.status.
20843 # config.status does its own redirection, appending to config.log.
20844 # Unfortunately, on DOS this fails, as config.log is still kept open
20845 # by configure, so config.status won't be able to write to it; its
20846 # output is simply discarded. So we exec the FD to /dev/null,
20847 # effectively closing config.log, so it can be properly (re)opened and
20848 # appended to by config.status. When coming back to configure, we
20849 # need to make the FD available again.
20850 if test "$no_create" != yes; then
20852 ac_config_status_args=
20853 test "$silent" = yes &&
20854 ac_config_status_args="$ac_config_status_args --quiet"
20856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20859 # would make configure fail if this is the last instruction.
20860 $ac_cs_success || { (exit 1); exit 1; }
20864 # CONFIG_SUBDIRS section.
20866 if test "$no_recursion" != yes; then
20868 # Remove --cache-file and --srcdir arguments so they do not pile up.
20869 ac_sub_configure_args=
20871 eval "set x $ac_configure_args"
20875 if test -n "$ac_prev"; then
20880 -cache-file | --cache-file | --cache-fil | --cache-fi \
20881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20882 ac_prev=cache_file ;;
20883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20887 --config-cache | -C)
20889 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20891 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20893 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20895 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20899 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20901 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20905 # Always prepend --prefix to ensure using the same prefix
20906 # in subdir configurations.
20907 ac_arg="--prefix=$prefix"
20909 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20911 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20914 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20916 # Do not complain, so a configure script can configure whichever
20917 # parts of a large source tree are present.
20918 test -d "$srcdir/$ac_dir" || continue
20920 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20921 echo "$as_me:$LINENO: $ac_msg" >&5
20925 -*) as_dir=./$as_dir;;
20927 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20931 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20932 *) as_qdir=$as_dir;;
20934 as_dirs="'$as_qdir' $as_dirs"
20935 as_dir=`$as_dirname -- "$as_dir" ||
20936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20937 X"$as_dir" : 'X\(//\)[^/]' \| \
20938 X"$as_dir" : 'X\(//\)$' \| \
20939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20945 /^X\(\/\/\)[^/].*/{
20958 test -d "$as_dir" && break
20960 test -z "$as_dirs" || eval "mkdir $as_dirs"
20961 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20962 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20963 { (exit 1); exit 1; }; }; }
20967 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20970 # A ".." for each directory in $ac_dir_suffix.
20971 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20972 case $ac_top_builddir_sub in
20973 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20974 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20977 ac_abs_top_builddir=$ac_pwd
20978 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20979 # for backward compatibility:
20980 ac_top_builddir=$ac_top_build_prefix
20983 .) # We are building in place.
20985 ac_top_srcdir=$ac_top_builddir_sub
20986 ac_abs_top_srcdir=$ac_pwd ;;
20987 [\\/]* | ?:[\\/]* ) # Absolute name.
20988 ac_srcdir=$srcdir$ac_dir_suffix;
20989 ac_top_srcdir=$srcdir
20990 ac_abs_top_srcdir=$srcdir ;;
20991 *) # Relative name.
20992 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20993 ac_top_srcdir=$ac_top_build_prefix$srcdir
20994 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20996 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21001 # Check for guested configure; otherwise get Cygnus style configure.
21002 if test -f "$ac_srcdir/configure.gnu"; then
21003 ac_sub_configure=$ac_srcdir/configure.gnu
21004 elif test -f "$ac_srcdir/configure"; then
21005 ac_sub_configure=$ac_srcdir/configure
21006 elif test -f "$ac_srcdir/configure.in"; then
21007 # This should be Cygnus configure.
21008 ac_sub_configure=$ac_aux_dir/configure
21010 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21011 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21015 # The recursion is here.
21016 if test -n "$ac_sub_configure"; then
21017 # Make the cache file name correct relative to the subdirectory.
21018 case $cache_file in
21019 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21020 *) # Relative name.
21021 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21024 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21025 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21026 # The eval makes quoting arguments work.
21027 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21028 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21029 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21030 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21031 { (exit 1); exit 1; }; }