2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.5.0svn'
565 PACKAGE_STRING='LLVM 3.5.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
694 ENABLE_CLANG_REWRITER
699 ENABLE_EXPENSIVE_CHECKS
719 LLVM_ENUM_ASM_PRINTERS
720 LLVM_ENUM_ASM_PARSERS
721 LLVM_ENUM_DISASSEMBLERS
769 HAVE_LINK_VERSION_SCRIPT
772 NO_MISSING_FIELD_INITIALIZERS
773 COVERED_SWITCH_DEFAULT
774 NO_MAYBE_UNINITIALIZED
803 ENABLE_VISIBILITY_INLINES_HIDDEN
810 ac_precious_vars='build_alias
822 ac_subdirs_all='projects/test-suite
825 projects/llvm-poolalloc
829 # Initialize some variables set by options.
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
841 program_transform_name=s,x,x,
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 # Accept the important Cygnus configure options, so we can diagnose typos.
893 case $ac_dashdash$ac_option in
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
915 cache_file=config.cache ;;
917 -datadir | --datadir | --datadi | --datad)
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
929 -disable-* | --disable-*)
930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934 { (exit 1); exit 1; }; }
935 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936 eval enable_$ac_feature=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
970 -help | --help | --hel | --he | -h)
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package| sed 's/-/_/g'`
1152 eval with_$ac_package=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/-/_/g'`
1161 eval with_$ac_package=no ;;
1164 # Obsolete; use --with-x.
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1181 -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183 { (exit 1); exit 1; }; }
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191 { (exit 1); exit 1; }; }
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1196 # FIXME: should be removed in autoconf 3.0.
1197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 { echo "$as_me: error: missing argument to $ac_option" >&2
1209 { (exit 1); exit 1; }; }
1212 # Be sure to have absolute directory names.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1218 eval ac_val=\$$ac_var
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 { echo "$as_me: error: Working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 { echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$0" : 'X\(//\)[^/]' \| \
1268 X"$0" : 'X\(//\)$' \| \
1269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1329 \`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of LLVM 3.5.0svn:";;
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-polly Use polly if available (default is YES)
1403 --enable-libcpp Use libc++ if available (default is NO)
1404 --enable-compiler-version-checks
1405 Check the version of the host compiler (default is
1407 --enable-cxx1y Use c++1y if available (default is NO)
1408 --enable-split-dwarf Use split-dwarf if available (default is NO)
1409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1410 --enable-clang-plugin-support
1411 Enable plugin support in clang (default is YES)
1412 --enable-clang-static-analyzer
1413 Enable building of clang Static Analyzer (default is
1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416 --enable-optimized Compile with optimizations enabled (default is NO)
1417 --enable-profiling Compile with profiling enabled (default is NO)
1418 --enable-assertions Compile with assertion checks enabled (default is
1420 --enable-werror Compile with -Werror enabled (default is NO)
1421 --enable-expensive-checks
1422 Compile with expensive debug checks enabled (default
1424 --enable-debug-runtime Build runtime libs with debug symbols (default is
1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1427 optimization is on and YES if it's off)
1428 --enable-keep-symbols Do not strip installed executables)
1429 --enable-jit Enable Just In Time Compiling (default is YES)
1430 --enable-docs Build documents (default is YES)
1431 --enable-doxygen Build doxygen documentation (default is NO)
1432 --enable-threads Use threads if available (default is YES)
1433 --enable-pthreads Use pthreads if available (default is YES)
1434 --enable-zlib Use zlib for compression/decompression if available
1436 --enable-pic Build LLVM with Position Independent Code (default
1438 --enable-shared Build a shared library and link tools against it
1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1441 Win32 DLL (default is NO)
1442 --enable-timestamps Enable embedding timestamp information in build
1444 --enable-backtraces Enable embedding backtraces on crash (default is
1446 --enable-crash-overrides
1447 Enable crash handling overrides (default is YES)
1448 --enable-targets Build specific host targets: all or
1449 target1,target2,... Valid targets are: host, x86,
1450 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1451 hexagon, xcore, msp430, nvptx, systemz, r600, and
1453 --enable-experimental-targets
1454 Build experimental host targets: disable or
1455 target1,target2,... (default=disable)
1456 --enable-bindings Build specific language bindings:
1457 all,auto,none,{binding-name} (default=auto)
1458 --enable-terminfo Query the terminfo database if available (default is
1460 --enable-libedit Use libedit if available (default is YES)
1461 --enable-libffi Check for the presence of libffi (default is NO)
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-optimize-option Select the compiler options to use for optimized
1468 --with-extra-options Specify additional options to compile LLVM with
1469 --with-extra-ld-options Specify additional options to link LLVM with
1470 --with-ocaml-libdir Specify install location for ocaml bindings (default
1472 --with-clang-srcdir Directory to the out-of-tree Clang source
1473 --with-clang-resource-dir
1474 Relative directory from the Clang binary for
1476 --with-c-include-dirs Colon separated list of directories clang will
1478 --with-gcc-toolchain Directory where gcc is installed.
1479 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1480 --with-binutils-include Specify path to binutils/include/ containing
1481 plugin-api.h file for gold plugin.
1482 --with-bug-report-url Specify the URL where bug reports should be
1483 submitted (default=http://llvm.org/bugs/)
1484 --with-internal-prefix Installation directory for internal files
1485 --with-python path to python
1486 --with-udis86=<path> Use udis86 external x86 disassembler library
1487 --with-oprofile=<prefix>
1488 Tell OProfile >= 0.9.4 how to symbolize JIT output
1489 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1507 Report bugs to <http://llvm.org/bugs/>.
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" || continue
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1535 .) # We are building in place.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1568 LLVM configure 3.5.0svn
1569 generated by GNU Autoconf 2.60
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1576 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1584 It was created by LLVM $as_me 3.5.0svn, which was
1585 generated by GNU Autoconf 2.60. Invocation command line was
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_must_keep_next=false
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 -* ) ac_must_keep_next=true ;;
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1701 # The following way of writing the cache mishandles newlines in values,
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1738 for ac_var in $ac_subst_vars
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1748 if test -n "$ac_subst_files"; then
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1755 for ac_var in $ac_subst_files
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 echo "$ac_var='\''$ac_val'\''"
1766 if test -s confdefs.h; then
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 LLVM_VERSION_MAJOR=3
1939 LLVM_VERSION_MINOR=5
1940 LLVM_VERSION_PATCH=0
1941 LLVM_VERSION_SUFFIX=svn
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1949 cat >>confdefs.h <<_ACEOF
1950 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1954 cat >>confdefs.h <<_ACEOF
1955 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1964 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1973 for ac_dir in autoconf "$srcdir"/autoconf; do
1974 if test -f "$ac_dir/install-sh"; then
1976 ac_install_sh="$ac_aux_dir/install-sh -c"
1978 elif test -f "$ac_dir/install.sh"; then
1980 ac_install_sh="$ac_aux_dir/install.sh -c"
1982 elif test -f "$ac_dir/shtool"; then
1984 ac_install_sh="$ac_aux_dir/shtool install -c"
1988 if test -z "$ac_aux_dir"; then
1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1991 { (exit 1); exit 1; }; }
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004 if test ${srcdir} != "." ; then
2005 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2006 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2007 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2008 { (exit 1); exit 1; }; }
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 if test -n "$ac_tool_prefix"; then
2021 for ac_prog in clang gcc
2023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 if test -n "$CC"; then
2052 { echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6; }
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2060 test -n "$CC" && break
2063 if test -z "$CC"; then
2065 for ac_prog in clang gcc
2067 # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy $ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_ac_ct_CC="$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$ac_ct_CC" && break
2107 if test "x$ac_ct_CC" = x; then
2110 case $cross_compiling:$ac_tool_warned in
2112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet. If you think this
2114 configuration is useful to you, please write to autoconf@gnu.org." >&5
2115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2116 whose name does not start with the host triplet. If you think this
2117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2118 ac_tool_warned=yes ;;
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO: checking for C compiler version" >&5
2133 ac_compiler=`set X $ac_compile; echo $2`
2134 { (ac_try="$ac_compiler --version >&5"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler --version >&5") 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (ac_try="$ac_compiler -v >&5"
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler -v >&5") 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (ac_try="$ac_compiler -V >&5"
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_compiler -V >&5") 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2165 cat >conftest.$ac_ext <<_ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h. */
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2185 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2189 # List of possible output files, starting from the most likely.
2190 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2191 # only as a last resort. b.out is created by i960 compilers.
2192 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2194 # The IRIX 6 linker writes into existing files which may not be
2195 # executable, retaining their permissions. Remove them first so a
2196 # subsequent execution test works.
2198 for ac_file in $ac_files
2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2207 if { (ac_try="$ac_link_default"
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_link_default") 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2219 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2220 # so that the user can short-circuit this test for compilers unknown to
2222 for ac_file in $ac_files
2224 test -f "$ac_file" || continue
2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2229 # We found the default executable, but exeext='' is most
2233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237 # We set ac_cv_exeext here because the later test for it is not
2238 # safe: cross compilers may not add the suffix if given an `-o'
2239 # argument, so we may need to know it at that point already.
2240 # Even if this section looks crufty: it has the advantage of
2247 test "$ac_cv_exeext" = no && ac_cv_exeext=
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257 { (exit 77); exit 77; }; }
2260 ac_exeext=$ac_cv_exeext
2261 { echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6; }
2264 # Check that the compiler produces executables we can run. If not, either
2265 # the compiler is broken, or we cross compile.
2266 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271 if { ac_try='./$ac_file'
2272 { (case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_try") 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2283 if test "$cross_compiling" = maybe; then
2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287 If you meant to cross compile, use \`--host'.
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot run C compiled programs.
2290 If you meant to cross compile, use \`--host'.
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2296 { echo "$as_me:$LINENO: result: yes" >&5
2297 echo "${ECHO_T}yes" >&6; }
2299 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300 ac_clean_files=$ac_clean_files_save
2301 # Check that the compiler produces executables we can run. If not, either
2302 # the compiler is broken, or we cross compile.
2303 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306 echo "${ECHO_T}$cross_compiling" >&6; }
2308 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310 if { (ac_try="$ac_link"
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316 (eval "$ac_link") 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322 # work properly (i.e., refer to `conftest.exe'), while it won't with
2324 for ac_file in conftest.exe conftest conftest.*; do
2325 test -f "$ac_file" || continue
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2341 rm -f conftest$ac_cv_exeext
2342 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2345 rm -f conftest.$ac_ext
2346 EXEEXT=$ac_cv_exeext
2348 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350 if test "${ac_cv_objext+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2368 rm -f conftest.o conftest.obj
2369 if { (ac_try="$ac_compile"
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_compile") 2>&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 for ac_file in conftest.o conftest.obj conftest.*; do
2380 test -f "$ac_file" || continue;
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2391 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394 See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }
2398 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2400 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401 echo "${ECHO_T}$ac_cv_objext" >&6; }
2402 OBJEXT=$ac_cv_objext
2404 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 cat >conftest.$ac_ext <<_ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2427 rm -f conftest.$ac_objext
2428 if { (ac_try="$ac_compile"
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_compile") 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_try") 2>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2475 GCC=`test $ac_compiler_gnu = yes && echo yes`
2476 ac_test_CFLAGS=${CFLAGS+set}
2477 ac_save_CFLAGS=$CFLAGS
2478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_cc_g+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 ac_save_c_werror_flag=$ac_c_werror_flag
2484 ac_c_werror_flag=yes
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2502 rm -f conftest.$ac_objext
2503 if { (ac_try="$ac_compile"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>conftest.er1
2511 grep -v '^ *+' conftest.er1 >conftest.err
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2566 grep -v '^ *+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 ac_c_werror_flag=$ac_save_c_werror_flag
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>conftest.er1
2622 grep -v '^ *+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_try") 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_try") 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 ac_c_werror_flag=$ac_save_c_werror_flag
2664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2666 if test "$ac_test_CFLAGS" = set; then
2667 CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669 if test "$GCC" = yes; then
2675 if test "$GCC" = yes; then
2681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_c89+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 ac_cv_prog_cc_c89=no
2688 cat >conftest.$ac_ext <<_ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2712 s = g (p, va_arg (v,int));
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2718 function prototypes and stuff, but not '\xHH' hex character constants.
2719 These don't provoke an error unfortunately, instead are silently treated
2720 as 'x'. The following induces an error, until -std is added to get
2721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2722 array size at least. It's necessary to write '\x00'==0 to get something
2723 that's true only with -std. */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727 inside strings and character constants. */
2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2731 int test (int i, double x);
2732 struct s1 {int (*f) (int a);};
2733 struct s2 {int (*f) (double a);};
2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2740 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2748 CC="$ac_save_CC $ac_arg"
2749 rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compile") 2>conftest.er1
2758 grep -v '^ *+' conftest.er1 >conftest.err
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2764 { (case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_try") 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_try") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 ac_cv_prog_cc_c89=$ac_arg
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2791 rm -f core conftest.err conftest.$ac_objext
2792 test "x$ac_cv_prog_cc_c89" != "xno" && break
2794 rm -f conftest.$ac_ext
2799 case "x$ac_cv_prog_cc_c89" in
2801 { echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6; } ;;
2804 { echo "$as_me:$LINENO: result: unsupported" >&5
2805 echo "${ECHO_T}unsupported" >&6; } ;;
2807 CC="$CC $ac_cv_prog_cc_c89"
2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820 ac_cpp='$CXXCPP $CPPFLAGS'
2821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2824 if test -z "$CXX"; then
2825 if test -n "$CCC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 for ac_prog in clang++ g++
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_CXX+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$CXX"; then
2839 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 if test -n "$CXX"; then
2860 { echo "$as_me:$LINENO: result: $CXX" >&5
2861 echo "${ECHO_T}$CXX" >&6; }
2863 { echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6; }
2868 test -n "$CXX" && break
2871 if test -z "$CXX"; then
2873 for ac_prog in clang++ g++
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$ac_ct_CXX"; then
2883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_ac_ct_CXX="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2903 if test -n "$ac_ct_CXX"; then
2904 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2905 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2912 test -n "$ac_ct_CXX" && break
2915 if test "x$ac_ct_CXX" = x; then
2918 case $cross_compiling:$ac_tool_warned in
2920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2921 whose name does not start with the host triplet. If you think this
2922 configuration is useful to you, please write to autoconf@gnu.org." >&5
2923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2924 whose name does not start with the host triplet. If you think this
2925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2926 ac_tool_warned=yes ;;
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2936 ac_compiler=`set X $ac_compile; echo $2`
2937 { (ac_try="$ac_compiler --version >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler --version >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (ac_try="$ac_compiler -v >&5"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -v >&5") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957 { (ac_try="$ac_compiler -V >&5"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compiler -V >&5") 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }
2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2969 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2970 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; }; then
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3037 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3039 GXX=`test $ac_compiler_gnu = yes && echo yes`
3040 ac_test_CXXFLAGS=${CXXFLAGS+set}
3041 ac_save_CXXFLAGS=$CXXFLAGS
3042 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3043 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_cxx_g+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3048 ac_cxx_werror_flag=yes
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_cv_prog_cxx_g=yes
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_try") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 ac_cv_prog_cxx_g=yes
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3229 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3230 if test "$ac_test_CXXFLAGS" = set; then
3231 CXXFLAGS=$ac_save_CXXFLAGS
3232 elif test $ac_cv_prog_cxx_g = yes; then
3233 if test "$GXX" = yes; then
3239 if test "$GXX" = yes; then
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3257 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3258 # On Suns, sometimes $CPP names a directory.
3259 if test -n "$CPP" && test -d "$CPP"; then
3262 if test -z "$CPP"; then
3263 if test "${ac_cv_prog_CPP+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 # Double quotes because CPP needs to be expanded
3267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3270 for ac_c_preproc_warn_flag in '' yes
3272 # Use a header file that comes with gcc, so configuring glibc
3273 # with a fresh cross-compiler works.
3274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3275 # <limits.h> exists even on freestanding compilers.
3276 # On the NeXT, cc -E runs the code through the compiler's parser,
3277 # not just through cpp. "Syntax error" is here to catch this case.
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3285 # include <limits.h>
3287 # include <assert.h>
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3313 if test -z "$ac_cpp_err"; then
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Broken: fails on valid input.
3323 rm -f conftest.err conftest.$ac_ext
3325 # OK, works on sane cases. Now check whether nonexistent headers
3326 # can be detected and how.
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #include <ac_nonexistent.h>
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 if test -z "$ac_cpp_err"; then
3358 # Broken: success on invalid input.
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 # Passes both tests.
3369 rm -f conftest.err conftest.$ac_ext
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3386 { echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6; }
3389 for ac_c_preproc_warn_flag in '' yes
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3404 # include <limits.h>
3406 # include <assert.h>
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418 grep -v '^ *+' conftest.er1 >conftest.err
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 if test -z "$ac_cpp_err"; then
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Broken: fails on valid input.
3442 rm -f conftest.err conftest.$ac_ext
3444 # OK, works on sane cases. Now check whether nonexistent headers
3445 # can be detected and how.
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 if test -z "$ac_cpp_err"; then
3477 # Broken: success on invalid input.
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 # Passes both tests.
3488 rm -f conftest.err conftest.$ac_ext
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3496 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details." >&5
3498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." >&2;}
3500 { (exit 1); exit 1; }; }
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 if test "$CXX" = "clang++" ; then
3511 { echo "$as_me:$LINENO: checking whether clang works" >&5
3512 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3514 ac_cpp='$CXXCPP $CPPFLAGS'
3515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3527 #if __has_include (<cxxabi.h>)
3530 #if __has_include (<unwind.h>)
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } &&
3556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_try") 2>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3577 { echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6; }
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3585 { echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6; }
3587 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3588 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3589 { (exit 1); exit 1; }; }
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3603 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3605 ac_cpp='$CXXCPP $CPPFLAGS'
3606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3610 llvm_cv_cxx_compiler=unknown
3611 cat >conftest.$ac_ext <<_ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3631 grep -v '^ *+' conftest.er1 >conftest.err
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652 (eval "$ac_try") 2>&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 llvm_cv_cxx_compiler=clang
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3681 grep -v '^ *+' conftest.er1 >conftest.err
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } &&
3686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3687 { (case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; } &&
3696 { ac_try='test -s conftest.$ac_objext'
3697 { (case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_try") 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 llvm_cv_cxx_compiler=gcc
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3725 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3729 if test -d ${srcdir}/projects/test-suite ; then
3730 subdirs="$subdirs projects/test-suite"
3734 if test -d ${srcdir}/projects/llvm-test ; then
3735 subdirs="$subdirs projects/llvm-test"
3739 if test -d ${srcdir}/projects/poolalloc ; then
3740 subdirs="$subdirs projects/poolalloc"
3744 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3745 subdirs="$subdirs projects/llvm-poolalloc"
3749 for i in `ls ${srcdir}/projects`
3751 if test -d ${srcdir}/projects/${i} ; then
3753 safecode) subdirs="$subdirs projects/safecode"
3761 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3762 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3768 # Check whether --enable-polly was given.
3769 if test "${enable_polly+set}" = set; then
3770 enableval=$enable_polly;
3775 case "$enableval" in
3780 default) ENABLE_POLLY=1
3782 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3783 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3784 { (exit 1); exit 1; }; } ;;
3788 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3791 subdirs="$subdirs tools/polly"
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800 { (exit 1); exit 1; }; }
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 ac_build_alias=$build_alias
3808 test "x$ac_build_alias" = x &&
3809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x &&
3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813 { (exit 1); exit 1; }; }
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826 { (exit 1); exit 1; }; };;
3829 ac_save_IFS=$IFS; IFS='-'
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test "x$host_alias" = x; then
3848 ac_cv_host=$ac_cv_build
3850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863 { (exit 1); exit 1; }; };;
3866 ac_save_IFS=$IFS; IFS='-'
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3879 { echo "$as_me:$LINENO: checking target system type" >&5
3880 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3881 if test "${ac_cv_target+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 if test "x$target_alias" = x; then
3885 ac_cv_target=$ac_cv_host
3887 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3888 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3889 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3890 { (exit 1); exit 1; }; }
3894 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3895 echo "${ECHO_T}$ac_cv_target" >&6; }
3896 case $ac_cv_target in
3898 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3899 echo "$as_me: error: invalid value of canonical target" >&2;}
3900 { (exit 1); exit 1; }; };;
3902 target=$ac_cv_target
3903 ac_save_IFS=$IFS; IFS='-'
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3913 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3916 # The aliases save the names the user supplied, while $host etc.
3917 # will get canonicalized.
3918 test -n "$target_alias" &&
3919 test "$program_prefix$program_suffix$program_transform_name" = \
3921 program_prefix=${target_alias}-
3923 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3924 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3925 if test "${llvm_cv_os_type+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 llvm_cv_link_all_option="-Wl,--whole-archive"
3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932 llvm_cv_os_type="AIX"
3933 llvm_cv_platform_type="Unix" ;;
3935 llvm_cv_link_all_option="-Wl,--whole-archive"
3936 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937 llvm_cv_os_type="IRIX"
3938 llvm_cv_platform_type="Unix" ;;
3940 llvm_cv_link_all_option="-Wl,--whole-archive"
3941 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942 llvm_cv_os_type="Cygwin"
3943 llvm_cv_platform_type="Unix" ;;
3945 llvm_cv_link_all_option="-Wl,-all_load"
3946 llvm_cv_no_link_all_option="-Wl,-noall_load"
3947 llvm_cv_os_type="Darwin"
3948 llvm_cv_platform_type="Unix" ;;
3950 llvm_cv_link_all_option="-Wl,-all_load"
3951 llvm_cv_no_link_all_option="-Wl,-noall_load"
3952 llvm_cv_os_type="Minix"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="FreeBSD"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="GNU/kFreeBSD"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="OpenBSD"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="NetBSD"
3973 llvm_cv_platform_type="Unix" ;;
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="DragonFly"
3978 llvm_cv_platform_type="Unix" ;;
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="HP-UX"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="Interix"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="Linux"
3993 llvm_cv_platform_type="Unix" ;;
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="GNU"
3998 llvm_cv_platform_type="Unix" ;;
4000 llvm_cv_link_all_option="-Wl,-z,allextract"
4001 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4002 llvm_cv_os_type="SunOS"
4003 llvm_cv_platform_type="Unix" ;;
4005 llvm_cv_link_all_option="-Wl,-z,allextract"
4006 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4007 llvm_cv_os_type="AuroraUX"
4008 llvm_cv_platform_type="Unix" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Win32"
4013 llvm_cv_platform_type="Win32" ;;
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="MingW"
4018 llvm_cv_platform_type="Win32" ;;
4020 llvm_cv_link_all_option="-Wl,--whole-archive"
4021 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022 llvm_cv_os_type="Haiku"
4023 llvm_cv_platform_type="Unix" ;;
4025 llvm_cv_link_all_option="-Wl,--whole-archive"
4026 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4027 llvm_cv_os_type="Freestanding"
4028 llvm_cv_platform_type="Unix" ;;
4030 llvm_cv_link_all_option="-Wl,--whole-archive"
4031 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032 llvm_cv_os_type="Freestanding"
4033 llvm_cv_platform_type="Unix" ;;
4035 llvm_cv_link_all_option=""
4036 llvm_cv_no_link_all_option=""
4037 llvm_cv_os_type="Unknown"
4038 llvm_cv_platform_type="Unknown" ;;
4041 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4042 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4044 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4045 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4046 if test "${llvm_cv_target_os_type+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 llvm_cv_target_os_type="AIX" ;;
4053 llvm_cv_target_os_type="IRIX" ;;
4055 llvm_cv_target_os_type="Cygwin" ;;
4057 llvm_cv_target_os_type="Darwin" ;;
4059 llvm_cv_target_os_type="Minix" ;;
4061 llvm_cv_target_os_type="FreeBSD" ;;
4063 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4065 llvm_cv_target_os_type="OpenBSD" ;;
4067 llvm_cv_target_os_type="NetBSD" ;;
4069 llvm_cv_target_os_type="DragonFly" ;;
4071 llvm_cv_target_os_type="HP-UX" ;;
4073 llvm_cv_target_os_type="Interix" ;;
4075 llvm_cv_target_os_type="Linux" ;;
4077 llvm_cv_target_os_type="GNU" ;;
4079 llvm_cv_target_os_type="SunOS" ;;
4081 llvm_cv_target_os_type="AuroraUX" ;;
4083 llvm_cv_target_os_type="Win32" ;;
4085 llvm_cv_target_os_type="MingW" ;;
4087 llvm_cv_target_os_type="Haiku" ;;
4089 llvm_cv_target_os_type="RTEMS" ;;
4091 llvm_cv_target_os_type="NativeClient" ;;
4093 llvm_cv_target_os_type="Freestanding" ;;
4095 llvm_cv_target_os_type="Unknown" ;;
4098 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4099 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4101 if test "$llvm_cv_os_type" = "Unknown" ; then
4102 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4103 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4104 { (exit 1); exit 1; }; }
4109 HOST_OS=$llvm_cv_os_type
4111 TARGET_OS=$llvm_cv_target_os_type
4114 LINKALL=$llvm_cv_link_all_option
4116 NOLINKALL=$llvm_cv_no_link_all_option
4119 case $llvm_cv_platform_type in
4122 cat >>confdefs.h <<\_ACEOF
4123 #define LLVM_ON_UNIX 1
4133 cat >>confdefs.h <<\_ACEOF
4134 #define LLVM_ON_WIN32 1
4144 { echo "$as_me:$LINENO: checking target architecture" >&5
4145 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4146 if test "${llvm_cv_target_arch+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 i?86-*) llvm_cv_target_arch="x86" ;;
4151 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4152 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4153 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4154 arm64*-*) llvm_cv_target_arch="ARM64" ;;
4155 arm*-*) llvm_cv_target_arch="ARM" ;;
4156 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4157 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4158 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4159 xcore-*) llvm_cv_target_arch="XCore" ;;
4160 msp430-*) llvm_cv_target_arch="MSP430" ;;
4161 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4162 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4163 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4164 *) llvm_cv_target_arch="Unknown" ;;
4167 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4168 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4170 if test "$llvm_cv_target_arch" = "Unknown" ; then
4171 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4172 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4175 case "$llvm_cv_target_arch" in
4176 x86) LLVM_NATIVE_ARCH="X86" ;;
4177 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4178 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4181 ARCH=$llvm_cv_target_arch
4183 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4187 i?86-*) host_arch="x86" ;;
4188 amd64-* | x86_64-*) host_arch="x86_64" ;;
4189 sparc*-*) host_arch="Sparc" ;;
4190 powerpc*-*) host_arch="PowerPC" ;;
4191 arm64*-*) host_arch="ARM64" ;;
4192 arm*-*) host_arch="ARM" ;;
4193 aarch64*-*) host_arch="AArch64" ;;
4194 mips-* | mips64-*) host_arch="Mips" ;;
4195 mipsel-* | mips64el-*) host_arch="Mips" ;;
4196 xcore-*) host_arch="XCore" ;;
4197 msp430-*) host_arch="MSP430" ;;
4198 hexagon-*) host_arch="Hexagon" ;;
4199 s390x-*) host_arch="SystemZ" ;;
4200 *) host_arch="Unknown" ;;
4203 if test "$host_arch" = "Unknown" ; then
4204 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4205 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4208 HOST_ARCH=$host_arch
4211 if test "$cross_compiling" = yes; then
4212 LLVM_CROSS_COMPILING=1
4215 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4216 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4217 if test "${ac_cv_build_exeext+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4221 ac_cv_build_exeext=.exe
4223 ac_build_prefix=${build_alias}-
4225 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4226 set dummy ${ac_build_prefix}gcc; ac_word=$2
4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test -n "$BUILD_CC"; then
4233 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 BUILD_CC=$ac_cv_prog_BUILD_CC
4253 if test -n "$BUILD_CC"; then
4254 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4255 echo "${ECHO_T}$BUILD_CC" >&6; }
4257 { echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6; }
4262 if test -z "$BUILD_CC"; then
4263 # Extract the first word of "gcc", so it can be a program name with args.
4264 set dummy gcc; ac_word=$2
4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 if test -n "$BUILD_CC"; then
4271 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_BUILD_CC="gcc"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 BUILD_CC=$ac_cv_prog_BUILD_CC
4291 if test -n "$BUILD_CC"; then
4292 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4293 echo "${ECHO_T}$BUILD_CC" >&6; }
4295 { echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6; }
4300 if test -z "$BUILD_CC"; then
4301 # Extract the first word of "cc", so it can be a program name with args.
4302 set dummy cc; ac_word=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$BUILD_CC"; then
4309 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4320 ac_prog_rejected=yes
4323 ac_cv_prog_BUILD_CC="cc"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 if test $ac_prog_rejected = yes; then
4332 # We found a bogon in the path, so make sure we never use it.
4333 set dummy $ac_cv_prog_BUILD_CC
4335 if test $# != 0; then
4336 # We chose a different compiler from the bogus one.
4337 # However, it has the same basename, so the bogon will be chosen
4338 # first if we set BUILD_CC to just the basename; use the full file name.
4340 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4345 BUILD_CC=$ac_cv_prog_BUILD_CC
4346 if test -n "$BUILD_CC"; then
4347 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4348 echo "${ECHO_T}$BUILD_CC" >&6; }
4350 { echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6; }
4357 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4358 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4359 { (exit 1); exit 1; }; }
4360 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4362 echo 'int main () { return 0; }' > conftest.$ac_ext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4365 (eval $ac_build_link) 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; then
4369 for file in conftest.*; do
4371 *.c | *.o | *.obj | *.dSYM) ;;
4372 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4376 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4377 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4378 { (exit 1); exit 1; }; }
4381 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4386 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4387 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4388 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4389 ac_build_exeext=$BUILD_EXEEXT
4391 ac_build_prefix=${build_alias}-
4392 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4393 set dummy ${ac_build_prefix}g++; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$BUILD_CXX"; then
4400 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4420 if test -n "$BUILD_CXX"; then
4421 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4422 echo "${ECHO_T}$BUILD_CXX" >&6; }
4424 { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4429 if test -z "$BUILD_CXX"; then
4430 # Extract the first word of "g++", so it can be a program name with args.
4431 set dummy g++; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$BUILD_CXX"; then
4438 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_BUILD_CXX="g++"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4458 if test -n "$BUILD_CXX"; then
4459 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4460 echo "${ECHO_T}$BUILD_CXX" >&6; }
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4467 if test -z "$BUILD_CXX"; then
4468 # Extract the first word of "c++", so it can be a program name with args.
4469 set dummy c++; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$BUILD_CXX"; then
4476 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4487 ac_prog_rejected=yes
4490 ac_cv_prog_BUILD_CXX="c++"
4491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 if test $ac_prog_rejected = yes; then
4499 # We found a bogon in the path, so make sure we never use it.
4500 set dummy $ac_cv_prog_BUILD_CXX
4502 if test $# != 0; then
4503 # We chose a different compiler from the bogus one.
4504 # However, it has the same basename, so the bogon will be chosen
4505 # first if we set BUILD_CXX to just the basename; use the full file name.
4507 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4512 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4513 if test -n "$BUILD_CXX"; then
4514 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4515 echo "${ECHO_T}$BUILD_CXX" >&6; }
4517 { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4525 LLVM_CROSS_COMPILING=0
4529 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4540 # Check whether --enable-libcpp was given.
4541 if test "${enable_libcpp+set}" = set; then
4542 enableval=$enable_libcpp;
4547 case "$enableval" in
4548 yes) ENABLE_LIBCPP=1
4552 default) ENABLE_LIBCPP=0
4554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4555 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4556 { (exit 1); exit 1; }; } ;;
4559 # Check whether --enable-compiler-version-checks was given.
4560 if test "${enable_compiler_version_checks+set}" = set; then
4561 enableval=$enable_compiler_version_checks;
4566 case "$enableval" in
4571 ac_cpp='$CXXCPP $CPPFLAGS'
4572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4576 case "$llvm_cv_cxx_compiler" in
4578 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4579 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4580 cat >conftest.$ac_ext <<_ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4587 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4588 #error This version of Clang is too old to build LLVM
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_compile") 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_try") 2>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 { echo "$as_me:$LINENO: result: yes" >&5
4627 echo "${ECHO_T}yes" >&6; }
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4634 { { echo "$as_me:$LINENO: error:
4635 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4636 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4637 bypass these sanity checks." >&5
4638 echo "$as_me: error:
4639 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4640 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4641 bypass these sanity checks." >&2;}
4642 { (exit 1); exit 1; }; }
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 if test "$ENABLE_LIBCPP" -eq 0 ; then
4648 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4649 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4650 llvm_cv_old_cxxflags="$CXXFLAGS"
4651 CXXFLAGS="$CXXFLAGS -std=c++0x"
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4660 std::atomic<float> x(0.0f);
4661 int main() { return (float)x; }
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (ac_try="$ac_link"
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_link") 2>conftest.er1
4673 grep -v '^ *+' conftest.er1 >conftest.err
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4679 { (case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_try") 2>&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try='test -s conftest$ac_exeext'
4689 { (case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_try") 2>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 { echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6; }
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4706 { { echo "$as_me:$LINENO: error:
4707 We detected a missing feature in the standard C++ library that was known to be
4708 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4709 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4710 than 4.7. You will need to update your system and ensure Clang uses the newer
4713 If this error is incorrect or you need to force things to work, you may pass
4714 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4715 echo "$as_me: error:
4716 We detected a missing feature in the standard C++ library that was known to be
4717 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4718 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4719 than 4.7. You will need to update your system and ensure Clang uses the newer
4722 If this error is incorrect or you need to force things to work, you may pass
4723 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4724 { (exit 1); exit 1; }; }
4727 rm -f core conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4729 CXXFLAGS="$llvm_cv_old_cxxflags"
4733 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4734 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4735 cat >conftest.$ac_ext <<_ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4742 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4743 #error This version of GCC is too old to build LLVM
4747 rm -f conftest.$ac_objext
4748 if { (ac_try="$ac_compile"
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_compile") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4762 { (case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_try") 2>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_try") 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 { echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6; }
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 { echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6; }
4789 { { echo "$as_me:$LINENO: error:
4790 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4791 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4792 bypass these sanity checks." >&5
4793 echo "$as_me: error:
4794 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4795 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4796 bypass these sanity checks." >&2;}
4797 { (exit 1); exit 1; }; }
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_cpp='$CPP $CPPFLAGS'
4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4814 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4815 { (exit 1); exit 1; }; }
4819 # Check whether --enable-cxx1y was given.
4820 if test "${enable_cxx1y+set}" = set; then
4821 enableval=$enable_cxx1y;
4826 case "$enableval" in
4831 default) ENABLE_CXX1Y=0
4833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4835 { (exit 1); exit 1; }; } ;;
4838 # Check whether --enable-split-dwarf was given.
4839 if test "${enable_split_dwarf+set}" = set; then
4840 enableval=$enable_split_dwarf;
4845 case "$enableval" in
4846 yes) ENABLE_SPLIT_DWARF=1
4848 no) ENABLE_SPLIT_DWARF=0
4850 default) ENABLE_SPLIT_DWARF=0
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4858 # Check whether --enable-clang-arcmt was given.
4859 if test "${enable_clang_arcmt+set}" = set; then
4860 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4865 case "$enableval" in
4866 yes) ENABLE_CLANG_ARCMT=1
4868 no) ENABLE_CLANG_ARCMT=0
4870 default) ENABLE_CLANG_ARCMT=1
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4877 clang_plugin_support="yes"
4878 # Check whether --enable-clang-plugin-support was given.
4879 if test "${enable_clang_plugin_support+set}" = set; then
4880 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4885 case "$enableval" in
4886 yes) CLANG_PLUGIN_SUPPORT=1
4888 no) CLANG_PLUGIN_SUPPORT=0
4890 default) CLANG_PLUGIN_SUPPORT=1
4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4897 clang_static_analyzer="yes"
4898 # Check whether --enable-clang-static-analyzer was given.
4899 if test "${enable_clang_static_analyzer+set}" = set; then
4900 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4905 case "$enableval" in
4906 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4909 if test ${clang_arcmt} != "no" ; then
4910 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4911 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4912 { (exit 1); exit 1; }; }
4914 ENABLE_CLANG_STATIC_ANALYZER=0
4917 default) ENABLE_CLANG_STATIC_ANALYZER=1
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4924 # Check whether --enable-clang-rewriter was given.
4925 if test "${enable_clang_rewriter+set}" = set; then
4926 enableval=$enable_clang_rewriter;
4931 case "$enableval" in
4932 yes) ENABLE_CLANG_REWRITER=1
4935 if test ${clang_arcmt} != "no" ; then
4936 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4937 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4938 { (exit 1); exit 1; }; }
4940 if test ${clang_static_analyzer} != "no" ; then
4941 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4942 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4943 { (exit 1); exit 1; }; }
4945 ENABLE_CLANG_REWRITER=0
4948 default) ENABLE_CLANG_REWRITER=1
4950 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4951 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4952 { (exit 1); exit 1; }; } ;;
4955 # Check whether --enable-optimized was given.
4956 if test "${enable_optimized+set}" = set; then
4957 enableval=$enable_optimized;
4962 if test ${enableval} = "no" ; then
4966 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4970 # Check whether --enable-profiling was given.
4971 if test "${enable_profiling+set}" = set; then
4972 enableval=$enable_profiling;
4977 if test ${enableval} = "no" ; then
4981 ENABLE_PROFILING=ENABLE_PROFILING=1
4985 # Check whether --enable-assertions was given.
4986 if test "${enable_assertions+set}" = set; then
4987 enableval=$enable_assertions;
4992 if test ${enableval} = "yes" ; then
4996 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5000 # Check whether --enable-werror was given.
5001 if test "${enable_werror+set}" = set; then
5002 enableval=$enable_werror;
5007 case "$enableval" in
5008 yes) ENABLE_WERROR=1
5012 default) ENABLE_WERROR=0
5014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5015 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5016 { (exit 1); exit 1; }; } ;;
5019 # Check whether --enable-expensive-checks was given.
5020 if test "${enable_expensive_checks+set}" = set; then
5021 enableval=$enable_expensive_checks;
5026 if test ${enableval} = "yes" ; then
5027 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5029 EXPENSIVE_CHECKS=yes
5032 ENABLE_EXPENSIVE_CHECKS=
5038 # Check whether --enable-debug-runtime was given.
5039 if test "${enable_debug_runtime+set}" = set; then
5040 enableval=$enable_debug_runtime;
5045 if test ${enableval} = "no" ; then
5049 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5053 # Check whether --enable-debug-symbols was given.
5054 if test "${enable_debug_symbols+set}" = set; then
5055 enableval=$enable_debug_symbols;
5060 if test ${enableval} = "no" ; then
5064 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5068 # Check whether --enable-keep-symbols was given.
5069 if test "${enable_keep_symbols+set}" = set; then
5070 enableval=$enable_keep_symbols;
5075 if test ${enableval} = "no" ; then
5079 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085 enableval=$enable_jit;
5090 if test ${enableval} = "no"
5095 case "$llvm_cv_target_arch" in
5096 x86) TARGET_HAS_JIT=1
5098 Sparc) TARGET_HAS_JIT=0
5100 PowerPC) TARGET_HAS_JIT=1
5102 x86_64) TARGET_HAS_JIT=1
5104 ARM) TARGET_HAS_JIT=1
5106 AArch64) TARGET_HAS_JIT=0
5108 Mips) TARGET_HAS_JIT=1
5110 XCore) TARGET_HAS_JIT=0
5112 MSP430) TARGET_HAS_JIT=0
5114 Hexagon) TARGET_HAS_JIT=0
5116 NVPTX) TARGET_HAS_JIT=0
5118 SystemZ) TARGET_HAS_JIT=1
5125 TARGETS_WITH_JIT="AArch64 ARM ARM64 Mips PowerPC SystemZ X86"
5126 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5129 # Check whether --enable-docs was given.
5130 if test "${enable_docs+set}" = set; then
5131 enableval=$enable_docs;
5136 case "$enableval" in
5141 default) ENABLE_DOCS=1
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5148 # Check whether --enable-doxygen was given.
5149 if test "${enable_doxygen+set}" = set; then
5150 enableval=$enable_doxygen;
5155 case "$enableval" in
5156 yes) ENABLE_DOXYGEN=1
5158 no) ENABLE_DOXYGEN=0
5160 default) ENABLE_DOXYGEN=0
5162 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5163 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5167 # Check whether --enable-threads was given.
5168 if test "${enable_threads+set}" = set; then
5169 enableval=$enable_threads;
5174 case "$enableval" in
5175 yes) LLVM_ENABLE_THREADS=1
5177 no) LLVM_ENABLE_THREADS=0
5179 default) LLVM_ENABLE_THREADS=1
5181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
5186 cat >>confdefs.h <<_ACEOF
5187 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5191 # Check whether --enable-pthreads was given.
5192 if test "${enable_pthreads+set}" = set; then
5193 enableval=$enable_pthreads;
5198 case "$enableval" in
5199 yes) ENABLE_PTHREADS=1
5201 no) ENABLE_PTHREADS=0
5203 default) ENABLE_PTHREADS=1
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5210 # Check whether --enable-zlib was given.
5211 if test "${enable_zlib+set}" = set; then
5212 enableval=$enable_zlib;
5217 case "$enableval" in
5218 yes) LLVM_ENABLE_ZLIB=1
5220 no) LLVM_ENABLE_ZLIB=0
5222 default) LLVM_ENABLE_ZLIB=1
5224 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5229 cat >>confdefs.h <<_ACEOF
5230 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5234 # Check whether --enable-pic was given.
5235 if test "${enable_pic+set}" = set; then
5236 enableval=$enable_pic;
5241 case "$enableval" in
5246 default) ENABLE_PIC=1
5248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5250 { (exit 1); exit 1; }; } ;;
5253 cat >>confdefs.h <<_ACEOF
5254 #define ENABLE_PIC $ENABLE_PIC
5258 # Check whether --enable-shared was given.
5259 if test "${enable_shared+set}" = set; then
5260 enableval=$enable_shared;
5265 case "$enableval" in
5266 yes) ENABLE_SHARED=1
5270 default) ENABLE_SHARED=0
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5277 # Check whether --enable-embed-stdcxx was given.
5278 if test "${enable_embed_stdcxx+set}" = set; then
5279 enableval=$enable_embed_stdcxx;
5284 case "$enableval" in
5285 yes) ENABLE_EMBED_STDCXX=1
5287 no) ENABLE_EMBED_STDCXX=0
5289 default) ENABLE_EMBED_STDCXX=0
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5296 # Check whether --enable-timestamps was given.
5297 if test "${enable_timestamps+set}" = set; then
5298 enableval=$enable_timestamps;
5303 case "$enableval" in
5304 yes) ENABLE_TIMESTAMPS=1
5306 no) ENABLE_TIMESTAMPS=0
5308 default) ENABLE_TIMESTAMPS=1
5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5315 cat >>confdefs.h <<_ACEOF
5316 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5320 # Check whether --enable-backtraces was given.
5321 if test "${enable_backtraces+set}" = set; then
5322 enableval=$enable_backtraces; case "$enableval" in
5323 yes) llvm_cv_enable_backtraces="yes" ;;
5324 no) llvm_cv_enable_backtraces="no" ;;
5325 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5326 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5327 { (exit 1); exit 1; }; } ;;
5330 llvm_cv_enable_backtraces="yes"
5333 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5335 cat >>confdefs.h <<\_ACEOF
5336 #define ENABLE_BACKTRACES 1
5341 # Check whether --enable-crash-overrides was given.
5342 if test "${enable_crash_overrides+set}" = set; then
5343 enableval=$enable_crash_overrides; case "$enableval" in
5344 yes) llvm_cv_enable_crash_overrides="yes" ;;
5345 no) llvm_cv_enable_crash_overrides="no" ;;
5346 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5347 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5348 { (exit 1); exit 1; }; } ;;
5351 llvm_cv_enable_crash_overrides="yes"
5354 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5356 cat >>confdefs.h <<\_ACEOF
5357 #define ENABLE_CRASH_OVERRIDES 1
5362 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM ARM64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5363 ALL_TARGETS=$ALL_TARGETS
5367 # Check whether --enable-targets was given.
5368 if test "${enable_targets+set}" = set; then
5369 enableval=$enable_targets;
5374 if test "$enableval" = host-only ; then
5377 case "$enableval" in
5378 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5379 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5381 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5382 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5383 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5384 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5385 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5386 arm64) TARGETS_TO_BUILD="ARM64 $TARGETS_TO_BUILD" ;;
5387 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5388 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5389 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5390 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5391 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5392 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5393 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5394 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5395 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5396 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5397 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5398 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5399 host) case "$llvm_cv_target_arch" in
5400 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5401 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5402 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5403 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5404 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5405 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5406 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5407 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5408 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5409 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5410 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5411 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5412 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5413 echo "$as_me: error: Can not set target to build" >&2;}
5414 { (exit 1); exit 1; }; } ;;
5416 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5417 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5418 { (exit 1); exit 1; }; } ;;
5424 # Check whether --enable-experimental-targets was given.
5425 if test "${enable_experimental_targets+set}" = set; then
5426 enableval=$enable_experimental_targets;
5432 if test ${enableval} != "disable"
5434 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5437 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5440 for a_target in $TARGETS_TO_BUILD; do
5441 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5443 cat >>confdefs.h <<_ACEOF
5444 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5447 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5448 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5449 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5450 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5451 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5452 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5454 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5455 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5458 cat >>confdefs.h <<_ACEOF
5459 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5463 cat >>confdefs.h <<_ACEOF
5464 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5468 cat >>confdefs.h <<_ACEOF
5469 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5473 cat >>confdefs.h <<_ACEOF
5474 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5477 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5479 cat >>confdefs.h <<_ACEOF
5480 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5484 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5486 cat >>confdefs.h <<_ACEOF
5487 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5494 LLVM_ENUM_TARGETS=""
5495 LLVM_ENUM_ASM_PRINTERS=""
5496 LLVM_ENUM_ASM_PARSERS=""
5497 LLVM_ENUM_DISASSEMBLERS=""
5498 for target_to_build in $TARGETS_TO_BUILD; do
5499 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5500 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5501 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5503 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5504 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5506 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5507 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5516 # Check whether --with-optimize-option was given.
5517 if test "${with_optimize_option+set}" = set; then
5518 withval=$with_optimize_option;
5523 { echo "$as_me:$LINENO: checking optimization flags" >&5
5524 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5527 case "$llvm_cv_os_type" in
5528 FreeBSD) optimize_option=-O2 ;;
5529 MingW) optimize_option=-O2 ;;
5530 *) optimize_option=-O3 ;;
5532 *) optimize_option="$withval" ;;
5534 OPTIMIZE_OPTION=$optimize_option
5536 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5537 echo "${ECHO_T}$optimize_option" >&6; }
5540 # Check whether --with-extra-options was given.
5541 if test "${with_extra_options+set}" = set; then
5542 withval=$with_extra_options;
5548 default) EXTRA_OPTIONS= ;;
5549 *) EXTRA_OPTIONS=$withval ;;
5551 EXTRA_OPTIONS=$EXTRA_OPTIONS
5555 # Check whether --with-extra-ld-options was given.
5556 if test "${with_extra_ld_options+set}" = set; then
5557 withval=$with_extra_ld_options;
5563 default) EXTRA_LD_OPTIONS= ;;
5564 *) EXTRA_LD_OPTIONS=$withval ;;
5566 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5569 # Check whether --enable-bindings was given.
5570 if test "${enable_bindings+set}" = set; then
5571 enableval=$enable_bindings;
5576 BINDINGS_TO_BUILD=""
5577 case "$enableval" in
5578 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5579 all ) BINDINGS_TO_BUILD="ocaml" ;;
5580 none | no) BINDINGS_TO_BUILD="" ;;
5581 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5582 case "$a_binding" in
5583 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5584 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5585 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5586 { (exit 1); exit 1; }; } ;;
5593 # Check whether --with-ocaml-libdir was given.
5594 if test "${with_ocaml_libdir+set}" = set; then
5595 withval=$with_ocaml_libdir;
5601 auto) with_ocaml_libdir="$withval" ;;
5602 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5603 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5604 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5605 { (exit 1); exit 1; }; } ;;
5609 # Check whether --with-clang-srcdir was given.
5610 if test "${with_clang_srcdir+set}" = set; then
5611 withval=$with_clang_srcdir;
5617 -) clang_src_root="" ;;
5618 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5619 *) clang_src_root="$ac_pwd/$withval" ;;
5621 CLANG_SRC_ROOT=$clang_src_root
5625 # Check whether --with-clang-resource-dir was given.
5626 if test "${with_clang_resource_dir+set}" = set; then
5627 withval=$with_clang_resource_dir;
5633 cat >>confdefs.h <<_ACEOF
5634 #define CLANG_RESOURCE_DIR "$withval"
5639 # Check whether --with-c-include-dirs was given.
5640 if test "${with_c_include_dirs+set}" = set; then
5641 withval=$with_c_include_dirs;
5647 cat >>confdefs.h <<_ACEOF
5648 #define C_INCLUDE_DIRS "$withval"
5652 # Clang normally uses the system c++ headers and libraries. With this option,
5653 # clang will use the ones provided by a gcc installation instead. This option should
5654 # be passed the same value that was used with --prefix when configuring gcc.
5656 # Check whether --with-gcc-toolchain was given.
5657 if test "${with_gcc_toolchain+set}" = set; then
5658 withval=$with_gcc_toolchain;
5664 cat >>confdefs.h <<_ACEOF
5665 #define GCC_INSTALL_PREFIX "$withval"
5670 # Check whether --with-default-sysroot was given.
5671 if test "${with_default_sysroot+set}" = set; then
5672 withval=$with_default_sysroot;
5678 cat >>confdefs.h <<_ACEOF
5679 #define DEFAULT_SYSROOT "$withval"
5684 # Check whether --with-binutils-include was given.
5685 if test "${with_binutils_include+set}" = set; then
5686 withval=$with_binutils_include;
5692 default) WITH_BINUTILS_INCDIR=default ;;
5693 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5694 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5695 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5696 { (exit 1); exit 1; }; } ;;
5698 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5699 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5701 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5702 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5703 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5704 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5705 { (exit 1); exit 1; }; };
5710 # Check whether --with-bug-report-url was given.
5711 if test "${with_bug_report_url+set}" = set; then
5712 withval=$with_bug_report_url;
5714 withval="http://llvm.org/bugs/"
5718 cat >>confdefs.h <<_ACEOF
5719 #define BUG_REPORT_URL "$withval"
5723 # Check whether --enable-terminfo was given.
5724 if test "${enable_terminfo+set}" = set; then
5725 enableval=$enable_terminfo; case "$enableval" in
5726 yes) llvm_cv_enable_terminfo="yes" ;;
5727 no) llvm_cv_enable_terminfo="no" ;;
5728 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5729 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5730 { (exit 1); exit 1; }; } ;;
5733 llvm_cv_enable_terminfo="yes"
5736 case "$llvm_cv_enable_terminfo" in
5737 yes) ENABLE_TERMINFO=1
5739 no) ENABLE_TERMINFO=0
5743 # Check whether --enable-libedit was given.
5744 if test "${enable_libedit+set}" = set; then
5745 enableval=$enable_libedit; case "$enableval" in
5746 yes) llvm_cv_enable_libedit="yes" ;;
5747 no) llvm_cv_enable_libedit="no" ;;
5748 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5749 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5750 { (exit 1); exit 1; }; } ;;
5753 llvm_cv_enable_libedit="yes"
5757 # Check whether --enable-libffi was given.
5758 if test "${enable_libffi+set}" = set; then
5759 enableval=$enable_libffi; case "$enableval" in
5760 yes) llvm_cv_enable_libffi="yes" ;;
5761 no) llvm_cv_enable_libffi="no" ;;
5762 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5763 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5764 { (exit 1); exit 1; }; } ;;
5767 llvm_cv_enable_libffi=no
5772 # Check whether --with-internal-prefix was given.
5773 if test "${with_internal_prefix+set}" = set; then
5774 withval=$with_internal_prefix;
5779 INTERNAL_PREFIX=$withval
5783 { echo "$as_me:$LINENO: checking for GNU make" >&5
5784 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5785 if test "${llvm_cv_gnu_make_command+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 llvm_cv_gnu_make_command=''
5789 for a in "$MAKE" make gmake gnumake ; do
5790 if test -z "$a" ; then continue ; fi ;
5791 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5793 llvm_cv_gnu_make_command=$a ;
5798 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5799 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5800 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5804 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5805 echo "${ECHO_T}\"Not found\"" >&6; };
5809 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5810 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5812 if test "$LN_S" = "ln -s"; then
5813 { echo "$as_me:$LINENO: result: yes" >&5
5814 echo "${ECHO_T}yes" >&6; }
5816 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5817 echo "${ECHO_T}no, using $LN_S" >&6; }
5820 # Extract the first word of "nm", so it can be a program name with args.
5821 set dummy nm; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_NM+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5852 if test -n "$NM"; then
5853 { echo "$as_me:$LINENO: result: $NM" >&5
5854 echo "${ECHO_T}$NM" >&6; }
5856 { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5861 # Extract the first word of "cmp", so it can be a program name with args.
5862 set dummy cmp; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_CMP+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5893 if test -n "$CMP"; then
5894 { echo "$as_me:$LINENO: result: $CMP" >&5
5895 echo "${ECHO_T}$CMP" >&6; }
5897 { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5902 # Extract the first word of "cp", so it can be a program name with args.
5903 set dummy cp; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_CP+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5934 if test -n "$CP"; then
5935 { echo "$as_me:$LINENO: result: $CP" >&5
5936 echo "${ECHO_T}$CP" >&6; }
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5943 # Extract the first word of "date", so it can be a program name with args.
5944 set dummy date; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_path_DATE+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5974 DATE=$ac_cv_path_DATE
5975 if test -n "$DATE"; then
5976 { echo "$as_me:$LINENO: result: $DATE" >&5
5977 echo "${ECHO_T}$DATE" >&6; }
5979 { echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6; }
5984 # Extract the first word of "find", so it can be a program name with args.
5985 set dummy find; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_path_FIND+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6015 FIND=$ac_cv_path_FIND
6016 if test -n "$FIND"; then
6017 { echo "$as_me:$LINENO: result: $FIND" >&5
6018 echo "${ECHO_T}$FIND" >&6; }
6020 { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6025 # Extract the first word of "grep", so it can be a program name with args.
6026 set dummy grep; ac_word=$2
6027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029 if test "${ac_cv_path_GREP+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6056 GREP=$ac_cv_path_GREP
6057 if test -n "$GREP"; then
6058 { echo "$as_me:$LINENO: result: $GREP" >&5
6059 echo "${ECHO_T}$GREP" >&6; }
6061 { echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6; }
6066 # Extract the first word of "mkdir", so it can be a program name with args.
6067 set dummy mkdir; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_path_MKDIR+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6097 MKDIR=$ac_cv_path_MKDIR
6098 if test -n "$MKDIR"; then
6099 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6100 echo "${ECHO_T}$MKDIR" >&6; }
6102 { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6107 # Extract the first word of "mv", so it can be a program name with args.
6108 set dummy mv; ac_word=$2
6109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111 if test "${ac_cv_path_MV+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6139 if test -n "$MV"; then
6140 { echo "$as_me:$LINENO: result: $MV" >&5
6141 echo "${ECHO_T}$MV" >&6; }
6143 { echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6; }
6148 if test -n "$ac_tool_prefix"; then
6149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6153 if test "${ac_cv_prog_RANLIB+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 if test -n "$RANLIB"; then
6157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 RANLIB=$ac_cv_prog_RANLIB
6177 if test -n "$RANLIB"; then
6178 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6179 echo "${ECHO_T}$RANLIB" >&6; }
6181 { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6187 if test -z "$ac_cv_prog_RANLIB"; then
6188 ac_ct_RANLIB=$RANLIB
6189 # Extract the first word of "ranlib", so it can be a program name with args.
6190 set dummy ranlib; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 if test -n "$ac_ct_RANLIB"; then
6197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_prog_ac_ct_RANLIB="ranlib"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6217 if test -n "$ac_ct_RANLIB"; then
6218 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6219 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6221 { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6225 if test "x$ac_ct_RANLIB" = x; then
6228 case $cross_compiling:$ac_tool_warned in
6230 { echo "$as_me:$LINENO: 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." >&5
6233 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6234 whose name does not start with the host triplet. If you think this
6235 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6236 ac_tool_warned=yes ;;
6238 RANLIB=$ac_ct_RANLIB
6241 RANLIB="$ac_cv_prog_RANLIB"
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}ar; ac_word=$2
6247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249 if test "${ac_cv_prog_AR+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 if test -n "$AR"; then
6253 ac_cv_prog_AR="$AR" # Let the user override the test.
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_AR="${ac_tool_prefix}ar"
6263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 if test -n "$AR"; then
6274 { echo "$as_me:$LINENO: result: $AR" >&5
6275 echo "${ECHO_T}$AR" >&6; }
6277 { echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6; }
6283 if test -z "$ac_cv_prog_AR"; then
6285 # Extract the first word of "ar", so it can be a program name with args.
6286 set dummy ar; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 if test -n "$ac_ct_AR"; then
6293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_AR="ar"
6303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6313 if test -n "$ac_ct_AR"; then
6314 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6315 echo "${ECHO_T}$ac_ct_AR" >&6; }
6317 { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6321 if test "x$ac_ct_AR" = x; then
6324 case $cross_compiling:$ac_tool_warned in
6326 { echo "$as_me:$LINENO: 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." >&5
6329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet. If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6332 ac_tool_warned=yes ;;
6340 # Extract the first word of "rm", so it can be a program name with args.
6341 set dummy rm; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_path_RM+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6372 if test -n "$RM"; then
6373 { echo "$as_me:$LINENO: result: $RM" >&5
6374 echo "${ECHO_T}$RM" >&6; }
6376 { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6381 # Extract the first word of "sed", so it can be a program name with args.
6382 set dummy sed; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_path_SED+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6413 if test -n "$SED"; then
6414 { echo "$as_me:$LINENO: result: $SED" >&5
6415 echo "${ECHO_T}$SED" >&6; }
6417 { echo "$as_me:$LINENO: result: no" >&5
6418 echo "${ECHO_T}no" >&6; }
6422 # Extract the first word of "tar", so it can be a program name with args.
6423 set dummy tar; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_path_TAR+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6454 if test -n "$TAR"; then
6455 { echo "$as_me:$LINENO: result: $TAR" >&5
6456 echo "${ECHO_T}$TAR" >&6; }
6458 { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6463 # Extract the first word of "pwd", so it can be a program name with args.
6464 set dummy pwd; ac_word=$2
6465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467 if test "${ac_cv_path_BINPWD+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6494 BINPWD=$ac_cv_path_BINPWD
6495 if test -n "$BINPWD"; then
6496 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6497 echo "${ECHO_T}$BINPWD" >&6; }
6499 { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6505 # Extract the first word of "Graphviz", so it can be a program name with args.
6506 set dummy Graphviz; ac_word=$2
6507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6509 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6536 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6537 if test -n "$GRAPHVIZ"; then
6538 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6539 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6546 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6548 cat >>confdefs.h <<\_ACEOF
6549 #define HAVE_GRAPHVIZ 1
6552 if test "$llvm_cv_os_type" = "MingW" ; then
6553 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6556 cat >>confdefs.h <<_ACEOF
6557 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6561 # Extract the first word of "dot", so it can be a program name with args.
6562 set dummy dot; ac_word=$2
6563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565 if test "${ac_cv_path_DOT+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6593 if test -n "$DOT"; then
6594 { echo "$as_me:$LINENO: result: $DOT" >&5
6595 echo "${ECHO_T}$DOT" >&6; }
6597 { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6602 if test "$DOT" != "echo dot" ; then
6604 cat >>confdefs.h <<\_ACEOF
6608 if test "$llvm_cv_os_type" = "MingW" ; then
6609 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6612 cat >>confdefs.h <<_ACEOF
6613 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6617 # Extract the first word of "fdp", so it can be a program name with args.
6618 set dummy fdp; ac_word=$2
6619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 if test "${ac_cv_path_FDP+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6636 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6649 if test -n "$FDP"; then
6650 { echo "$as_me:$LINENO: result: $FDP" >&5
6651 echo "${ECHO_T}$FDP" >&6; }
6653 { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6658 if test "$FDP" != "echo fdp" ; then
6660 cat >>confdefs.h <<\_ACEOF
6664 if test "$llvm_cv_os_type" = "MingW" ; then
6665 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6668 cat >>confdefs.h <<_ACEOF
6669 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6673 # Extract the first word of "neato", so it can be a program name with args.
6674 set dummy neato; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_path_NEATO+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6704 NEATO=$ac_cv_path_NEATO
6705 if test -n "$NEATO"; then
6706 { echo "$as_me:$LINENO: result: $NEATO" >&5
6707 echo "${ECHO_T}$NEATO" >&6; }
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6714 if test "$NEATO" != "echo neato" ; then
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_NEATO 1
6720 if test "$llvm_cv_os_type" = "MingW" ; then
6721 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6724 cat >>confdefs.h <<_ACEOF
6725 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6729 # Extract the first word of "twopi", so it can be a program name with args.
6730 set dummy twopi; ac_word=$2
6731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6733 if test "${ac_cv_path_TWOPI+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6748 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6760 TWOPI=$ac_cv_path_TWOPI
6761 if test -n "$TWOPI"; then
6762 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6763 echo "${ECHO_T}$TWOPI" >&6; }
6765 { echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6; }
6770 if test "$TWOPI" != "echo twopi" ; then
6772 cat >>confdefs.h <<\_ACEOF
6773 #define HAVE_TWOPI 1
6776 if test "$llvm_cv_os_type" = "MingW" ; then
6777 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6780 cat >>confdefs.h <<_ACEOF
6781 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6785 # Extract the first word of "circo", so it can be a program name with args.
6786 set dummy circo; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_path_CIRCO+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6816 CIRCO=$ac_cv_path_CIRCO
6817 if test -n "$CIRCO"; then
6818 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6819 echo "${ECHO_T}$CIRCO" >&6; }
6821 { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6826 if test "$CIRCO" != "echo circo" ; then
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_CIRCO 1
6832 if test "$llvm_cv_os_type" = "MingW" ; then
6833 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6836 cat >>confdefs.h <<_ACEOF
6837 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6841 for ac_prog in gv gsview32
6843 # Extract the first word of "$ac_prog", so it can be a program name with args.
6844 set dummy $ac_prog; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_path_GV+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 if test -n "$GV"; then
6875 { echo "$as_me:$LINENO: result: $GV" >&5
6876 echo "${ECHO_T}$GV" >&6; }
6878 { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6883 test -n "$GV" && break
6885 test -n "$GV" || GV="echo gv"
6887 if test "$GV" != "echo gv" ; then
6889 cat >>confdefs.h <<\_ACEOF
6893 if test "$llvm_cv_os_type" = "MingW" ; then
6894 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6897 cat >>confdefs.h <<_ACEOF
6898 #define LLVM_PATH_GV "$GV${EXEEXT}"
6902 # Extract the first word of "dotty", so it can be a program name with args.
6903 set dummy dotty; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_DOTTY+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6933 DOTTY=$ac_cv_path_DOTTY
6934 if test -n "$DOTTY"; then
6935 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6936 echo "${ECHO_T}$DOTTY" >&6; }
6938 { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6943 if test "$DOTTY" != "echo dotty" ; then
6945 cat >>confdefs.h <<\_ACEOF
6946 #define HAVE_DOTTY 1
6949 if test "$llvm_cv_os_type" = "MingW" ; then
6950 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6953 cat >>confdefs.h <<_ACEOF
6954 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6958 for ac_prog in xdot xdot.py
6960 # Extract the first word of "$ac_prog", so it can be a program name with args.
6961 set dummy $ac_prog; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_XDOT+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 XDOT=$ac_cv_path_XDOT
6991 if test -n "$XDOT"; then
6992 { echo "$as_me:$LINENO: result: $XDOT" >&5
6993 echo "${ECHO_T}$XDOT" >&6; }
6995 { echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6; }
7000 test -n "$XDOT" && break
7002 test -n "$XDOT" || XDOT="echo xdot"
7004 if test "$XDOT" != "echo xdot" ; then
7006 cat >>confdefs.h <<\_ACEOF
7010 if test "$llvm_cv_os_type" = "MingW" ; then
7011 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7014 cat >>confdefs.h <<_ACEOF
7015 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7020 # Find a good install program. We prefer a C program (faster),
7021 # so one script is as good as another. But avoid the broken or
7022 # incompatible versions:
7023 # SysV /etc/install, /usr/sbin/install
7024 # SunOS /usr/etc/install
7025 # IRIX /sbin/install
7027 # AmigaOS /C/install, which installs bootblocks on floppy discs
7028 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7031 # OS/2's system install, which has a completely different semantic
7032 # ./install, which can be erroneously created by make from ./install.sh.
7033 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7034 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7035 if test -z "$INSTALL"; then
7036 if test "${ac_cv_path_install+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 # Account for people who put trailing slashes in PATH elements.
7046 ./ | .// | /cC/* | \
7047 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7048 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7051 # OSF1 and SCO ODT 3.0 have their own names for install.
7052 # Don't use installbsd from OSF since it installs stuff as root
7054 for ac_prog in ginstall scoinst install; do
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7057 if test $ac_prog = install &&
7058 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7059 # AIX install. It has an incompatible calling convention.
7061 elif test $ac_prog = install &&
7062 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7063 # program-specific install script used by HP pwplus--don't use.
7066 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7079 if test "${ac_cv_path_install+set}" = set; then
7080 INSTALL=$ac_cv_path_install
7082 # As a last resort, use the slow shell script. Don't cache a
7083 # value for INSTALL within a source directory, because that will
7084 # break other packages using the cache if that directory is
7085 # removed, or if the value is a relative name.
7086 INSTALL=$ac_install_sh
7089 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7090 echo "${ECHO_T}$INSTALL" >&6; }
7092 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7093 # It thinks the first close brace ends the variable substitution.
7094 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7096 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7098 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7101 [\\/$]* | ?:[\\/]* ) ;;
7102 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7105 # Extract the first word of "bzip2", so it can be a program name with args.
7106 set dummy bzip2; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_BZIP2+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 BZIP2=$ac_cv_path_BZIP2
7136 if test -n "$BZIP2"; then
7137 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7138 echo "${ECHO_T}$BZIP2" >&6; }
7140 { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7145 # Extract the first word of "cat", so it can be a program name with args.
7146 set dummy cat; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_CAT+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 if test -n "$CAT"; then
7177 { echo "$as_me:$LINENO: result: $CAT" >&5
7178 echo "${ECHO_T}$CAT" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 # Extract the first word of "doxygen", so it can be a program name with args.
7186 set dummy doxygen; ac_word=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 DOXYGEN=$ac_cv_path_DOXYGEN
7216 if test -n "$DOXYGEN"; then
7217 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7218 echo "${ECHO_T}$DOXYGEN" >&6; }
7220 { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7225 # Extract the first word of "groff", so it can be a program name with args.
7226 set dummy groff; ac_word=$2
7227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229 if test "${ac_cv_path_GROFF+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 GROFF=$ac_cv_path_GROFF
7256 if test -n "$GROFF"; then
7257 { echo "$as_me:$LINENO: result: $GROFF" >&5
7258 echo "${ECHO_T}$GROFF" >&6; }
7260 { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7265 # Extract the first word of "gzip", so it can be a program name with args.
7266 set dummy gzip; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 GZIPBIN=$ac_cv_path_GZIPBIN
7296 if test -n "$GZIPBIN"; then
7297 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7298 echo "${ECHO_T}$GZIPBIN" >&6; }
7300 { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7305 # Extract the first word of "pdfroff", so it can be a program name with args.
7306 set dummy pdfroff; ac_word=$2
7307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7309 if test "${ac_cv_path_PDFROFF+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 PDFROFF=$ac_cv_path_PDFROFF
7336 if test -n "$PDFROFF"; then
7337 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7338 echo "${ECHO_T}$PDFROFF" >&6; }
7340 { echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6; }
7345 # Extract the first word of "zip", so it can be a program name with args.
7346 set dummy zip; ac_word=$2
7347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349 if test "${ac_cv_path_ZIP+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 if test -n "$ZIP"; then
7377 { echo "$as_me:$LINENO: result: $ZIP" >&5
7378 echo "${ECHO_T}$ZIP" >&6; }
7380 { echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6; }
7385 for ac_prog in ocamlc
7387 # Extract the first word of "$ac_prog", so it can be a program name with args.
7388 set dummy $ac_prog; ac_word=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_OCAMLC+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 OCAMLC=$ac_cv_path_OCAMLC
7418 if test -n "$OCAMLC"; then
7419 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7420 echo "${ECHO_T}$OCAMLC" >&6; }
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7427 test -n "$OCAMLC" && break
7430 for ac_prog in ocamlopt
7432 # Extract the first word of "$ac_prog", so it can be a program name with args.
7433 set dummy $ac_prog; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 OCAMLOPT=$ac_cv_path_OCAMLOPT
7463 if test -n "$OCAMLOPT"; then
7464 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7465 echo "${ECHO_T}$OCAMLOPT" >&6; }
7467 { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7472 test -n "$OCAMLOPT" && break
7475 for ac_prog in ocamldep
7477 # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy $ac_prog; ac_word=$2
7479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 OCAMLDEP=$ac_cv_path_OCAMLDEP
7508 if test -n "$OCAMLDEP"; then
7509 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7510 echo "${ECHO_T}$OCAMLDEP" >&6; }
7512 { echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6; }
7517 test -n "$OCAMLDEP" && break
7520 for ac_prog in ocamldoc
7522 # Extract the first word of "$ac_prog", so it can be a program name with args.
7523 set dummy $ac_prog; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 OCAMLDOC=$ac_cv_path_OCAMLDOC
7553 if test -n "$OCAMLDOC"; then
7554 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7555 echo "${ECHO_T}$OCAMLDOC" >&6; }
7557 { echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6; }
7562 test -n "$OCAMLDOC" && break
7565 for ac_prog in gas as
7567 # Extract the first word of "$ac_prog", so it can be a program name with args.
7568 set dummy $ac_prog; ac_word=$2
7569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571 if test "${ac_cv_path_GAS+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7586 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 if test -n "$GAS"; then
7599 { echo "$as_me:$LINENO: result: $GAS" >&5
7600 echo "${ECHO_T}$GAS" >&6; }
7602 { echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6; }
7607 test -n "$GAS" && break
7611 { echo "$as_me:$LINENO: checking for linker version" >&5
7612 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7613 if test "${llvm_cv_link_version+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 version_string="$(ld -v 2>&1 | head -1)"
7620 if (echo "$version_string" | grep -q "ld64"); then
7621 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7623 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7627 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7628 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7630 cat >>confdefs.h <<_ACEOF
7631 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7637 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7638 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7639 if test "${llvm_cv_link_use_r+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649 CFLAGS="$CFLAGS -Wl,-R."
7650 cat >conftest.$ac_ext <<_ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (ac_try="$ac_link"
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_link") 2>conftest.er1
7674 grep -v '^ *+' conftest.er1 >conftest.err
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7680 { (case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_try") 2>&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest$ac_exeext'
7690 { (case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_try") 2>&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 llvm_cv_link_use_r=yes
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 llvm_cv_link_use_r=no
7707 rm -f core conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7719 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7720 if test "$llvm_cv_link_use_r" = yes ; then
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_LINK_R 1
7729 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7730 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7731 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7741 CFLAGS="$CFLAGS -rdynamic"
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (ac_try="$ac_link"
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7772 { (case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_try") 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; } &&
7781 { ac_try='test -s conftest$ac_exeext'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_try") 2>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 llvm_cv_link_use_export_dynamic=yes
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 llvm_cv_link_use_export_dynamic=no
7799 rm -f core conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7811 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7812 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7814 cat >>confdefs.h <<\_ACEOF
7815 #define HAVE_LINK_EXPORT_DYNAMIC 1
7821 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7822 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7823 if test "${llvm_cv_link_use_version_script+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834 # The following code is from the autoconf manual,
7835 # "11.13: Limitations of Usual Tools".
7836 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7837 # Use mktemp if possible; otherwise fall back on mkdir,
7838 # with $RANDOM to make collisions less likely.
7842 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7844 test -n "$tmp" && test -d "$tmp"
7846 tmp=$TMPDIR/foo$$-$RANDOM
7847 (umask 077 && mkdir "$tmp")
7850 echo "{" > "$tmp/export.map"
7851 echo " global: main;" >> "$tmp/export.map"
7852 echo " local: *;" >> "$tmp/export.map"
7853 echo "};" >> "$tmp/export.map"
7855 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7856 cat >conftest.$ac_ext <<_ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (ac_try="$ac_link"
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_link") 2>conftest.er1
7880 grep -v '^ *+' conftest.er1 >conftest.err
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7886 { (case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_try") 2>&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest$ac_exeext'
7896 { (case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_try") 2>&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 llvm_cv_link_use_version_script=yes
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 llvm_cv_link_use_version_script=no
7913 rm -f core conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7915 rm "$tmp/export.map"
7919 ac_cpp='$CPP $CPPFLAGS'
7920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7927 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7928 if test "$llvm_cv_link_use_version_script" = yes ; then
7929 HAVE_LINK_VERSION_SCRIPT=1
7935 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7936 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7937 if test "${ac_cv_path_GREP+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 # Extract the first word of "grep ggrep" to use in msg output
7941 if test -z "$GREP"; then
7942 set dummy grep ggrep; ac_prog_name=$2
7943 if test "${ac_cv_path_GREP+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 ac_path_GREP_found=false
7947 # Loop through the user's path and test for each of PROGNAME-LIST
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7952 test -z "$as_dir" && as_dir=.
7953 for ac_prog in grep ggrep; do
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7956 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7957 # Check for GNU ac_path_GREP and select it if it is found.
7958 # Check for GNU $ac_path_GREP
7959 case `"$ac_path_GREP" --version 2>&1` in
7961 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7964 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7967 cat "conftest.in" "conftest.in" >"conftest.tmp"
7968 mv "conftest.tmp" "conftest.in"
7969 cp "conftest.in" "conftest.nl"
7970 echo 'GREP' >> "conftest.nl"
7971 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7973 ac_count=`expr $ac_count + 1`
7974 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7975 # Best one so far, save it but keep looking for a better one
7976 ac_cv_path_GREP="$ac_path_GREP"
7977 ac_path_GREP_max=$ac_count
7979 # 10*(2^10) chars as input seems more than enough
7980 test $ac_count -gt 10 && break
7982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7986 $ac_path_GREP_found && break 3
7996 GREP="$ac_cv_path_GREP"
7997 if test -z "$GREP"; then
7998 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7999 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8000 { (exit 1); exit 1; }; }
8004 ac_cv_path_GREP=$GREP
8009 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8010 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8011 GREP="$ac_cv_path_GREP"
8014 { echo "$as_me:$LINENO: checking for egrep" >&5
8015 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8016 if test "${ac_cv_path_EGREP+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8020 then ac_cv_path_EGREP="$GREP -E"
8022 # Extract the first word of "egrep" to use in msg output
8023 if test -z "$EGREP"; then
8024 set dummy egrep; ac_prog_name=$2
8025 if test "${ac_cv_path_EGREP+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 ac_path_EGREP_found=false
8029 # Loop through the user's path and test for each of PROGNAME-LIST
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8034 test -z "$as_dir" && as_dir=.
8035 for ac_prog in egrep; do
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8038 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8039 # Check for GNU ac_path_EGREP and select it if it is found.
8040 # Check for GNU $ac_path_EGREP
8041 case `"$ac_path_EGREP" --version 2>&1` in
8043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8049 cat "conftest.in" "conftest.in" >"conftest.tmp"
8050 mv "conftest.tmp" "conftest.in"
8051 cp "conftest.in" "conftest.nl"
8052 echo 'EGREP' >> "conftest.nl"
8053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8055 ac_count=`expr $ac_count + 1`
8056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8057 # Best one so far, save it but keep looking for a better one
8058 ac_cv_path_EGREP="$ac_path_EGREP"
8059 ac_path_EGREP_max=$ac_count
8061 # 10*(2^10) chars as input seems more than enough
8062 test $ac_count -gt 10 && break
8064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8068 $ac_path_EGREP_found && break 3
8078 EGREP="$ac_cv_path_EGREP"
8079 if test -z "$EGREP"; then
8080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8081 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8082 { (exit 1); exit 1; }; }
8086 ac_cv_path_EGREP=$EGREP
8092 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8093 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8094 EGREP="$ac_cv_path_EGREP"
8097 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8099 if test "${ac_cv_header_stdc+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 cat >conftest.$ac_ext <<_ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_compile") 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8136 { (case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_try") 2>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; } &&
8145 { ac_try='test -s conftest.$ac_objext'
8146 { (case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_try") 2>&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_cv_header_stdc=yes
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_cv_header_stdc=no
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165 if test $ac_cv_header_stdc = yes; then
8166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8177 $EGREP "memchr" >/dev/null 2>&1; then
8180 ac_cv_header_stdc=no
8186 if test $ac_cv_header_stdc = yes; then
8187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8188 cat >conftest.$ac_ext <<_ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8198 $EGREP "free" >/dev/null 2>&1; then
8201 ac_cv_header_stdc=no
8207 if test $ac_cv_header_stdc = yes; then
8208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8209 if test "$cross_compiling" = yes; then
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8220 #if ((' ' & 0x0FF) == 0x020)
8221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8224 # define ISLOWER(c) \
8225 (('a' <= (c) && (c) <= 'i') \
8226 || ('j' <= (c) && (c) <= 'r') \
8227 || ('s' <= (c) && (c) <= 'z'))
8228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8236 for (i = 0; i < 256; i++)
8237 if (XOR (islower (i), ISLOWER (i))
8238 || toupper (i) != TOUPPER (i))
8243 rm -f conftest$ac_exeext
8244 if { (ac_try="$ac_link"
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_link") 2>&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8254 { (case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_try") 2>&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8265 echo "$as_me: program exited with status $ac_status" >&5
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8270 ac_cv_header_stdc=no
8272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8278 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8279 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8280 if test $ac_cv_header_stdc = yes; then
8282 cat >>confdefs.h <<\_ACEOF
8283 #define STDC_HEADERS 1
8288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8299 inttypes.h stdint.h unistd.h
8301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 cat >conftest.$ac_ext <<_ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313 $ac_includes_default
8315 #include <$ac_header>
8317 rm -f conftest.$ac_objext
8318 if { (ac_try="$ac_compile"
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324 (eval "$ac_compile") 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8332 { (case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_try") 2>&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest.$ac_objext'
8342 { (case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_try") 2>&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 eval "$as_ac_Header=yes"
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 eval "$as_ac_Header=no"
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 ac_res=`eval echo '${'$as_ac_Header'}'`
8362 { echo "$as_me:$LINENO: result: $ac_res" >&5
8363 echo "${ECHO_T}$ac_res" >&6; }
8364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8365 cat >>confdefs.h <<_ACEOF
8366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8375 for ac_header in errno.h
8377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 ac_res=`eval echo '${'$as_ac_Header'}'`
8385 { echo "$as_me:$LINENO: result: $ac_res" >&5
8386 echo "${ECHO_T}$ac_res" >&6; }
8388 # Is the header compilable?
8389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 $ac_includes_default
8398 #include <$ac_header>
8400 rm -f conftest.$ac_objext
8401 if { (ac_try="$ac_compile"
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8415 { (case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_try") 2>&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_try") 2>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_header_compiler=yes
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_header_compiler=no
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8444 echo "${ECHO_T}$ac_header_compiler" >&6; }
8446 # Is the header present?
8447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 #include <$ac_header>
8457 if { (ac_try="$ac_cpp conftest.$ac_ext"
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8465 grep -v '^ *+' conftest.er1 >conftest.err
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } >/dev/null; then
8470 if test -s conftest.err; then
8471 ac_cpp_err=$ac_c_preproc_warn_flag
8472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8479 if test -z "$ac_cpp_err"; then
8480 ac_header_preproc=yes
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 ac_header_preproc=no
8488 rm -f conftest.err conftest.$ac_ext
8489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8490 echo "${ECHO_T}$ac_header_preproc" >&6; }
8492 # So? What about this header?
8493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8499 ac_header_preproc=yes
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8515 ## ------------------------------------ ##
8516 ## Report this to http://llvm.org/bugs/ ##
8517 ## ------------------------------------ ##
8519 ) | sed "s/^/$as_me: WARNING: /" >&2
8522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 eval "$as_ac_Header=\$ac_header_preproc"
8529 ac_res=`eval echo '${'$as_ac_Header'}'`
8530 { echo "$as_me:$LINENO: result: $ac_res" >&5
8531 echo "${ECHO_T}$ac_res" >&6; }
8534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8535 cat >>confdefs.h <<_ACEOF
8536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8544 case "$llvm_cv_os_type" in
8545 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8546 Darwin) llvm_shlib_ext=.dylib ;;
8547 *) llvm_shlib_ext=.so ;;
8551 cat >>confdefs.h <<_ACEOF
8552 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8556 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8557 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8570 if test "$GCC" != "yes" && test "$ICC" != "yes"
8572 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8573 echo "$as_me: error: gcc|icc required but not found" >&2;}
8574 { (exit 1); exit 1; }; }
8577 if test "$GXX" != "yes" && test "$IXX" != "yes"
8579 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8580 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8581 { (exit 1); exit 1; }; }
8584 if test "$GCC" = "yes"
8586 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8594 #if !defined(__GNUC__) || __GNUC__ < 3
8595 #error Unsupported GCC version
8600 rm -f conftest.$ac_objext
8601 if { (ac_try="$ac_compile"
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_compile") 2>conftest.er1
8609 grep -v '^ *+' conftest.er1 >conftest.err
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } &&
8614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8615 { (case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_try") 2>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_try") 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8640 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8641 { (exit 1); exit 1; }; }
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 if test -z "$llvm_cv_gnu_make_command"
8649 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8650 echo "$as_me: error: GNU Make required but not found" >&2;}
8651 { (exit 1); exit 1; }; }
8654 { echo "$as_me:$LINENO: result: ok" >&5
8655 echo "${ECHO_T}ok" >&6; }
8657 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8658 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8659 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8661 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8663 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8667 NO_MAYBE_UNINITIALIZED=
8668 if test "$GXX" = "yes"
8670 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8672 if test -z "$NO_MAYBE_UNINITIALIZED"
8674 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8678 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8679 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8682 # Check whether --with-python was given.
8683 if test "${with_python+set}" = set; then
8684 withval=$with_python; PYTHON="$withval"
8688 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8689 { echo "$as_me:$LINENO: checking for python" >&5
8690 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8691 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8692 echo "${ECHO_T}user defined: $with_python" >&6; }
8694 if test -n "$PYTHON" ; then
8695 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8696 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8699 # Extract the first word of "python python2 python26", so it can be a program name with args.
8700 set dummy python python2 python26; ac_word=$2
8701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8703 if test "${ac_cv_path_PYTHON+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8718 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8727 echo "${ECHO_T}not found" >&6; }
8728 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8729 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8730 { (exit 1); exit 1; }; }"
8734 PYTHON=$ac_cv_path_PYTHON
8735 if test -n "$PYTHON"; then
8736 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8737 echo "${ECHO_T}$PYTHON" >&6; }
8739 { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8746 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8747 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8748 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8749 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8750 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8751 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8752 if test "$ac_python_version_major" -gt "2" || \
8753 (test "$ac_python_version_major" -eq "2" && \
8754 test "$ac_python_version_minor" -ge "5") ; then
8755 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8756 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8758 { echo "$as_me:$LINENO: result: not found" >&5
8759 echo "${ECHO_T}not found" >&6; }
8760 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8761 See \`config.log' for more details." >&5
8762 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8763 See \`config.log' for more details." >&2;}
8764 { (exit 1); exit 1; }; }
8769 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8770 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8771 if test "${ac_cv_lib_m_sin+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 ac_check_lib_save_LIBS=$LIBS
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8783 /* Override any GCC internal prototype to avoid an error.
8784 Use char because int might match the return type of a GCC
8785 builtin and then its argument prototype would still apply. */
8798 rm -f conftest.$ac_objext conftest$ac_exeext
8799 if { (ac_try="$ac_link"
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_link") 2>conftest.er1
8807 grep -v '^ *+' conftest.er1 >conftest.err
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest$ac_exeext'
8823 { (case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_try") 2>&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8840 rm -f core conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8842 LIBS=$ac_check_lib_save_LIBS
8844 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8845 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8846 if test $ac_cv_lib_m_sin = yes; then
8847 cat >>confdefs.h <<_ACEOF
8855 if test "$llvm_cv_os_type" = "MingW" ; then
8857 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8858 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8859 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 ac_check_lib_save_LIBS=$LIBS
8863 LIBS="-limagehlp $LIBS"
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (ac_try="$ac_link"
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_link") 2>conftest.er1
8889 grep -v '^ *+' conftest.er1 >conftest.err
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } &&
8894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8895 { (case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_try") 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; } &&
8904 { ac_try='test -s conftest$ac_exeext'
8905 { (case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_try") 2>&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_lib_imagehlp_main=yes
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_cv_lib_imagehlp_main=no
8922 rm -f core conftest.err conftest.$ac_objext \
8923 conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8926 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8927 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8928 if test $ac_cv_lib_imagehlp_main = yes; then
8929 cat >>confdefs.h <<_ACEOF
8930 #define HAVE_LIBIMAGEHLP 1
8933 LIBS="-limagehlp $LIBS"
8938 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8939 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8940 if test "${ac_cv_lib_psapi_main+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 ac_check_lib_save_LIBS=$LIBS
8944 LIBS="-lpsapi $LIBS"
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (ac_try="$ac_link"
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_link") 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8976 { (case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_try") 2>&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest$ac_exeext'
8986 { (case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_try") 2>&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_lib_psapi_main=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_cv_lib_psapi_main=no
9003 rm -f core conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 LIBS=$ac_check_lib_save_LIBS
9007 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
9008 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
9009 if test $ac_cv_lib_psapi_main = yes; then
9010 cat >>confdefs.h <<_ACEOF
9011 #define HAVE_LIBPSAPI 1
9014 LIBS="-lpsapi $LIBS"
9019 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
9020 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
9021 if test "${ac_cv_lib_shell32_main+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lshell32 $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (ac_try="$ac_link"
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_link") 2>conftest.er1
9051 grep -v '^ *+' conftest.er1 >conftest.err
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9057 { (case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_try") 2>&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (case "(($ac_try" in
9068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069 *) ac_try_echo=$ac_try;;
9071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072 (eval "$ac_try") 2>&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_cv_lib_shell32_main=yes
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 ac_cv_lib_shell32_main=no
9084 rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9086 LIBS=$ac_check_lib_save_LIBS
9088 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9089 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9090 if test $ac_cv_lib_shell32_main = yes; then
9091 cat >>confdefs.h <<_ACEOF
9092 #define HAVE_LIBSHELL32 1
9095 LIBS="-lshell32 $LIBS"
9101 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9102 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9103 if test "${ac_cv_search_dlopen+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 ac_func_search_save_LIBS=$LIBS
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9114 /* Override any GCC internal prototype to avoid an error.
9115 Use char because int might match the return type of a GCC
9116 builtin and then its argument prototype would still apply. */
9129 for ac_lib in '' dl; do
9130 if test -z "$ac_lib"; then
9131 ac_res="none required"
9134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (ac_try="$ac_link"
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_link") 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } &&
9150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9151 { (case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_try") 2>&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_search_dlopen=$ac_res
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9178 rm -f core conftest.err conftest.$ac_objext \
9180 if test "${ac_cv_search_dlopen+set}" = set; then
9184 if test "${ac_cv_search_dlopen+set}" = set; then
9187 ac_cv_search_dlopen=no
9190 LIBS=$ac_func_search_save_LIBS
9192 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9193 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9194 ac_res=$ac_cv_search_dlopen
9195 if test "$ac_res" != no; then
9196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9199 cat >>confdefs.h <<\_ACEOF
9200 #define HAVE_DLOPEN 1
9207 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9208 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9212 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9213 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9214 if test "${ac_cv_search_clock_gettime+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 ac_func_search_save_LIBS=$LIBS
9218 cat >conftest.$ac_ext <<_ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9225 /* Override any GCC internal prototype to avoid an error.
9226 Use char because int might match the return type of a GCC
9227 builtin and then its argument prototype would still apply. */
9231 char clock_gettime ();
9235 return clock_gettime ();
9240 for ac_lib in '' rt; do
9241 if test -z "$ac_lib"; then
9242 ac_res="none required"
9245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (ac_try="$ac_link"
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_link") 2>conftest.er1
9256 grep -v '^ *+' conftest.er1 >conftest.err
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9262 { (case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_try") 2>&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try='test -s conftest$ac_exeext'
9272 { (case "(($ac_try" in
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_try") 2>&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 ac_cv_search_clock_gettime=$ac_res
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9289 rm -f core conftest.err conftest.$ac_objext \
9291 if test "${ac_cv_search_clock_gettime+set}" = set; then
9295 if test "${ac_cv_search_clock_gettime+set}" = set; then
9298 ac_cv_search_clock_gettime=no
9301 LIBS=$ac_func_search_save_LIBS
9303 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9304 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9305 ac_res=$ac_cv_search_clock_gettime
9306 if test "$ac_res" != no; then
9307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9312 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9313 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9314 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9315 if test "${ac_cv_search_setupterm+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 ac_func_search_save_LIBS=$LIBS
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9326 /* Override any GCC internal prototype to avoid an error.
9327 Use char because int might match the return type of a GCC
9328 builtin and then its argument prototype would still apply. */
9336 return setupterm ();
9341 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9342 if test -z "$ac_lib"; then
9343 ac_res="none required"
9346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (ac_try="$ac_link"
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355 (eval "$ac_link") 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } &&
9362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9363 { (case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_try") 2>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; } &&
9372 { ac_try='test -s conftest$ac_exeext'
9373 { (case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_try") 2>&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 ac_cv_search_setupterm=$ac_res
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9390 rm -f core conftest.err conftest.$ac_objext \
9392 if test "${ac_cv_search_setupterm+set}" = set; then
9396 if test "${ac_cv_search_setupterm+set}" = set; then
9399 ac_cv_search_setupterm=no
9402 LIBS=$ac_func_search_save_LIBS
9404 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9405 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9406 ac_res=$ac_cv_search_setupterm
9407 if test "$ac_res" != no; then
9408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9411 cat >>confdefs.h <<\_ACEOF
9412 #define HAVE_TERMINFO 1
9422 if test "$llvm_cv_enable_libedit" = "yes" ; then
9423 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9424 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9425 if test "${ac_cv_search_el_init+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 ac_func_search_save_LIBS=$LIBS
9429 cat >conftest.$ac_ext <<_ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9436 /* Override any GCC internal prototype to avoid an error.
9437 Use char because int might match the return type of a GCC
9438 builtin and then its argument prototype would still apply. */
9451 for ac_lib in '' edit; do
9452 if test -z "$ac_lib"; then
9453 ac_res="none required"
9456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_link") 2>conftest.er1
9467 grep -v '^ *+' conftest.er1 >conftest.err
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } &&
9472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9473 { (case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_try") 2>&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; } &&
9482 { ac_try='test -s conftest$ac_exeext'
9483 { (case "(($ac_try" in
9484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485 *) ac_try_echo=$ac_try;;
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488 (eval "$ac_try") 2>&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 ac_cv_search_el_init=$ac_res
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9500 rm -f core conftest.err conftest.$ac_objext \
9502 if test "${ac_cv_search_el_init+set}" = set; then
9506 if test "${ac_cv_search_el_init+set}" = set; then
9509 ac_cv_search_el_init=no
9512 LIBS=$ac_func_search_save_LIBS
9514 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9515 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9516 ac_res=$ac_cv_search_el_init
9517 if test "$ac_res" != no; then
9518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_LIBEDIT 1
9528 if test "$llvm_cv_enable_libffi" = "yes" ; then
9529 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9530 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9531 if test "${ac_cv_search_ffi_call+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 ac_func_search_save_LIBS=$LIBS
9535 cat >conftest.$ac_ext <<_ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9542 /* Override any GCC internal prototype to avoid an error.
9543 Use char because int might match the return type of a GCC
9544 builtin and then its argument prototype would still apply. */
9557 for ac_lib in '' ffi; do
9558 if test -z "$ac_lib"; then
9559 ac_res="none required"
9562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (ac_try="$ac_link"
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_link") 2>conftest.er1
9573 grep -v '^ *+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9579 { (case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_try") 2>&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest$ac_exeext'
9589 { (case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_try") 2>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_search_ffi_call=$ac_res
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9606 rm -f core conftest.err conftest.$ac_objext \
9608 if test "${ac_cv_search_ffi_call+set}" = set; then
9612 if test "${ac_cv_search_ffi_call+set}" = set; then
9615 ac_cv_search_ffi_call=no
9618 LIBS=$ac_func_search_save_LIBS
9620 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9621 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9622 ac_res=$ac_cv_search_ffi_call
9623 if test "$ac_res" != no; then
9624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9626 cat >>confdefs.h <<\_ACEOF
9627 #define HAVE_FFI_CALL 1
9631 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9632 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9633 { (exit 1); exit 1; }; }
9638 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9639 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9640 if test "${ac_cv_search_mallinfo+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 ac_func_search_save_LIBS=$LIBS
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9666 for ac_lib in '' malloc; do
9667 if test -z "$ac_lib"; then
9668 ac_res="none required"
9671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9688 { (case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_try") 2>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try='test -s conftest$ac_exeext'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
9707 ac_cv_search_mallinfo=$ac_res
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9715 rm -f core conftest.err conftest.$ac_objext \
9717 if test "${ac_cv_search_mallinfo+set}" = set; then
9721 if test "${ac_cv_search_mallinfo+set}" = set; then
9724 ac_cv_search_mallinfo=no
9727 LIBS=$ac_func_search_save_LIBS
9729 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9730 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9731 ac_res=$ac_cv_search_mallinfo
9732 if test "$ac_res" != no; then
9733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9735 cat >>confdefs.h <<\_ACEOF
9736 #define HAVE_MALLINFO 1
9742 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9744 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9745 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9746 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-lpthread $LIBS"
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9764 char pthread_mutex_init ();
9768 return pthread_mutex_init ();
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
9782 grep -v '^ *+' conftest.er1 >conftest.err
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788 { (case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_try") 2>&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_try") 2>&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_cv_lib_pthread_pthread_mutex_init=yes
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_cv_lib_pthread_pthread_mutex_init=no
9815 rm -f core conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9819 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9820 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9821 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9822 cat >>confdefs.h <<_ACEOF
9823 #define HAVE_LIBPTHREAD 1
9826 LIBS="-lpthread $LIBS"
9830 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9831 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9832 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 ac_func_search_save_LIBS=$LIBS
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9849 char pthread_mutex_lock ();
9853 return pthread_mutex_lock ();
9858 for ac_lib in '' pthread; do
9859 if test -z "$ac_lib"; then
9860 ac_res="none required"
9863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>conftest.er1
9874 grep -v '^ *+' conftest.er1 >conftest.err
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
9889 { ac_try='test -s conftest$ac_exeext'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_cv_search_pthread_mutex_lock=$ac_res
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9907 rm -f core conftest.err conftest.$ac_objext \
9909 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9913 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9916 ac_cv_search_pthread_mutex_lock=no
9919 LIBS=$ac_func_search_save_LIBS
9921 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9922 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9923 ac_res=$ac_cv_search_pthread_mutex_lock
9924 if test "$ac_res" != no; then
9925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_PTHREAD_MUTEX_LOCK 1
9933 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9934 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9935 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 ac_func_search_save_LIBS=$LIBS
9939 cat >conftest.$ac_ext <<_ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9946 /* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
9952 char pthread_rwlock_init ();
9956 return pthread_rwlock_init ();
9961 for ac_lib in '' pthread; do
9962 if test -z "$ac_lib"; then
9963 ac_res="none required"
9966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try='test -s conftest$ac_exeext'
9993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 ac_cv_search_pthread_rwlock_init=$ac_res
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10010 rm -f core conftest.err conftest.$ac_objext \
10012 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10016 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10019 ac_cv_search_pthread_rwlock_init=no
10021 rm conftest.$ac_ext
10022 LIBS=$ac_func_search_save_LIBS
10024 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10025 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
10026 ac_res=$ac_cv_search_pthread_rwlock_init
10027 if test "$ac_res" != no; then
10028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_PTHREAD_RWLOCK_INIT 1
10036 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10037 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10038 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 ac_func_search_save_LIBS=$LIBS
10042 cat >conftest.$ac_ext <<_ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10049 /* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
10055 char pthread_getspecific ();
10059 return pthread_getspecific ();
10064 for ac_lib in '' pthread; do
10065 if test -z "$ac_lib"; then
10066 ac_res="none required"
10069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (ac_try="$ac_link"
10073 case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_link") 2>conftest.er1
10080 grep -v '^ *+' conftest.er1 >conftest.err
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_try") 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; }; then
10105 ac_cv_search_pthread_getspecific=$ac_res
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10113 rm -f core conftest.err conftest.$ac_objext \
10115 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10119 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10122 ac_cv_search_pthread_getspecific=no
10124 rm conftest.$ac_ext
10125 LIBS=$ac_func_search_save_LIBS
10127 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10128 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10129 ac_res=$ac_cv_search_pthread_getspecific
10130 if test "$ac_res" != no; then
10131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10133 cat >>confdefs.h <<\_ACEOF
10134 #define HAVE_PTHREAD_GETSPECIFIC 1
10141 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10143 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10144 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10145 if test "${ac_cv_lib_z_compress2+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 ac_check_lib_save_LIBS=$LIBS
10150 cat >conftest.$ac_ext <<_ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10157 /* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
10167 return compress2 ();
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>conftest.er1
10181 grep -v '^ *+' conftest.er1 >conftest.err
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187 { (case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_try") 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; } &&
10196 { ac_try='test -s conftest$ac_exeext'
10197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 ac_cv_lib_z_compress2=yes
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 ac_cv_lib_z_compress2=no
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10216 LIBS=$ac_check_lib_save_LIBS
10218 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10219 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10220 if test $ac_cv_lib_z_compress2 = yes; then
10221 cat >>confdefs.h <<_ACEOF
10222 #define HAVE_LIBZ 1
10232 # Check whether --with-udis86 was given.
10233 if test "${with_udis86+set}" = set; then
10234 withval=$with_udis86;
10239 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10242 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10243 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10244 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 ac_check_lib_save_LIBS=$LIBS
10248 LIBS="-ludis86 $LIBS"
10249 cat >conftest.$ac_ext <<_ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (ac_try="$ac_link"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_link") 2>conftest.er1
10280 grep -v '^ *+' conftest.er1 >conftest.err
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286 { (case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_try") 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest$ac_exeext'
10296 { (case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_try") 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_lib_udis86_ud_init=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_lib_udis86_ud_init=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10318 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10319 if test $ac_cv_lib_udis86_ud_init = yes; then
10320 cat >>confdefs.h <<_ACEOF
10321 #define HAVE_LIBUDIS86 1
10324 LIBS="-ludis86 $LIBS"
10328 echo "Error! You need to have libudis86 around."
10340 cat >>confdefs.h <<_ACEOF
10341 #define USE_UDIS86 $USE_UDIS86
10346 # Check whether --with-oprofile was given.
10347 if test "${with_oprofile+set}" = set; then
10348 withval=$with_oprofile;
10352 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10353 no) llvm_cv_oppath=
10356 *) llvm_cv_oppath="${withval}/lib/oprofile"
10357 CPPFLAGS="-I${withval}/include";;
10359 case $llvm_cv_os_type in
10361 if test -n "$llvm_cv_oppath" ; then
10362 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10363 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10364 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10365 if test "${ac_cv_search_bfd_init+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 ac_func_search_save_LIBS=$LIBS
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10376 /* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10386 return bfd_init ();
10391 for ac_lib in '' bfd; do
10392 if test -z "$ac_lib"; then
10393 ac_res="none required"
10396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (ac_try="$ac_link"
10400 case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_link") 2>conftest.er1
10407 grep -v '^ *+' conftest.er1 >conftest.err
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_try") 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest$ac_exeext'
10423 { (case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_try") 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_cv_search_bfd_init=$ac_res
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10440 rm -f core conftest.err conftest.$ac_objext \
10442 if test "${ac_cv_search_bfd_init+set}" = set; then
10446 if test "${ac_cv_search_bfd_init+set}" = set; then
10449 ac_cv_search_bfd_init=no
10451 rm conftest.$ac_ext
10452 LIBS=$ac_func_search_save_LIBS
10454 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10455 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10456 ac_res=$ac_cv_search_bfd_init
10457 if test "$ac_res" != no; then
10458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10462 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10463 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10464 if test "${ac_cv_search_op_open_agent+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 ac_func_search_save_LIBS=$LIBS
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10481 char op_open_agent ();
10485 return op_open_agent ();
10490 for ac_lib in '' opagent; do
10491 if test -z "$ac_lib"; then
10492 ac_res="none required"
10495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_link") 2>conftest.er1
10506 grep -v '^ *+' conftest.er1 >conftest.err
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10512 { (case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_try") 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_cv_search_op_open_agent=$ac_res
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10539 rm -f core conftest.err conftest.$ac_objext \
10541 if test "${ac_cv_search_op_open_agent+set}" = set; then
10545 if test "${ac_cv_search_op_open_agent+set}" = set; then
10548 ac_cv_search_op_open_agent=no
10550 rm conftest.$ac_ext
10551 LIBS=$ac_func_search_save_LIBS
10553 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10554 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10555 ac_res=$ac_cv_search_op_open_agent
10556 if test "$ac_res" != no; then
10557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10561 echo "Error! You need to have libopagent around."
10566 if test "${ac_cv_header_opagent_h+set}" = set; then
10567 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10568 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10569 if test "${ac_cv_header_opagent_h+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10573 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10575 # Is the header compilable?
10576 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10577 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10578 cat >conftest.$ac_ext <<_ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 $ac_includes_default
10585 #include <opagent.h>
10587 rm -f conftest.$ac_objext
10588 if { (ac_try="$ac_compile"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_compile") 2>conftest.er1
10596 grep -v '^ *+' conftest.er1 >conftest.err
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10602 { (case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_try") 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest.$ac_objext'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_header_compiler=yes
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 ac_header_compiler=no
10629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10631 echo "${ECHO_T}$ac_header_compiler" >&6; }
10633 # Is the header present?
10634 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10635 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10636 cat >conftest.$ac_ext <<_ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 #include <opagent.h>
10644 if { (ac_try="$ac_cpp conftest.$ac_ext"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10652 grep -v '^ *+' conftest.er1 >conftest.err
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } >/dev/null; then
10657 if test -s conftest.err; then
10658 ac_cpp_err=$ac_c_preproc_warn_flag
10659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10666 if test -z "$ac_cpp_err"; then
10667 ac_header_preproc=yes
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ac_header_preproc=no
10675 rm -f conftest.err conftest.$ac_ext
10676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10677 echo "${ECHO_T}$ac_header_preproc" >&6; }
10679 # So? What about this header?
10680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10682 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10683 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10685 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10686 ac_header_preproc=yes
10689 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10690 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10692 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10694 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10696 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10698 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10700 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10702 ## ------------------------------------ ##
10703 ## Report this to http://llvm.org/bugs/ ##
10704 ## ------------------------------------ ##
10706 ) | sed "s/^/$as_me: WARNING: /" >&2
10709 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10710 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10711 if test "${ac_cv_header_opagent_h+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 ac_cv_header_opagent_h=$ac_header_preproc
10716 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10717 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10720 if test $ac_cv_header_opagent_h = yes; then
10724 echo "Error! You need to have opagent.h around."
10732 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10733 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10734 { (exit 1); exit 1; }; } ;;
10745 cat >>confdefs.h <<_ACEOF
10746 #define LLVM_USE_OPROFILE $USE_OPROFILE
10751 # Check whether --with-intel-jitevents was given.
10752 if test "${with_intel_jitevents+set}" = set; then
10753 withval=$with_intel_jitevents;
10755 yes) USE_INTEL_JITEVENTS=1
10757 no) USE_INTEL_JITEVENTS=0
10759 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10760 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10761 { (exit 1); exit 1; }; };;
10764 case $llvm_cv_os_type in
10765 Linux|Win32|Cygwin|MingW) ;;
10766 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10767 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10768 { (exit 1); exit 1; }; };;
10771 case "$llvm_cv_target_arch" in
10773 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10774 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10775 { (exit 1); exit 1; }; };;
10780 USE_INTEL_JITEVENTS=0
10786 cat >>confdefs.h <<_ACEOF
10787 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10791 for ac_prog in xml2-config
10793 # Extract the first word of "$ac_prog", so it can be a program name with args.
10794 set dummy $ac_prog; ac_word=$2
10795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10797 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 if test -n "$XML2CONFIG"; then
10801 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10810 ac_cv_prog_XML2CONFIG="$ac_prog"
10811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10821 if test -n "$XML2CONFIG"; then
10822 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10823 echo "${ECHO_T}$XML2CONFIG" >&6; }
10825 { echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6; }
10830 test -n "$XML2CONFIG" && break
10834 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10835 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10836 if test "x$XML2CONFIG" = "x"; then
10837 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10838 echo "${ECHO_T}xml2-config not found" >&6; }
10840 LIBXML2_INC=`$XML2CONFIG --cflags`
10841 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10842 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10843 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10844 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10845 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 ac_check_lib_save_LIBS=$LIBS
10849 LIBS="-lxml2 $LIBS"
10850 cat >conftest.$ac_ext <<_ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10863 char xmlReadFile ();
10867 return xmlReadFile ();
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1 >conftest.err
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_lib_xml2_xmlReadFile=yes
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_cv_lib_xml2_xmlReadFile=no
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10918 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10919 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10920 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10922 cat >>confdefs.h <<\_ACEOF
10923 #define CLANG_HAVE_LIBXML 1
10926 LIBXML2_LIBS="-lxml2"
10939 ac_header_dirent=no
10940 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10941 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10942 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10943 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 cat >conftest.$ac_ext <<_ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 #include <sys/types.h>
10965 rm -f conftest.$ac_objext
10966 if { (ac_try="$ac_compile"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_compile") 2>conftest.er1
10974 grep -v '^ *+' conftest.er1 >conftest.err
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980 { (case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_try") 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } &&
10989 { ac_try='test -s conftest.$ac_objext'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 eval "$as_ac_Header=yes"
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 eval "$as_ac_Header=no"
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11013 cat >>confdefs.h <<_ACEOF
11014 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11017 ac_header_dirent=$ac_hdr; break
11021 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11022 if test $ac_header_dirent = dirent.h; then
11023 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11024 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11025 if test "${ac_cv_search_opendir+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 ac_func_search_save_LIBS=$LIBS
11029 cat >conftest.$ac_ext <<_ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11051 for ac_lib in '' dir; do
11052 if test -z "$ac_lib"; then
11053 ac_res="none required"
11056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_link") 2>conftest.er1
11067 grep -v '^ *+' conftest.er1 >conftest.err
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11073 { (case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_try") 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try='test -s conftest$ac_exeext'
11083 { (case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_try") 2>&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_search_opendir=$ac_res
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11100 rm -f core conftest.err conftest.$ac_objext \
11102 if test "${ac_cv_search_opendir+set}" = set; then
11106 if test "${ac_cv_search_opendir+set}" = set; then
11109 ac_cv_search_opendir=no
11111 rm conftest.$ac_ext
11112 LIBS=$ac_func_search_save_LIBS
11114 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11115 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11116 ac_res=$ac_cv_search_opendir
11117 if test "$ac_res" != no; then
11118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11123 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11124 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11125 if test "${ac_cv_search_opendir+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 ac_func_search_save_LIBS=$LIBS
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11151 for ac_lib in '' x; do
11152 if test -z "$ac_lib"; then
11153 ac_res="none required"
11156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (ac_try="$ac_link"
11160 case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_link") 2>conftest.er1
11167 grep -v '^ *+' conftest.er1 >conftest.err
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; } &&
11182 { ac_try='test -s conftest$ac_exeext'
11183 { (case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_try") 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_search_opendir=$ac_res
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11200 rm -f core conftest.err conftest.$ac_objext \
11202 if test "${ac_cv_search_opendir+set}" = set; then
11206 if test "${ac_cv_search_opendir+set}" = set; then
11209 ac_cv_search_opendir=no
11211 rm conftest.$ac_ext
11212 LIBS=$ac_func_search_save_LIBS
11214 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11215 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11216 ac_res=$ac_cv_search_opendir
11217 if test "$ac_res" != no; then
11218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11224 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11225 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11226 if test "${ac_cv_header_mmap_anon+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 ac_cpp='$CPP $CPPFLAGS'
11231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 #include <sys/mman.h>
11242 #include <unistd.h>
11247 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_cv_header_mmap_anon=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_cv_header_mmap_anon=no
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 ac_cpp='$CPP $CPPFLAGS'
11297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11303 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11304 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11305 if test "$ac_cv_header_mmap_anon" = yes; then
11307 cat >>confdefs.h <<\_ACEOF
11308 #define HAVE_MMAP_ANONYMOUS 1
11313 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11314 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11315 if test "${ac_cv_header_stat_broken+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 #include <sys/types.h>
11325 #include <sys/stat.h>
11327 #if defined S_ISBLK && defined S_IFDIR
11328 # if S_ISBLK (S_IFDIR)
11333 #if defined S_ISBLK && defined S_IFCHR
11334 # if S_ISBLK (S_IFCHR)
11339 #if defined S_ISLNK && defined S_IFREG
11340 # if S_ISLNK (S_IFREG)
11345 #if defined S_ISSOCK && defined S_IFREG
11346 # if S_ISSOCK (S_IFREG)
11352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11353 $EGREP "You lose" >/dev/null 2>&1; then
11354 ac_cv_header_stat_broken=yes
11356 ac_cv_header_stat_broken=no
11361 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11362 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11363 if test $ac_cv_header_stat_broken = yes; then
11365 cat >>confdefs.h <<\_ACEOF
11366 #define STAT_MACROS_BROKEN 1
11371 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11372 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11373 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 #include <sys/types.h>
11383 #include <sys/wait.h>
11384 #ifndef WEXITSTATUS
11385 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11388 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11396 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11401 rm -f conftest.$ac_objext
11402 if { (ac_try="$ac_compile"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_compile") 2>conftest.er1
11410 grep -v '^ *+' conftest.er1 >conftest.err
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try='test -s conftest.$ac_objext'
11426 { (case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_try") 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_header_sys_wait_h=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_cv_header_sys_wait_h=no
11443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11446 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11447 if test $ac_cv_header_sys_wait_h = yes; then
11449 cat >>confdefs.h <<\_ACEOF
11450 #define HAVE_SYS_WAIT_H 1
11455 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11456 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11457 if test "${ac_cv_header_time+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 #include <sys/types.h>
11467 #include <sys/time.h>
11473 if ((struct tm *) 0)
11479 rm -f conftest.$ac_objext
11480 if { (ac_try="$ac_compile"
11481 case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_compile") 2>conftest.er1
11488 grep -v '^ *+' conftest.er1 >conftest.err
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11494 { (case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_try") 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_try") 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
11513 ac_cv_header_time=yes
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 ac_cv_header_time=no
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11524 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11525 if test $ac_cv_header_time = yes; then
11527 cat >>confdefs.h <<\_ACEOF
11528 #define TIME_WITH_SYS_TIME 1
11535 ac_cpp='$CXXCPP $CPPFLAGS'
11536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11541 ac_cpp='$CXXCPP $CPPFLAGS'
11542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11545 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11546 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11547 if test -z "$CXXCPP"; then
11548 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 # Double quotes because CXXCPP needs to be expanded
11552 for CXXCPP in "$CXX -E" "/lib/cpp"
11554 ac_preproc_ok=false
11555 for ac_cxx_preproc_warn_flag in '' yes
11557 # Use a header file that comes with gcc, so configuring glibc
11558 # with a fresh cross-compiler works.
11559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 # <limits.h> exists even on freestanding compilers.
11561 # On the NeXT, cc -E runs the code through the compiler's parser,
11562 # not just through cpp. "Syntax error" is here to catch this case.
11563 cat >conftest.$ac_ext <<_ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11570 # include <limits.h>
11572 # include <assert.h>
11576 if { (ac_try="$ac_cpp conftest.$ac_ext"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11584 grep -v '^ *+' conftest.er1 >conftest.err
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null; then
11589 if test -s conftest.err; then
11590 ac_cpp_err=$ac_cxx_preproc_warn_flag
11591 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11598 if test -z "$ac_cpp_err"; then
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 # Broken: fails on valid input.
11608 rm -f conftest.err conftest.$ac_ext
11610 # OK, works on sane cases. Now check whether nonexistent headers
11611 # can be detected and how.
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 #include <ac_nonexistent.h>
11620 if { (ac_try="$ac_cpp conftest.$ac_ext"
11621 case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11628 grep -v '^ *+' conftest.er1 >conftest.err
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } >/dev/null; then
11633 if test -s conftest.err; then
11634 ac_cpp_err=$ac_cxx_preproc_warn_flag
11635 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11642 if test -z "$ac_cpp_err"; then
11643 # Broken: success on invalid input.
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 # Passes both tests.
11654 rm -f conftest.err conftest.$ac_ext
11657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11658 rm -f conftest.err conftest.$ac_ext
11659 if $ac_preproc_ok; then
11664 ac_cv_prog_CXXCPP=$CXXCPP
11667 CXXCPP=$ac_cv_prog_CXXCPP
11669 ac_cv_prog_CXXCPP=$CXXCPP
11671 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11672 echo "${ECHO_T}$CXXCPP" >&6; }
11673 ac_preproc_ok=false
11674 for ac_cxx_preproc_warn_flag in '' yes
11676 # Use a header file that comes with gcc, so configuring glibc
11677 # with a fresh cross-compiler works.
11678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679 # <limits.h> exists even on freestanding compilers.
11680 # On the NeXT, cc -E runs the code through the compiler's parser,
11681 # not just through cpp. "Syntax error" is here to catch this case.
11682 cat >conftest.$ac_ext <<_ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11689 # include <limits.h>
11691 # include <assert.h>
11695 if { (ac_try="$ac_cpp conftest.$ac_ext"
11696 case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11703 grep -v '^ *+' conftest.er1 >conftest.err
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } >/dev/null; then
11708 if test -s conftest.err; then
11709 ac_cpp_err=$ac_cxx_preproc_warn_flag
11710 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11717 if test -z "$ac_cpp_err"; then
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11723 # Broken: fails on valid input.
11727 rm -f conftest.err conftest.$ac_ext
11729 # OK, works on sane cases. Now check whether nonexistent headers
11730 # can be detected and how.
11731 cat >conftest.$ac_ext <<_ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 #include <ac_nonexistent.h>
11739 if { (ac_try="$ac_cpp conftest.$ac_ext"
11740 case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11747 grep -v '^ *+' conftest.er1 >conftest.err
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } >/dev/null; then
11752 if test -s conftest.err; then
11753 ac_cpp_err=$ac_cxx_preproc_warn_flag
11754 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11761 if test -z "$ac_cpp_err"; then
11762 # Broken: success on invalid input.
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 # Passes both tests.
11773 rm -f conftest.err conftest.$ac_ext
11776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11777 rm -f conftest.err conftest.$ac_ext
11778 if $ac_preproc_ok; then
11781 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11782 See \`config.log' for more details." >&5
11783 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11784 See \`config.log' for more details." >&2;}
11785 { (exit 1); exit 1; }; }
11789 ac_cpp='$CXXCPP $CPPFLAGS'
11790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11796 for ac_header in cxxabi.h
11798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 ac_res=`eval echo '${'$as_ac_Header'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11809 # Is the header compilable?
11810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11812 cat >conftest.$ac_ext <<_ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 $ac_includes_default
11819 #include <$ac_header>
11821 rm -f conftest.$ac_objext
11822 if { (ac_try="$ac_compile"
11823 case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11830 grep -v '^ *+' conftest.er1 >conftest.err
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11836 { (case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_try") 2>&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; } &&
11845 { ac_try='test -s conftest.$ac_objext'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_header_compiler=yes
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_header_compiler=no
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865 echo "${ECHO_T}$ac_header_compiler" >&6; }
11867 # Is the header present?
11868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 #include <$ac_header>
11878 if { (ac_try="$ac_cpp conftest.$ac_ext"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11886 grep -v '^ *+' conftest.er1 >conftest.err
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } >/dev/null; then
11891 if test -s conftest.err; then
11892 ac_cpp_err=$ac_cxx_preproc_warn_flag
11893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11900 if test -z "$ac_cpp_err"; then
11901 ac_header_preproc=yes
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_header_preproc=no
11909 rm -f conftest.err conftest.$ac_ext
11910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11911 echo "${ECHO_T}$ac_header_preproc" >&6; }
11913 # So? What about this header?
11914 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11920 ac_header_preproc=yes
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11936 ## ------------------------------------ ##
11937 ## Report this to http://llvm.org/bugs/ ##
11938 ## ------------------------------------ ##
11940 ) | sed "s/^/$as_me: WARNING: /" >&2
11943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 eval "$as_ac_Header=\$ac_header_preproc"
11950 ac_res=`eval echo '${'$as_ac_Header'}'`
11951 { echo "$as_me:$LINENO: result: $ac_res" >&5
11952 echo "${ECHO_T}$ac_res" >&6; }
11955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965 ac_cpp='$CPP $CPPFLAGS'
11966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11975 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 ac_res=`eval echo '${'$as_ac_Header'}'`
11985 { echo "$as_me:$LINENO: result: $ac_res" >&5
11986 echo "${ECHO_T}$ac_res" >&6; }
11988 # Is the header compilable?
11989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11991 cat >conftest.$ac_ext <<_ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 $ac_includes_default
11998 #include <$ac_header>
12000 rm -f conftest.$ac_objext
12001 if { (ac_try="$ac_compile"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_compile") 2>conftest.er1
12009 grep -v '^ *+' conftest.er1 >conftest.err
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest.$ac_objext'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_header_compiler=yes
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_header_compiler=no
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12044 echo "${ECHO_T}$ac_header_compiler" >&6; }
12046 # Is the header present?
12047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 #include <$ac_header>
12057 if { (ac_try="$ac_cpp conftest.$ac_ext"
12058 case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } >/dev/null; then
12070 if test -s conftest.err; then
12071 ac_cpp_err=$ac_c_preproc_warn_flag
12072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12079 if test -z "$ac_cpp_err"; then
12080 ac_header_preproc=yes
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12085 ac_header_preproc=no
12088 rm -f conftest.err conftest.$ac_ext
12089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12090 echo "${ECHO_T}$ac_header_preproc" >&6; }
12092 # So? What about this header?
12093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12099 ac_header_preproc=yes
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12115 ## ------------------------------------ ##
12116 ## Report this to http://llvm.org/bugs/ ##
12117 ## ------------------------------------ ##
12119 ) | sed "s/^/$as_me: WARNING: /" >&2
12122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 eval "$as_ac_Header=\$ac_header_preproc"
12129 ac_res=`eval echo '${'$as_ac_Header'}'`
12130 { echo "$as_me:$LINENO: result: $ac_res" >&5
12131 echo "${ECHO_T}$ac_res" >&6; }
12134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12135 cat >>confdefs.h <<_ACEOF
12136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12149 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 ac_res=`eval echo '${'$as_ac_Header'}'`
12159 { echo "$as_me:$LINENO: result: $ac_res" >&5
12160 echo "${ECHO_T}$ac_res" >&6; }
12162 # Is the header compilable?
12163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 $ac_includes_default
12172 #include <$ac_header>
12174 rm -f conftest.$ac_objext
12175 if { (ac_try="$ac_compile"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12189 { (case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_try") 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try='test -s conftest.$ac_objext'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 ac_header_compiler=yes
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 ac_header_compiler=no
12216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12218 echo "${ECHO_T}$ac_header_compiler" >&6; }
12220 # Is the header present?
12221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12223 cat >conftest.$ac_ext <<_ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12229 #include <$ac_header>
12231 if { (ac_try="$ac_cpp conftest.$ac_ext"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12239 grep -v '^ *+' conftest.er1 >conftest.err
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } >/dev/null; then
12244 if test -s conftest.err; then
12245 ac_cpp_err=$ac_c_preproc_warn_flag
12246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12253 if test -z "$ac_cpp_err"; then
12254 ac_header_preproc=yes
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 ac_header_preproc=no
12262 rm -f conftest.err conftest.$ac_ext
12263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12264 echo "${ECHO_T}$ac_header_preproc" >&6; }
12266 # So? What about this header?
12267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12273 ac_header_preproc=yes
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12289 ## ------------------------------------ ##
12290 ## Report this to http://llvm.org/bugs/ ##
12291 ## ------------------------------------ ##
12293 ) | sed "s/^/$as_me: WARNING: /" >&2
12296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 eval "$as_ac_Header=\$ac_header_preproc"
12303 ac_res=`eval echo '${'$as_ac_Header'}'`
12304 { echo "$as_me:$LINENO: result: $ac_res" >&5
12305 echo "${ECHO_T}$ac_res" >&6; }
12308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12309 cat >>confdefs.h <<_ACEOF
12310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12318 for ac_header in utime.h
12320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 ac_res=`eval echo '${'$as_ac_Header'}'`
12328 { echo "$as_me:$LINENO: result: $ac_res" >&5
12329 echo "${ECHO_T}$ac_res" >&6; }
12331 # Is the header compilable?
12332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12334 cat >conftest.$ac_ext <<_ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12340 $ac_includes_default
12341 #include <$ac_header>
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12358 { (case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_try") 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest.$ac_objext'
12368 { (case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_try") 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 ac_header_compiler=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_header_compiler=no
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12387 echo "${ECHO_T}$ac_header_compiler" >&6; }
12389 # Is the header present?
12390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 #include <$ac_header>
12400 if { (ac_try="$ac_cpp conftest.$ac_ext"
12401 case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12408 grep -v '^ *+' conftest.er1 >conftest.err
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } >/dev/null; then
12413 if test -s conftest.err; then
12414 ac_cpp_err=$ac_c_preproc_warn_flag
12415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12422 if test -z "$ac_cpp_err"; then
12423 ac_header_preproc=yes
12425 echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12428 ac_header_preproc=no
12431 rm -f conftest.err conftest.$ac_ext
12432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12433 echo "${ECHO_T}$ac_header_preproc" >&6; }
12435 # So? What about this header?
12436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12442 ac_header_preproc=yes
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12458 ## ------------------------------------ ##
12459 ## Report this to http://llvm.org/bugs/ ##
12460 ## ------------------------------------ ##
12462 ) | sed "s/^/$as_me: WARNING: /" >&2
12465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 eval "$as_ac_Header=\$ac_header_preproc"
12472 ac_res=`eval echo '${'$as_ac_Header'}'`
12473 { echo "$as_me:$LINENO: result: $ac_res" >&5
12474 echo "${ECHO_T}$ac_res" >&6; }
12477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12478 cat >>confdefs.h <<_ACEOF
12479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12491 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 ac_res=`eval echo '${'$as_ac_Header'}'`
12501 { echo "$as_me:$LINENO: result: $ac_res" >&5
12502 echo "${ECHO_T}$ac_res" >&6; }
12504 # Is the header compilable?
12505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 $ac_includes_default
12514 #include <$ac_header>
12516 rm -f conftest.$ac_objext
12517 if { (ac_try="$ac_compile"
12518 case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_compile") 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest.$ac_objext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_header_compiler=yes
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_header_compiler=no
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12560 echo "${ECHO_T}$ac_header_compiler" >&6; }
12562 # Is the header present?
12563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 #include <$ac_header>
12573 if { (ac_try="$ac_cpp conftest.$ac_ext"
12574 case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12581 grep -v '^ *+' conftest.er1 >conftest.err
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } >/dev/null; then
12586 if test -s conftest.err; then
12587 ac_cpp_err=$ac_c_preproc_warn_flag
12588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12595 if test -z "$ac_cpp_err"; then
12596 ac_header_preproc=yes
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_header_preproc=no
12604 rm -f conftest.err conftest.$ac_ext
12605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12606 echo "${ECHO_T}$ac_header_preproc" >&6; }
12608 # So? What about this header?
12609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12615 ac_header_preproc=yes
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12631 ## ------------------------------------ ##
12632 ## Report this to http://llvm.org/bugs/ ##
12633 ## ------------------------------------ ##
12635 ) | sed "s/^/$as_me: WARNING: /" >&2
12638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 eval "$as_ac_Header=\$ac_header_preproc"
12645 ac_res=`eval echo '${'$as_ac_Header'}'`
12646 { echo "$as_me:$LINENO: result: $ac_res" >&5
12647 echo "${ECHO_T}$ac_res" >&6; }
12650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12651 cat >>confdefs.h <<_ACEOF
12652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12662 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 ac_res=`eval echo '${'$as_ac_Header'}'`
12672 { echo "$as_me:$LINENO: result: $ac_res" >&5
12673 echo "${ECHO_T}$ac_res" >&6; }
12675 # Is the header compilable?
12676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12678 cat >conftest.$ac_ext <<_ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 $ac_includes_default
12685 #include <$ac_header>
12687 rm -f conftest.$ac_objext
12688 if { (ac_try="$ac_compile"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_compile") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702 { (case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_try") 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest.$ac_objext'
12712 { (case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_try") 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_header_compiler=yes
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12726 ac_header_compiler=no
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12731 echo "${ECHO_T}$ac_header_compiler" >&6; }
12733 # Is the header present?
12734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 #include <$ac_header>
12744 if { (ac_try="$ac_cpp conftest.$ac_ext"
12745 case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12752 grep -v '^ *+' conftest.er1 >conftest.err
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } >/dev/null; then
12757 if test -s conftest.err; then
12758 ac_cpp_err=$ac_c_preproc_warn_flag
12759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12766 if test -z "$ac_cpp_err"; then
12767 ac_header_preproc=yes
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 ac_header_preproc=no
12775 rm -f conftest.err conftest.$ac_ext
12776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12777 echo "${ECHO_T}$ac_header_preproc" >&6; }
12779 # So? What about this header?
12780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12786 ac_header_preproc=yes
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12802 ## ------------------------------------ ##
12803 ## Report this to http://llvm.org/bugs/ ##
12804 ## ------------------------------------ ##
12806 ) | sed "s/^/$as_me: WARNING: /" >&2
12809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 eval "$as_ac_Header=\$ac_header_preproc"
12816 ac_res=`eval echo '${'$as_ac_Header'}'`
12817 { echo "$as_me:$LINENO: result: $ac_res" >&5
12818 echo "${ECHO_T}$ac_res" >&6; }
12821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12822 cat >>confdefs.h <<_ACEOF
12823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12831 for ac_header in valgrind/valgrind.h
12833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 ac_res=`eval echo '${'$as_ac_Header'}'`
12841 { echo "$as_me:$LINENO: result: $ac_res" >&5
12842 echo "${ECHO_T}$ac_res" >&6; }
12844 # Is the header compilable?
12845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12847 cat >conftest.$ac_ext <<_ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 $ac_includes_default
12854 #include <$ac_header>
12856 rm -f conftest.$ac_objext
12857 if { (ac_try="$ac_compile"
12858 case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_compile") 2>conftest.er1
12865 grep -v '^ *+' conftest.er1 >conftest.err
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12871 { (case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_try") 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest.$ac_objext'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_header_compiler=yes
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 ac_header_compiler=no
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900 echo "${ECHO_T}$ac_header_compiler" >&6; }
12902 # Is the header present?
12903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12905 cat >conftest.$ac_ext <<_ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 #include <$ac_header>
12913 if { (ac_try="$ac_cpp conftest.$ac_ext"
12914 case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12921 grep -v '^ *+' conftest.er1 >conftest.err
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } >/dev/null; then
12926 if test -s conftest.err; then
12927 ac_cpp_err=$ac_c_preproc_warn_flag
12928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12935 if test -z "$ac_cpp_err"; then
12936 ac_header_preproc=yes
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12941 ac_header_preproc=no
12944 rm -f conftest.err conftest.$ac_ext
12945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12946 echo "${ECHO_T}$ac_header_preproc" >&6; }
12948 # So? What about this header?
12949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12955 ac_header_preproc=yes
12958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12971 ## ------------------------------------ ##
12972 ## Report this to http://llvm.org/bugs/ ##
12973 ## ------------------------------------ ##
12975 ) | sed "s/^/$as_me: WARNING: /" >&2
12978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 eval "$as_ac_Header=\$ac_header_preproc"
12985 ac_res=`eval echo '${'$as_ac_Header'}'`
12986 { echo "$as_me:$LINENO: result: $ac_res" >&5
12987 echo "${ECHO_T}$ac_res" >&6; }
12990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13000 for ac_header in fenv.h
13002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 ac_res=`eval echo '${'$as_ac_Header'}'`
13010 { echo "$as_me:$LINENO: result: $ac_res" >&5
13011 echo "${ECHO_T}$ac_res" >&6; }
13013 # Is the header compilable?
13014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13016 cat >conftest.$ac_ext <<_ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13022 $ac_includes_default
13023 #include <$ac_header>
13025 rm -f conftest.$ac_objext
13026 if { (ac_try="$ac_compile"
13027 case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_compile") 2>conftest.er1
13034 grep -v '^ *+' conftest.er1 >conftest.err
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13040 { (case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_try") 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try='test -s conftest.$ac_objext'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_try") 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_header_compiler=yes
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_header_compiler=no
13067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13069 echo "${ECHO_T}$ac_header_compiler" >&6; }
13071 # Is the header present?
13072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13074 cat >conftest.$ac_ext <<_ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 #include <$ac_header>
13082 if { (ac_try="$ac_cpp conftest.$ac_ext"
13083 case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13090 grep -v '^ *+' conftest.er1 >conftest.err
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } >/dev/null; then
13095 if test -s conftest.err; then
13096 ac_cpp_err=$ac_c_preproc_warn_flag
13097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13104 if test -z "$ac_cpp_err"; then
13105 ac_header_preproc=yes
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13110 ac_header_preproc=no
13113 rm -f conftest.err conftest.$ac_ext
13114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13115 echo "${ECHO_T}$ac_header_preproc" >&6; }
13117 # So? What about this header?
13118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13124 ac_header_preproc=yes
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13140 ## ------------------------------------ ##
13141 ## Report this to http://llvm.org/bugs/ ##
13142 ## ------------------------------------ ##
13144 ) | sed "s/^/$as_me: WARNING: /" >&2
13147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 eval "$as_ac_Header=\$ac_header_preproc"
13154 ac_res=`eval echo '${'$as_ac_Header'}'`
13155 { echo "$as_me:$LINENO: result: $ac_res" >&5
13156 echo "${ECHO_T}$ac_res" >&6; }
13159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13160 cat >>confdefs.h <<_ACEOF
13161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13168 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13169 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13170 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 cat >conftest.$ac_ext <<_ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13184 #ifndef FE_ALL_EXCEPT
13185 char *p = (char *) FE_ALL_EXCEPT;
13193 rm -f conftest.$ac_objext
13194 if { (ac_try="$ac_compile"
13195 case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13202 grep -v '^ *+' conftest.er1 >conftest.err
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest.$ac_objext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_have_decl_FE_ALL_EXCEPT=yes
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ac_cv_have_decl_FE_ALL_EXCEPT=no
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13238 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13239 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13241 cat >>confdefs.h <<_ACEOF
13242 #define HAVE_DECL_FE_ALL_EXCEPT 1
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_DECL_FE_ALL_EXCEPT 0
13253 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13254 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13255 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 cat >conftest.$ac_ext <<_ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13270 char *p = (char *) FE_INEXACT;
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compile") 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } &&
13302 { ac_try='test -s conftest.$ac_objext'
13303 { (case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_try") 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_have_decl_FE_INEXACT=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_cv_have_decl_FE_INEXACT=no
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13323 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13324 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_DECL_FE_INEXACT 1
13332 cat >>confdefs.h <<_ACEOF
13333 #define HAVE_DECL_FE_INEXACT 0
13340 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13342 for ac_header in pthread.h
13344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 ac_res=`eval echo '${'$as_ac_Header'}'`
13352 { echo "$as_me:$LINENO: result: $ac_res" >&5
13353 echo "${ECHO_T}$ac_res" >&6; }
13355 # Is the header compilable?
13356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13358 cat >conftest.$ac_ext <<_ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364 $ac_includes_default
13365 #include <$ac_header>
13367 rm -f conftest.$ac_objext
13368 if { (ac_try="$ac_compile"
13369 case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_compile") 2>conftest.er1
13376 grep -v '^ *+' conftest.er1 >conftest.err
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest.$ac_objext'
13392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_header_compiler=yes
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ac_header_compiler=no
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13411 echo "${ECHO_T}$ac_header_compiler" >&6; }
13413 # Is the header present?
13414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13416 cat >conftest.$ac_ext <<_ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 #include <$ac_header>
13424 if { (ac_try="$ac_cpp conftest.$ac_ext"
13425 case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13432 grep -v '^ *+' conftest.er1 >conftest.err
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } >/dev/null; then
13437 if test -s conftest.err; then
13438 ac_cpp_err=$ac_c_preproc_warn_flag
13439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13446 if test -z "$ac_cpp_err"; then
13447 ac_header_preproc=yes
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_header_preproc=no
13455 rm -f conftest.err conftest.$ac_ext
13456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13457 echo "${ECHO_T}$ac_header_preproc" >&6; }
13459 # So? What about this header?
13460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13466 ac_header_preproc=yes
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13482 ## ------------------------------------ ##
13483 ## Report this to http://llvm.org/bugs/ ##
13484 ## ------------------------------------ ##
13486 ) | sed "s/^/$as_me: WARNING: /" >&2
13489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 eval "$as_ac_Header=\$ac_header_preproc"
13496 ac_res=`eval echo '${'$as_ac_Header'}'`
13497 { echo "$as_me:$LINENO: result: $ac_res" >&5
13498 echo "${ECHO_T}$ac_res" >&6; }
13501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13502 cat >>confdefs.h <<_ACEOF
13503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13518 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13520 for ac_header in zlib.h
13522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 ac_res=`eval echo '${'$as_ac_Header'}'`
13530 { echo "$as_me:$LINENO: result: $ac_res" >&5
13531 echo "${ECHO_T}$ac_res" >&6; }
13533 # Is the header compilable?
13534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13536 cat >conftest.$ac_ext <<_ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 $ac_includes_default
13543 #include <$ac_header>
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_compile") 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13560 { (case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_try") 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_header_compiler=yes
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13584 ac_header_compiler=no
13587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6; }
13591 # Is the header present?
13592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13594 cat >conftest.$ac_ext <<_ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 #include <$ac_header>
13602 if { (ac_try="$ac_cpp conftest.$ac_ext"
13603 case "(($ac_try" in
13604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605 *) ac_try_echo=$ac_try;;
13607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13610 grep -v '^ *+' conftest.er1 >conftest.err
13612 cat conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } >/dev/null; then
13615 if test -s conftest.err; then
13616 ac_cpp_err=$ac_c_preproc_warn_flag
13617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13624 if test -z "$ac_cpp_err"; then
13625 ac_header_preproc=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_header_preproc=no
13633 rm -f conftest.err conftest.$ac_ext
13634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635 echo "${ECHO_T}$ac_header_preproc" >&6; }
13637 # So? What about this header?
13638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13644 ac_header_preproc=yes
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13660 ## ------------------------------------ ##
13661 ## Report this to http://llvm.org/bugs/ ##
13662 ## ------------------------------------ ##
13664 ) | sed "s/^/$as_me: WARNING: /" >&2
13667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 eval "$as_ac_Header=\$ac_header_preproc"
13674 ac_res=`eval echo '${'$as_ac_Header'}'`
13675 { echo "$as_me:$LINENO: result: $ac_res" >&5
13676 echo "${ECHO_T}$ac_res" >&6; }
13679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13697 if test "$llvm_cv_enable_libffi" = "yes" ; then
13700 for ac_header in ffi.h ffi/ffi.h
13702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 ac_res=`eval echo '${'$as_ac_Header'}'`
13710 { echo "$as_me:$LINENO: result: $ac_res" >&5
13711 echo "${ECHO_T}$ac_res" >&6; }
13713 # Is the header compilable?
13714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13723 #include <$ac_header>
13725 rm -f conftest.$ac_objext
13726 if { (ac_try="$ac_compile"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_compile") 2>conftest.er1
13734 grep -v '^ *+' conftest.er1 >conftest.err
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_header_compiler=yes
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13764 ac_header_compiler=no
13767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13769 echo "${ECHO_T}$ac_header_compiler" >&6; }
13771 # Is the header present?
13772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13774 cat >conftest.$ac_ext <<_ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13780 #include <$ac_header>
13782 if { (ac_try="$ac_cpp conftest.$ac_ext"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13790 grep -v '^ *+' conftest.er1 >conftest.err
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } >/dev/null; then
13795 if test -s conftest.err; then
13796 ac_cpp_err=$ac_c_preproc_warn_flag
13797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13804 if test -z "$ac_cpp_err"; then
13805 ac_header_preproc=yes
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 ac_header_preproc=no
13813 rm -f conftest.err conftest.$ac_ext
13814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13815 echo "${ECHO_T}$ac_header_preproc" >&6; }
13817 # So? What about this header?
13818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13824 ac_header_preproc=yes
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13840 ## ------------------------------------ ##
13841 ## Report this to http://llvm.org/bugs/ ##
13842 ## ------------------------------------ ##
13844 ) | sed "s/^/$as_me: WARNING: /" >&2
13847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 eval "$as_ac_Header=\$ac_header_preproc"
13854 ac_res=`eval echo '${'$as_ac_Header'}'`
13855 { echo "$as_me:$LINENO: result: $ac_res" >&5
13856 echo "${ECHO_T}$ac_res" >&6; }
13859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13860 cat >>confdefs.h <<_ACEOF
13861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13871 for ac_header in CrashReporterClient.h
13873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 ac_res=`eval echo '${'$as_ac_Header'}'`
13881 { echo "$as_me:$LINENO: result: $ac_res" >&5
13882 echo "${ECHO_T}$ac_res" >&6; }
13884 # Is the header compilable?
13885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13887 cat >conftest.$ac_ext <<_ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 $ac_includes_default
13894 #include <$ac_header>
13896 rm -f conftest.$ac_objext
13897 if { (ac_try="$ac_compile"
13898 case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_compile") 2>conftest.er1
13905 grep -v '^ *+' conftest.er1 >conftest.err
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } &&
13910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13911 { (case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_try") 2>&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_try") 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_header_compiler=yes
13932 echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13935 ac_header_compiler=no
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13940 echo "${ECHO_T}$ac_header_compiler" >&6; }
13942 # Is the header present?
13943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13945 cat >conftest.$ac_ext <<_ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 #include <$ac_header>
13953 if { (ac_try="$ac_cpp conftest.$ac_ext"
13954 case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13961 grep -v '^ *+' conftest.er1 >conftest.err
13963 cat conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } >/dev/null; then
13966 if test -s conftest.err; then
13967 ac_cpp_err=$ac_c_preproc_warn_flag
13968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13975 if test -z "$ac_cpp_err"; then
13976 ac_header_preproc=yes
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13981 ac_header_preproc=no
13984 rm -f conftest.err conftest.$ac_ext
13985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13986 echo "${ECHO_T}$ac_header_preproc" >&6; }
13988 # So? What about this header?
13989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13995 ac_header_preproc=yes
13998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14011 ## ------------------------------------ ##
14012 ## Report this to http://llvm.org/bugs/ ##
14013 ## ------------------------------------ ##
14015 ) | sed "s/^/$as_me: WARNING: /" >&2
14018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 eval "$as_ac_Header=\$ac_header_preproc"
14025 ac_res=`eval echo '${'$as_ac_Header'}'`
14026 { echo "$as_me:$LINENO: result: $ac_res" >&5
14027 echo "${ECHO_T}$ac_res" >&6; }
14030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14031 cat >>confdefs.h <<_ACEOF
14032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14040 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14041 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14042 cat >conftest.$ac_ext <<_ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14050 extern const char *__crashreporter_info__;
14052 __crashreporter_info__ = "test";
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (ac_try="$ac_link"
14060 case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_link") 2>conftest.er1
14067 grep -v '^ *+' conftest.er1 >conftest.err
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest$ac_exeext'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14093 { echo "$as_me:$LINENO: result: yes" >&5
14094 echo "${ECHO_T}yes" >&6; }
14096 cat >>confdefs.h <<\_ACEOF
14097 #define HAVE_CRASHREPORTER_INFO 1
14102 echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14106 { echo "$as_me:$LINENO: result: no" >&5
14107 echo "${ECHO_T}no" >&6; }
14109 cat >>confdefs.h <<\_ACEOF
14110 #define HAVE_CRASHREPORTER_INFO 0
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14121 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14122 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14123 if test "${ac_cv_huge_val_sanity+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 ac_cpp='$CXXCPP $CPPFLAGS'
14129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14133 ac_save_CXXFLAGS=$CXXFLAGS
14134 CXXFLAGS="$CXXFLAGS -pedantic"
14135 if test "$cross_compiling" = yes; then
14136 ac_cv_huge_val_sanity=yes
14138 cat >conftest.$ac_ext <<_ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14148 double x = HUGE_VAL; return x != x;
14153 rm -f conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14164 { (case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_try") 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 ac_cv_huge_val_sanity=yes
14175 echo "$as_me: program exited with status $ac_status" >&5
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ( exit $ac_status )
14180 ac_cv_huge_val_sanity=no
14182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14186 CXXFLAGS=$ac_save_CXXFLAGS
14188 ac_cpp='$CPP $CPPFLAGS'
14189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14195 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14196 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14197 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14200 { echo "$as_me:$LINENO: checking for pid_t" >&5
14201 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14202 if test "${ac_cv_type_pid_t+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 cat >conftest.$ac_ext <<_ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 $ac_includes_default
14212 typedef pid_t ac__type_new_;
14216 if ((ac__type_new_ *) 0)
14218 if (sizeof (ac__type_new_))
14224 rm -f conftest.$ac_objext
14225 if { (ac_try="$ac_compile"
14226 case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_compile") 2>conftest.er1
14233 grep -v '^ *+' conftest.er1 >conftest.err
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest.$ac_objext'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_cv_type_pid_t=yes
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_type_pid_t=no
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14269 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14270 if test $ac_cv_type_pid_t = yes; then
14274 cat >>confdefs.h <<_ACEOF
14280 { echo "$as_me:$LINENO: checking for size_t" >&5
14281 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14282 if test "${ac_cv_type_size_t+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 cat >conftest.$ac_ext <<_ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14291 $ac_includes_default
14292 typedef size_t ac__type_new_;
14296 if ((ac__type_new_ *) 0)
14298 if (sizeof (ac__type_new_))
14304 rm -f conftest.$ac_objext
14305 if { (ac_try="$ac_compile"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_compile") 2>conftest.er1
14313 grep -v '^ *+' conftest.er1 >conftest.err
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14319 { (case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_try") 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_try") 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 ac_cv_type_size_t=yes
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ac_cv_type_size_t=no
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14349 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14350 if test $ac_cv_type_size_t = yes; then
14354 cat >>confdefs.h <<_ACEOF
14355 #define size_t unsigned int
14361 cat >>confdefs.h <<_ACEOF
14362 #define RETSIGTYPE void
14365 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14366 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14367 if test "${ac_cv_struct_tm+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 cat >conftest.$ac_ext <<_ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 #include <sys/types.h>
14382 struct tm *tp; tp->tm_sec;
14387 rm -f conftest.$ac_objext
14388 if { (ac_try="$ac_compile"
14389 case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_compile") 2>conftest.er1
14396 grep -v '^ *+' conftest.er1 >conftest.err
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14402 { (case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_try") 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; } &&
14411 { ac_try='test -s conftest.$ac_objext'
14412 { (case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_try") 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_cv_struct_tm=time.h
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_struct_tm=sys/time.h
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14432 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14433 if test $ac_cv_struct_tm = sys/time.h; then
14435 cat >>confdefs.h <<\_ACEOF
14436 #define TM_IN_SYS_TIME 1
14441 { echo "$as_me:$LINENO: checking for int64_t" >&5
14442 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14443 if test "${ac_cv_type_int64_t+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 cat >conftest.$ac_ext <<_ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 $ac_includes_default
14453 typedef int64_t ac__type_new_;
14457 if ((ac__type_new_ *) 0)
14459 if (sizeof (ac__type_new_))
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_compile") 2>conftest.er1
14474 grep -v '^ *+' conftest.er1 >conftest.err
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14480 { (case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_try") 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; } &&
14489 { ac_try='test -s conftest.$ac_objext'
14490 { (case "(($ac_try" in
14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492 *) ac_try_echo=$ac_try;;
14494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495 (eval "$ac_try") 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_type_int64_t=yes
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_cv_type_int64_t=no
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14510 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14511 if test $ac_cv_type_int64_t = yes; then
14513 cat >>confdefs.h <<_ACEOF
14514 #define HAVE_INT64_T 1
14519 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14520 echo "$as_me: error: Type int64_t required but not found" >&2;}
14521 { (exit 1); exit 1; }; }
14524 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14525 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14526 if test "${ac_cv_type_uint64_t+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 $ac_includes_default
14536 typedef uint64_t ac__type_new_;
14540 if ((ac__type_new_ *) 0)
14542 if (sizeof (ac__type_new_))
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_compile") 2>conftest.er1
14557 grep -v '^ *+' conftest.er1 >conftest.err
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
14582 ac_cv_type_uint64_t=yes
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14587 ac_cv_type_uint64_t=no
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14593 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14594 if test $ac_cv_type_uint64_t = yes; then
14596 cat >>confdefs.h <<_ACEOF
14597 #define HAVE_UINT64_T 1
14602 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14603 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14604 if test "${ac_cv_type_u_int64_t+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 cat >conftest.$ac_ext <<_ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 $ac_includes_default
14614 typedef u_int64_t ac__type_new_;
14618 if ((ac__type_new_ *) 0)
14620 if (sizeof (ac__type_new_))
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_cv_type_u_int64_t=yes
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ac_cv_type_u_int64_t=no
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14671 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14672 if test $ac_cv_type_u_int64_t = yes; then
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_U_INT64_T 1
14680 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14681 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14682 { (exit 1); exit 1; }; }
14696 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14712 #define $ac_func innocuous_$ac_func
14714 /* System header to define __stub macros and hopefully few prototypes,
14715 which can conflict with char $ac_func (); below.
14716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14717 <limits.h> exists even on freestanding compilers. */
14720 # include <limits.h>
14722 # include <assert.h>
14727 /* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14734 /* The GNU C library defines this for functions which it implements
14735 to always fail with ENOSYS. Some functions are actually named
14736 something starting with __ and the normal name is an alias. */
14737 #if defined __stub_$ac_func || defined __stub___$ac_func
14744 return $ac_func ();
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14764 { (case "(($ac_try" in
14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769 (eval "$ac_try") 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest$ac_exeext'
14774 { (case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_try") 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 eval "$as_ac_var=yes"
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 eval "$as_ac_var=no"
14791 rm -f core conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14794 ac_res=`eval echo '${'$as_ac_var'}'`
14795 { echo "$as_me:$LINENO: result: $ac_res" >&5
14796 echo "${ECHO_T}$ac_res" >&6; }
14797 if test `eval echo '${'$as_ac_var'}'` = yes; then
14798 cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14809 for ac_func in powf fmodf strtof round
14811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 cat >conftest.$ac_ext <<_ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14825 #define $ac_func innocuous_$ac_func
14827 /* System header to define __stub macros and hopefully few prototypes,
14828 which can conflict with char $ac_func (); below.
14829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14830 <limits.h> exists even on freestanding compilers. */
14833 # include <limits.h>
14835 # include <assert.h>
14840 /* Override any GCC internal prototype to avoid an error.
14841 Use char because int might match the return type of a GCC
14842 builtin and then its argument prototype would still apply. */
14847 /* The GNU C library defines this for functions which it implements
14848 to always fail with ENOSYS. Some functions are actually named
14849 something starting with __ and the normal name is an alias. */
14850 #if defined __stub_$ac_func || defined __stub___$ac_func
14857 return $ac_func ();
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (ac_try="$ac_link"
14864 case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_link") 2>conftest.er1
14871 grep -v '^ *+' conftest.er1 >conftest.err
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14877 { (case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_try") 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest$ac_exeext'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 eval "$as_ac_var=yes"
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 eval "$as_ac_var=no"
14904 rm -f core conftest.err conftest.$ac_objext \
14905 conftest$ac_exeext conftest.$ac_ext
14907 ac_res=`eval echo '${'$as_ac_var'}'`
14908 { echo "$as_me:$LINENO: result: $ac_res" >&5
14909 echo "${ECHO_T}$ac_res" >&6; }
14910 if test `eval echo '${'$as_ac_var'}'` = yes; then
14911 cat >>confdefs.h <<_ACEOF
14912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14923 for ac_func in log log2 log10 exp exp2
14925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14939 #define $ac_func innocuous_$ac_func
14941 /* System header to define __stub macros and hopefully few prototypes,
14942 which can conflict with char $ac_func (); below.
14943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14944 <limits.h> exists even on freestanding compilers. */
14947 # include <limits.h>
14949 # include <assert.h>
14954 /* Override any GCC internal prototype to avoid an error.
14955 Use char because int might match the return type of a GCC
14956 builtin and then its argument prototype would still apply. */
14961 /* The GNU C library defines this for functions which it implements
14962 to always fail with ENOSYS. Some functions are actually named
14963 something starting with __ and the normal name is an alias. */
14964 #if defined __stub_$ac_func || defined __stub___$ac_func
14971 return $ac_func ();
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (ac_try="$ac_link"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest$ac_exeext'
15001 { (case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_try") 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 eval "$as_ac_var=yes"
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15015 eval "$as_ac_var=no"
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15021 ac_res=`eval echo '${'$as_ac_var'}'`
15022 { echo "$as_me:$LINENO: result: $ac_res" >&5
15023 echo "${ECHO_T}$ac_res" >&6; }
15024 if test `eval echo '${'$as_ac_var'}'` = yes; then
15025 cat >>confdefs.h <<_ACEOF
15026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15037 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15053 #define $ac_func innocuous_$ac_func
15055 /* System header to define __stub macros and hopefully few prototypes,
15056 which can conflict with char $ac_func (); below.
15057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15058 <limits.h> exists even on freestanding compilers. */
15061 # include <limits.h>
15063 # include <assert.h>
15068 /* Override any GCC internal prototype to avoid an error.
15069 Use char because int might match the return type of a GCC
15070 builtin and then its argument prototype would still apply. */
15075 /* The GNU C library defines this for functions which it implements
15076 to always fail with ENOSYS. Some functions are actually named
15077 something starting with __ and the normal name is an alias. */
15078 #if defined __stub_$ac_func || defined __stub___$ac_func
15085 return $ac_func ();
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (ac_try="$ac_link"
15092 case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_link") 2>conftest.er1
15099 grep -v '^ *+' conftest.er1 >conftest.err
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15105 { (case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_try") 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest$ac_exeext'
15115 { (case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_try") 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
15124 eval "$as_ac_var=yes"
15126 echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15129 eval "$as_ac_var=no"
15132 rm -f core conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15135 ac_res=`eval echo '${'$as_ac_var'}'`
15136 { echo "$as_me:$LINENO: result: $ac_res" >&5
15137 echo "${ECHO_T}$ac_res" >&6; }
15138 if test `eval echo '${'$as_ac_var'}'` = yes; then
15139 cat >>confdefs.h <<_ACEOF
15140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15149 for ac_func in isatty mkdtemp mkstemp
15151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 cat >conftest.$ac_ext <<_ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15165 #define $ac_func innocuous_$ac_func
15167 /* System header to define __stub macros and hopefully few prototypes,
15168 which can conflict with char $ac_func (); below.
15169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15170 <limits.h> exists even on freestanding compilers. */
15173 # include <limits.h>
15175 # include <assert.h>
15180 /* Override any GCC internal prototype to avoid an error.
15181 Use char because int might match the return type of a GCC
15182 builtin and then its argument prototype would still apply. */
15187 /* The GNU C library defines this for functions which it implements
15188 to always fail with ENOSYS. Some functions are actually named
15189 something starting with __ and the normal name is an alias. */
15190 #if defined __stub_$ac_func || defined __stub___$ac_func
15197 return $ac_func ();
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (ac_try="$ac_link"
15204 case "(($ac_try" in
15205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206 *) ac_try_echo=$ac_try;;
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209 (eval "$ac_link") 2>conftest.er1
15211 grep -v '^ *+' conftest.er1 >conftest.err
15213 cat conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15217 { (case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_try") 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest$ac_exeext'
15227 { (case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_try") 2>&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; }; then
15236 eval "$as_ac_var=yes"
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15241 eval "$as_ac_var=no"
15244 rm -f core conftest.err conftest.$ac_objext \
15245 conftest$ac_exeext conftest.$ac_ext
15247 ac_res=`eval echo '${'$as_ac_var'}'`
15248 { echo "$as_me:$LINENO: result: $ac_res" >&5
15249 echo "${ECHO_T}$ac_res" >&6; }
15250 if test `eval echo '${'$as_ac_var'}'` = yes; then
15251 cat >>confdefs.h <<_ACEOF
15252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15264 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 cat >conftest.$ac_ext <<_ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15280 #define $ac_func innocuous_$ac_func
15282 /* System header to define __stub macros and hopefully few prototypes,
15283 which can conflict with char $ac_func (); below.
15284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15285 <limits.h> exists even on freestanding compilers. */
15288 # include <limits.h>
15290 # include <assert.h>
15295 /* Override any GCC internal prototype to avoid an error.
15296 Use char because int might match the return type of a GCC
15297 builtin and then its argument prototype would still apply. */
15302 /* The GNU C library defines this for functions which it implements
15303 to always fail with ENOSYS. Some functions are actually named
15304 something starting with __ and the normal name is an alias. */
15305 #if defined __stub_$ac_func || defined __stub___$ac_func
15312 return $ac_func ();
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (ac_try="$ac_link"
15319 case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_link") 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15332 { (case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_try") 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; } &&
15341 { ac_try='test -s conftest$ac_exeext'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 eval "$as_ac_var=yes"
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 eval "$as_ac_var=no"
15359 rm -f core conftest.err conftest.$ac_objext \
15360 conftest$ac_exeext conftest.$ac_ext
15362 ac_res=`eval echo '${'$as_ac_var'}'`
15363 { echo "$as_me:$LINENO: result: $ac_res" >&5
15364 echo "${ECHO_T}$ac_res" >&6; }
15365 if test `eval echo '${'$as_ac_var'}'` = yes; then
15366 cat >>confdefs.h <<_ACEOF
15367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15376 for ac_func in strerror strerror_r setenv
15378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 cat >conftest.$ac_ext <<_ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15392 #define $ac_func innocuous_$ac_func
15394 /* System header to define __stub macros and hopefully few prototypes,
15395 which can conflict with char $ac_func (); below.
15396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15397 <limits.h> exists even on freestanding compilers. */
15400 # include <limits.h>
15402 # include <assert.h>
15407 /* Override any GCC internal prototype to avoid an error.
15408 Use char because int might match the return type of a GCC
15409 builtin and then its argument prototype would still apply. */
15414 /* The GNU C library defines this for functions which it implements
15415 to always fail with ENOSYS. Some functions are actually named
15416 something starting with __ and the normal name is an alias. */
15417 #if defined __stub_$ac_func || defined __stub___$ac_func
15424 return $ac_func ();
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (ac_try="$ac_link"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_link") 2>conftest.er1
15438 grep -v '^ *+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15444 { (case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_try") 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest$ac_exeext'
15454 { (case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459 (eval "$ac_try") 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 eval "$as_ac_var=yes"
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 eval "$as_ac_var=no"
15471 rm -f core conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext conftest.$ac_ext
15474 ac_res=`eval echo '${'$as_ac_var'}'`
15475 { echo "$as_me:$LINENO: result: $ac_res" >&5
15476 echo "${ECHO_T}$ac_res" >&6; }
15477 if test `eval echo '${'$as_ac_var'}'` = yes; then
15478 cat >>confdefs.h <<_ACEOF
15479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15489 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15505 #define $ac_func innocuous_$ac_func
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15513 # include <limits.h>
15515 # include <assert.h>
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined __stub_$ac_func || defined __stub___$ac_func
15537 return $ac_func ();
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_link") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557 { (case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_try") 2>&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; } &&
15566 { ac_try='test -s conftest$ac_exeext'
15567 { (case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_try") 2>&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 eval "$as_ac_var=yes"
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15581 eval "$as_ac_var=no"
15584 rm -f core conftest.err conftest.$ac_objext \
15585 conftest$ac_exeext conftest.$ac_ext
15587 ac_res=`eval echo '${'$as_ac_var'}'`
15588 { echo "$as_me:$LINENO: result: $ac_res" >&5
15589 echo "${ECHO_T}$ac_res" >&6; }
15590 if test `eval echo '${'$as_ac_var'}'` = yes; then
15591 cat >>confdefs.h <<_ACEOF
15592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15603 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 cat >conftest.$ac_ext <<_ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15619 #define $ac_func innocuous_$ac_func
15621 /* System header to define __stub macros and hopefully few prototypes,
15622 which can conflict with char $ac_func (); below.
15623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15624 <limits.h> exists even on freestanding compilers. */
15627 # include <limits.h>
15629 # include <assert.h>
15634 /* Override any GCC internal prototype to avoid an error.
15635 Use char because int might match the return type of a GCC
15636 builtin and then its argument prototype would still apply. */
15641 /* The GNU C library defines this for functions which it implements
15642 to always fail with ENOSYS. Some functions are actually named
15643 something starting with __ and the normal name is an alias. */
15644 #if defined __stub_$ac_func || defined __stub___$ac_func
15651 return $ac_func ();
15656 rm -f conftest.$ac_objext conftest$ac_exeext
15657 if { (ac_try="$ac_link"
15658 case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_link") 2>conftest.er1
15665 grep -v '^ *+' conftest.er1 >conftest.err
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15671 { (case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_try") 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest$ac_exeext'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 eval "$as_ac_var=yes"
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 eval "$as_ac_var=no"
15698 rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15701 ac_res=`eval echo '${'$as_ac_var'}'`
15702 { echo "$as_me:$LINENO: result: $ac_res" >&5
15703 echo "${ECHO_T}$ac_res" >&6; }
15704 if test `eval echo '${'$as_ac_var'}'` = yes; then
15705 cat >>confdefs.h <<_ACEOF
15706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15714 for ac_func in futimes futimens
15716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15730 #define $ac_func innocuous_$ac_func
15732 /* System header to define __stub macros and hopefully few prototypes,
15733 which can conflict with char $ac_func (); below.
15734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15735 <limits.h> exists even on freestanding compilers. */
15738 # include <limits.h>
15740 # include <assert.h>
15745 /* Override any GCC internal prototype to avoid an error.
15746 Use char because int might match the return type of a GCC
15747 builtin and then its argument prototype would still apply. */
15752 /* The GNU C library defines this for functions which it implements
15753 to always fail with ENOSYS. Some functions are actually named
15754 something starting with __ and the normal name is an alias. */
15755 #if defined __stub_$ac_func || defined __stub___$ac_func
15762 return $ac_func ();
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (ac_try="$ac_link"
15769 case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>conftest.er1
15776 grep -v '^ *+' conftest.er1 >conftest.err
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15782 { (case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_try") 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } &&
15791 { ac_try='test -s conftest$ac_exeext'
15792 { (case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_try") 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 eval "$as_ac_var=yes"
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15806 eval "$as_ac_var=no"
15809 rm -f core conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15812 ac_res=`eval echo '${'$as_ac_var'}'`
15813 { echo "$as_me:$LINENO: result: $ac_res" >&5
15814 echo "${ECHO_T}$ac_res" >&6; }
15815 if test `eval echo '${'$as_ac_var'}'` = yes; then
15816 cat >>confdefs.h <<_ACEOF
15817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15823 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15824 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15825 if test "${llvm_cv_c_printf_a+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 ac_cpp='$CPP $CPPFLAGS'
15830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15834 if test "$cross_compiling" = yes; then
15835 llvmac_cv_c_printf_a=no
15837 cat >conftest.$ac_ext <<_ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15846 #include <stdlib.h>
15852 volatile double A, B;
15856 sprintf(Buffer, "%a", A);
15860 if (A != 0x1.999999999999ap-4)
15867 rm -f conftest$ac_exeext
15868 if { (ac_try="$ac_link"
15869 case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_link") 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15878 { (case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883 (eval "$ac_try") 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 llvm_cv_c_printf_a=yes
15889 echo "$as_me: program exited with status $ac_status" >&5
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 ( exit $ac_status )
15894 llvmac_cv_c_printf_a=no
15896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15901 ac_cpp='$CPP $CPPFLAGS'
15902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15907 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15908 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15909 if test "$llvm_cv_c_printf_a" = "yes"; then
15911 cat >>confdefs.h <<\_ACEOF
15912 #define HAVE_PRINTF_A 1
15919 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15920 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15921 if test "${ac_cv_func_rand48+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 ac_cpp='$CXXCPP $CPPFLAGS'
15927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15931 cat >conftest.$ac_ext <<_ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 #include <stdlib.h>
15941 srand48(0);lrand48();drand48();
15946 rm -f conftest.$ac_objext
15947 if { (ac_try="$ac_compile"
15948 case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_compile") 2>conftest.er1
15955 grep -v '^ *+' conftest.er1 >conftest.err
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15961 { (case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_try") 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; } &&
15970 { ac_try='test -s conftest.$ac_objext'
15971 { (case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_try") 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_cv_func_rand48=yes
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ac_cv_func_rand48=no
15988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 ac_cpp='$CPP $CPPFLAGS'
15991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15997 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15998 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
16000 if test "$ac_cv_func_rand48" = "yes" ; then
16002 cat >>confdefs.h <<\_ACEOF
16003 #define HAVE_RAND48 1
16009 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
16010 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
16011 if test "${ac_cv_have_decl_arc4random+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 cat >conftest.$ac_ext <<_ACEOF
16017 cat confdefs.h >>conftest.$ac_ext
16018 cat >>conftest.$ac_ext <<_ACEOF
16019 /* end confdefs.h. */
16020 $ac_includes_default
16025 char *p = (char *) arc4random;
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_compile") 2>conftest.er1
16042 grep -v '^ *+' conftest.er1 >conftest.err
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048 { (case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_try") 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_try") 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_cv_have_decl_arc4random=yes
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_cv_have_decl_arc4random=no
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16077 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16078 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16079 if test $ac_cv_have_decl_arc4random = yes; then
16081 cat >>confdefs.h <<_ACEOF
16082 #define HAVE_DECL_ARC4RANDOM 1
16087 cat >>confdefs.h <<_ACEOF
16088 #define HAVE_DECL_ARC4RANDOM 0
16096 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16097 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16098 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 cat >conftest.$ac_ext <<_ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h. */
16107 $ac_includes_default
16112 char *p = (char *) strerror_s;
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_compile") 2>conftest.er1
16129 grep -v '^ *+' conftest.er1 >conftest.err
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16135 { (case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_try") 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_cv_have_decl_strerror_s=yes
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_cv_have_decl_strerror_s=no
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16164 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16165 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16166 if test $ac_cv_have_decl_strerror_s = yes; then
16168 cat >>confdefs.h <<_ACEOF
16169 #define HAVE_DECL_STRERROR_S 1
16174 cat >>confdefs.h <<_ACEOF
16175 #define HAVE_DECL_STRERROR_S 0
16183 if test "$llvm_cv_os_type" = "MingW" ; then
16184 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16185 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16186 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 ac_check_lib_save_LIBS=$LIBS
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16198 /* Override any GCC internal prototype to avoid an error.
16199 Use char because int might match the return type of a GCC
16200 builtin and then its argument prototype would still apply. */
16213 rm -f conftest.$ac_objext conftest$ac_exeext
16214 if { (ac_try="$ac_link"
16215 case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_link") 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
16227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest$ac_exeext'
16238 { (case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_try") 2>&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 ac_cv_lib_gcc__alloca=yes
16249 echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 ac_cv_lib_gcc__alloca=no
16255 rm -f core conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16257 LIBS=$ac_check_lib_save_LIBS
16259 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16260 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16261 if test $ac_cv_lib_gcc__alloca = yes; then
16263 cat >>confdefs.h <<\_ACEOF
16264 #define HAVE__ALLOCA 1
16269 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16270 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16271 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 ac_check_lib_save_LIBS=$LIBS
16276 cat >conftest.$ac_ext <<_ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16283 /* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16293 return __alloca ();
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (ac_try="$ac_link"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_link") 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16313 { (case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_try") 2>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; } &&
16322 { ac_try='test -s conftest$ac_exeext'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_try") 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_cv_lib_gcc___alloca=yes
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_cv_lib_gcc___alloca=no
16340 rm -f core conftest.err conftest.$ac_objext \
16341 conftest$ac_exeext conftest.$ac_ext
16342 LIBS=$ac_check_lib_save_LIBS
16344 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16345 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16346 if test $ac_cv_lib_gcc___alloca = yes; then
16348 cat >>confdefs.h <<\_ACEOF
16349 #define HAVE___ALLOCA 1
16354 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16355 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16356 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 ac_check_lib_save_LIBS=$LIBS
16361 cat >conftest.$ac_ext <<_ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16368 /* Override any GCC internal prototype to avoid an error.
16369 Use char because int might match the return type of a GCC
16370 builtin and then its argument prototype would still apply. */
16378 return __chkstk ();
16383 rm -f conftest.$ac_objext conftest$ac_exeext
16384 if { (ac_try="$ac_link"
16385 case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_link") 2>conftest.er1
16392 grep -v '^ *+' conftest.er1 >conftest.err
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16398 { (case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_try") 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest$ac_exeext'
16408 { (case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_try") 2>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_cv_lib_gcc___chkstk=yes
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ac_cv_lib_gcc___chkstk=no
16425 rm -f core conftest.err conftest.$ac_objext \
16426 conftest$ac_exeext conftest.$ac_ext
16427 LIBS=$ac_check_lib_save_LIBS
16429 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16430 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16431 if test $ac_cv_lib_gcc___chkstk = yes; then
16433 cat >>confdefs.h <<\_ACEOF
16434 #define HAVE___CHKSTK 1
16439 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16440 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16441 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16444 ac_check_lib_save_LIBS=$LIBS
16446 cat >conftest.$ac_ext <<_ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16453 /* Override any GCC internal prototype to avoid an error.
16454 Use char because int might match the return type of a GCC
16455 builtin and then its argument prototype would still apply. */
16463 return ___chkstk ();
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (ac_try="$ac_link"
16470 case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_link") 2>conftest.er1
16477 grep -v '^ *+' conftest.er1 >conftest.err
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } &&
16482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16483 { (case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16488 (eval "$ac_try") 2>&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; } &&
16492 { ac_try='test -s conftest$ac_exeext'
16493 { (case "(($ac_try" in
16494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498 (eval "$ac_try") 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_lib_gcc____chkstk=yes
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16507 ac_cv_lib_gcc____chkstk=no
16510 rm -f core conftest.err conftest.$ac_objext \
16511 conftest$ac_exeext conftest.$ac_ext
16512 LIBS=$ac_check_lib_save_LIBS
16514 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16515 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16516 if test $ac_cv_lib_gcc____chkstk = yes; then
16518 cat >>confdefs.h <<\_ACEOF
16519 #define HAVE____CHKSTK 1
16525 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16526 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16527 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 ac_check_lib_save_LIBS=$LIBS
16532 cat >conftest.$ac_ext <<_ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16539 /* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16549 return __ashldi3 ();
16554 rm -f conftest.$ac_objext conftest$ac_exeext
16555 if { (ac_try="$ac_link"
16556 case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_link") 2>conftest.er1
16563 grep -v '^ *+' conftest.er1 >conftest.err
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16569 { (case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_try") 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try='test -s conftest$ac_exeext'
16579 { (case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_try") 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ac_cv_lib_gcc___ashldi3=yes
16590 echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16593 ac_cv_lib_gcc___ashldi3=no
16596 rm -f core conftest.err conftest.$ac_objext \
16597 conftest$ac_exeext conftest.$ac_ext
16598 LIBS=$ac_check_lib_save_LIBS
16600 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16601 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16602 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16604 cat >>confdefs.h <<\_ACEOF
16605 #define HAVE___ASHLDI3 1
16610 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16611 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16612 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 ac_check_lib_save_LIBS=$LIBS
16617 cat >conftest.$ac_ext <<_ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16624 /* Override any GCC internal prototype to avoid an error.
16625 Use char because int might match the return type of a GCC
16626 builtin and then its argument prototype would still apply. */
16634 return __ashrdi3 ();
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_link") 2>conftest.er1
16648 grep -v '^ *+' conftest.er1 >conftest.err
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
16653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16654 { (case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_try") 2>&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; } &&
16663 { ac_try='test -s conftest$ac_exeext'
16664 { (case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_try") 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_lib_gcc___ashrdi3=yes
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16678 ac_cv_lib_gcc___ashrdi3=no
16681 rm -f core conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16683 LIBS=$ac_check_lib_save_LIBS
16685 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16686 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16687 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16689 cat >>confdefs.h <<\_ACEOF
16690 #define HAVE___ASHRDI3 1
16695 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16696 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16697 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 ac_check_lib_save_LIBS=$LIBS
16702 cat >conftest.$ac_ext <<_ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16709 /* Override any GCC internal prototype to avoid an error.
16710 Use char because int might match the return type of a GCC
16711 builtin and then its argument prototype would still apply. */
16719 return __divdi3 ();
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (ac_try="$ac_link"
16726 case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_link") 2>conftest.er1
16733 grep -v '^ *+' conftest.er1 >conftest.err
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16739 { (case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_try") 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; } &&
16748 { ac_try='test -s conftest$ac_exeext'
16749 { (case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_try") 2>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 ac_cv_lib_gcc___divdi3=yes
16760 echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ac_cv_lib_gcc___divdi3=no
16766 rm -f core conftest.err conftest.$ac_objext \
16767 conftest$ac_exeext conftest.$ac_ext
16768 LIBS=$ac_check_lib_save_LIBS
16770 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16771 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16772 if test $ac_cv_lib_gcc___divdi3 = yes; then
16774 cat >>confdefs.h <<\_ACEOF
16775 #define HAVE___DIVDI3 1
16780 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16781 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16782 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 ac_check_lib_save_LIBS=$LIBS
16787 cat >conftest.$ac_ext <<_ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16804 return __fixdfdi ();
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest$ac_exeext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_cv_lib_gcc___fixdfdi=yes
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_cv_lib_gcc___fixdfdi=no
16851 rm -f core conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16855 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16856 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16857 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16859 cat >>confdefs.h <<\_ACEOF
16860 #define HAVE___FIXDFDI 1
16865 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16866 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16867 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 ac_check_lib_save_LIBS=$LIBS
16872 cat >conftest.$ac_ext <<_ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16879 /* Override any GCC internal prototype to avoid an error.
16880 Use char because int might match the return type of a GCC
16881 builtin and then its argument prototype would still apply. */
16889 return __fixsfdi ();
16894 rm -f conftest.$ac_objext conftest$ac_exeext
16895 if { (ac_try="$ac_link"
16896 case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_link") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest$ac_exeext'
16919 { (case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_try") 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_lib_gcc___fixsfdi=yes
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 ac_cv_lib_gcc___fixsfdi=no
16936 rm -f core conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16938 LIBS=$ac_check_lib_save_LIBS
16940 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16941 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16942 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16944 cat >>confdefs.h <<\_ACEOF
16945 #define HAVE___FIXSFDI 1
16950 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16951 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16952 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 ac_check_lib_save_LIBS=$LIBS
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16964 /* Override any GCC internal prototype to avoid an error.
16965 Use char because int might match the return type of a GCC
16966 builtin and then its argument prototype would still apply. */
16970 char __floatdidf ();
16974 return __floatdidf ();
16979 rm -f conftest.$ac_objext conftest$ac_exeext
16980 if { (ac_try="$ac_link"
16981 case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_link") 2>conftest.er1
16988 grep -v '^ *+' conftest.er1 >conftest.err
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest$ac_exeext'
17004 { (case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_try") 2>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 ac_cv_lib_gcc___floatdidf=yes
17015 echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17018 ac_cv_lib_gcc___floatdidf=no
17021 rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17023 LIBS=$ac_check_lib_save_LIBS
17025 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17026 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17027 if test $ac_cv_lib_gcc___floatdidf = yes; then
17029 cat >>confdefs.h <<\_ACEOF
17030 #define HAVE___FLOATDIDF 1
17035 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17036 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17037 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 ac_check_lib_save_LIBS=$LIBS
17042 cat >conftest.$ac_ext <<_ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17049 /* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17059 return __lshrdi3 ();
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (ac_try="$ac_link"
17066 case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
17073 grep -v '^ *+' conftest.er1 >conftest.err
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079 { (case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_try") 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
17098 ac_cv_lib_gcc___lshrdi3=yes
17100 echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17103 ac_cv_lib_gcc___lshrdi3=no
17106 rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17108 LIBS=$ac_check_lib_save_LIBS
17110 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17111 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17112 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17114 cat >>confdefs.h <<\_ACEOF
17115 #define HAVE___LSHRDI3 1
17120 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17121 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17122 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17125 ac_check_lib_save_LIBS=$LIBS
17127 cat >conftest.$ac_ext <<_ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17134 /* Override any GCC internal prototype to avoid an error.
17135 Use char because int might match the return type of a GCC
17136 builtin and then its argument prototype would still apply. */
17144 return __moddi3 ();
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (ac_try="$ac_link"
17151 case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_link") 2>conftest.er1
17158 grep -v '^ *+' conftest.er1 >conftest.err
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
17163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest$ac_exeext'
17174 { (case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_try") 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_cv_lib_gcc___moddi3=yes
17185 echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17188 ac_cv_lib_gcc___moddi3=no
17191 rm -f core conftest.err conftest.$ac_objext \
17192 conftest$ac_exeext conftest.$ac_ext
17193 LIBS=$ac_check_lib_save_LIBS
17195 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17196 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17197 if test $ac_cv_lib_gcc___moddi3 = yes; then
17199 cat >>confdefs.h <<\_ACEOF
17200 #define HAVE___MODDI3 1
17205 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17206 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17207 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 ac_check_lib_save_LIBS=$LIBS
17212 cat >conftest.$ac_ext <<_ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17219 /* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17229 return __udivdi3 ();
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (ac_try="$ac_link"
17236 case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_link") 2>conftest.er1
17243 grep -v '^ *+' conftest.er1 >conftest.err
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest$ac_exeext'
17259 { (case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_try") 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_cv_lib_gcc___udivdi3=yes
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17273 ac_cv_lib_gcc___udivdi3=no
17276 rm -f core conftest.err conftest.$ac_objext \
17277 conftest$ac_exeext conftest.$ac_ext
17278 LIBS=$ac_check_lib_save_LIBS
17280 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17281 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17282 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17284 cat >>confdefs.h <<\_ACEOF
17285 #define HAVE___UDIVDI3 1
17290 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17291 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17292 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 ac_check_lib_save_LIBS=$LIBS
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17304 /* Override any GCC internal prototype to avoid an error.
17305 Use char because int might match the return type of a GCC
17306 builtin and then its argument prototype would still apply. */
17314 return __umoddi3 ();
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (ac_try="$ac_link"
17321 case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_link") 2>conftest.er1
17328 grep -v '^ *+' conftest.er1 >conftest.err
17330 cat conftest.err >&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } &&
17333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17334 { (case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_try") 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest$ac_exeext'
17344 { (case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_try") 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_lib_gcc___umoddi3=yes
17355 echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17358 ac_cv_lib_gcc___umoddi3=no
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17363 LIBS=$ac_check_lib_save_LIBS
17365 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17366 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17367 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17369 cat >>confdefs.h <<\_ACEOF
17370 #define HAVE___UMODDI3 1
17376 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17377 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17378 if test "${ac_cv_lib_gcc___main+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 ac_check_lib_save_LIBS=$LIBS
17383 cat >conftest.$ac_ext <<_ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17390 /* Override any GCC internal prototype to avoid an error.
17391 Use char because int might match the return type of a GCC
17392 builtin and then its argument prototype would still apply. */
17405 rm -f conftest.$ac_objext conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_link") 2>conftest.er1
17414 grep -v '^ *+' conftest.er1 >conftest.err
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17420 { (case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_try") 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_try") 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_cv_lib_gcc___main=yes
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17444 ac_cv_lib_gcc___main=no
17447 rm -f core conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
17449 LIBS=$ac_check_lib_save_LIBS
17451 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17452 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17453 if test $ac_cv_lib_gcc___main = yes; then
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE___MAIN 1
17461 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17462 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17463 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 ac_check_lib_save_LIBS=$LIBS
17468 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17475 /* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17485 return __cmpdi2 ();
17490 rm -f conftest.$ac_objext conftest$ac_exeext
17491 if { (ac_try="$ac_link"
17492 case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_link") 2>conftest.er1
17499 grep -v '^ *+' conftest.er1 >conftest.err
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest$ac_exeext'
17515 { (case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_try") 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_cv_lib_gcc___cmpdi2=yes
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 ac_cv_lib_gcc___cmpdi2=no
17532 rm -f core conftest.err conftest.$ac_objext \
17533 conftest$ac_exeext conftest.$ac_ext
17534 LIBS=$ac_check_lib_save_LIBS
17536 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17537 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17538 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17540 cat >>confdefs.h <<\_ACEOF
17541 #define HAVE___CMPDI2 1
17548 if test "$llvm_cv_os_type" = "MingW" ; then
17549 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17550 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17551 cat >conftest.$ac_ext <<_ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17559 #include <windows.h>
17560 #include <imagehlp.h>
17561 extern void foo(PENUMLOADED_MODULES_CALLBACK);
17562 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17566 rm -f conftest.$ac_objext
17567 if { (ac_try="$ac_compile"
17568 case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_compile") 2>conftest.er1
17575 grep -v '^ *+' conftest.er1 >conftest.err
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
17580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17581 { (case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_try") 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest.$ac_objext'
17591 { (case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_try") 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17601 { echo "$as_me:$LINENO: result: yes" >&5
17602 echo "${ECHO_T}yes" >&6; }
17603 llvm_cv_win32_elmcb_pcstr="PCSTR"
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17610 { echo "$as_me:$LINENO: result: no" >&5
17611 echo "${ECHO_T}no" >&6; }
17612 llvm_cv_win32_elmcb_pcstr="PSTR"
17616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17618 cat >>confdefs.h <<_ACEOF
17619 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17626 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17627 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17628 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 ac_cpp='$CXXCPP $CPPFLAGS'
17634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17653 rm -f conftest.$ac_objext
17654 if { (ac_try="$ac_compile"
17655 case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_compile") 2>conftest.er1
17662 grep -v '^ *+' conftest.er1 >conftest.err
17664 cat conftest.err >&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } &&
17667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; } &&
17677 { ac_try='test -s conftest.$ac_objext'
17678 { (case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_try") 2>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17687 ac_cv_func_isnan_in_math_h=yes
17689 echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17692 ac_cv_func_isnan_in_math_h=no
17695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17697 ac_cpp='$CPP $CPPFLAGS'
17698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17705 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17708 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17710 cat >>confdefs.h <<\_ACEOF
17711 #define HAVE_ISNAN_IN_MATH_H 1
17717 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17718 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17719 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 ac_cpp='$CXXCPP $CPPFLAGS'
17725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17744 rm -f conftest.$ac_objext
17745 if { (ac_try="$ac_compile"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_compile") 2>conftest.er1
17753 grep -v '^ *+' conftest.er1 >conftest.err
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest.$ac_objext'
17769 { (case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_try") 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_cv_func_isnan_in_cmath=yes
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 ac_cv_func_isnan_in_cmath=no
17786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788 ac_cpp='$CPP $CPPFLAGS'
17789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17795 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17796 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17798 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_ISNAN_IN_CMATH 1
17807 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17808 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17809 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 ac_cpp='$CXXCPP $CPPFLAGS'
17815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17829 float f; std::isnan(f);
17834 rm -f conftest.$ac_objext
17835 if { (ac_try="$ac_compile"
17836 case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17843 grep -v '^ *+' conftest.er1 >conftest.err
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_func_std_isnan_in_cmath=yes
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 ac_cv_func_std_isnan_in_cmath=no
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 ac_cpp='$CPP $CPPFLAGS'
17879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17885 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17886 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17888 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17890 cat >>confdefs.h <<\_ACEOF
17891 #define HAVE_STD_ISNAN_IN_CMATH 1
17899 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17900 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17901 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17906 ac_cpp='$CXXCPP $CPPFLAGS'
17907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17911 cat >conftest.$ac_ext <<_ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_compile") 2>conftest.er1
17935 grep -v '^ *+' conftest.er1 >conftest.err
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest.$ac_objext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_func_isinf_in_math_h=yes
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17965 ac_cv_func_isinf_in_math_h=no
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970 ac_cpp='$CPP $CPPFLAGS'
17971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17977 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17978 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17980 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17982 cat >>confdefs.h <<\_ACEOF
17983 #define HAVE_ISINF_IN_MATH_H 1
17989 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17990 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17991 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 ac_cpp='$CXXCPP $CPPFLAGS'
17997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18001 cat >conftest.$ac_ext <<_ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18016 rm -f conftest.$ac_objext
18017 if { (ac_try="$ac_compile"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_compile") 2>conftest.er1
18025 grep -v '^ *+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } &&
18030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; } &&
18040 { ac_try='test -s conftest.$ac_objext'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 ac_cv_func_isinf_in_cmath=yes
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 ac_cv_func_isinf_in_cmath=no
18058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 ac_cpp='$CPP $CPPFLAGS'
18061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18067 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18068 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18070 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18072 cat >>confdefs.h <<\_ACEOF
18073 #define HAVE_ISINF_IN_CMATH 1
18079 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18080 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18081 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18086 ac_cpp='$CXXCPP $CPPFLAGS'
18087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18091 cat >conftest.$ac_ext <<_ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18101 float f; std::isinf(f);
18106 rm -f conftest.$ac_objext
18107 if { (ac_try="$ac_compile"
18108 case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_compile") 2>conftest.er1
18115 grep -v '^ *+' conftest.er1 >conftest.err
18117 cat conftest.err >&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
18120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18121 { (case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_try") 2>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest.$ac_objext'
18131 { (case "(($ac_try" in
18132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136 (eval "$ac_try") 2>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 ac_cv_func_std_isinf_in_cmath=yes
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 ac_cv_func_std_isinf_in_cmath=no
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 ac_cpp='$CPP $CPPFLAGS'
18151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18157 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18158 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18160 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18162 cat >>confdefs.h <<\_ACEOF
18163 #define HAVE_STD_ISINF_IN_CMATH 1
18169 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18170 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18171 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 ac_cpp='$CXXCPP $CPPFLAGS'
18177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18181 cat >conftest.$ac_ext <<_ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18187 #include <ieeefp.h>
18191 float f; finite(f);
18196 rm -f conftest.$ac_objext
18197 if { (ac_try="$ac_compile"
18198 case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_compile") 2>conftest.er1
18205 grep -v '^ *+' conftest.er1 >conftest.err
18207 cat conftest.err >&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18211 { (case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_try") 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } &&
18220 { ac_try='test -s conftest.$ac_objext'
18221 { (case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_try") 2>&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 ac_cv_func_finite_in_ieeefp_h=yes
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18235 ac_cv_func_finite_in_ieeefp_h=no
18238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18240 ac_cpp='$CPP $CPPFLAGS'
18241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18247 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18248 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18250 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18252 cat >>confdefs.h <<\_ACEOF
18253 #define HAVE_FINITE_IN_IEEEFP_H 1
18260 if test "$llvm_cv_platform_type" = "Unix" ; then
18263 for ac_header in stdlib.h unistd.h
18265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 ac_res=`eval echo '${'$as_ac_Header'}'`
18273 { echo "$as_me:$LINENO: result: $ac_res" >&5
18274 echo "${ECHO_T}$ac_res" >&6; }
18276 # Is the header compilable?
18277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18279 cat >conftest.$ac_ext <<_ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 $ac_includes_default
18286 #include <$ac_header>
18288 rm -f conftest.$ac_objext
18289 if { (ac_try="$ac_compile"
18290 case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_compile") 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303 { (case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_try") 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest.$ac_objext'
18313 { (case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_try") 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_header_compiler=yes
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 ac_header_compiler=no
18330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18332 echo "${ECHO_T}$ac_header_compiler" >&6; }
18334 # Is the header present?
18335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 #include <$ac_header>
18345 if { (ac_try="$ac_cpp conftest.$ac_ext"
18346 case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18353 grep -v '^ *+' conftest.er1 >conftest.err
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } >/dev/null; then
18358 if test -s conftest.err; then
18359 ac_cpp_err=$ac_c_preproc_warn_flag
18360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18367 if test -z "$ac_cpp_err"; then
18368 ac_header_preproc=yes
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18373 ac_header_preproc=no
18376 rm -f conftest.err conftest.$ac_ext
18377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18378 echo "${ECHO_T}$ac_header_preproc" >&6; }
18380 # So? What about this header?
18381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18387 ac_header_preproc=yes
18390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18403 ## ------------------------------------ ##
18404 ## Report this to http://llvm.org/bugs/ ##
18405 ## ------------------------------------ ##
18407 ) | sed "s/^/$as_me: WARNING: /" >&2
18410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 eval "$as_ac_Header=\$ac_header_preproc"
18417 ac_res=`eval echo '${'$as_ac_Header'}'`
18418 { echo "$as_me:$LINENO: result: $ac_res" >&5
18419 echo "${ECHO_T}$ac_res" >&6; }
18422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18423 cat >>confdefs.h <<_ACEOF
18424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18432 for ac_func in getpagesize
18434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18448 #define $ac_func innocuous_$ac_func
18450 /* System header to define __stub macros and hopefully few prototypes,
18451 which can conflict with char $ac_func (); below.
18452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453 <limits.h> exists even on freestanding compilers. */
18456 # include <limits.h>
18458 # include <assert.h>
18463 /* Override any GCC internal prototype to avoid an error.
18464 Use char because int might match the return type of a GCC
18465 builtin and then its argument prototype would still apply. */
18470 /* The GNU C library defines this for functions which it implements
18471 to always fail with ENOSYS. Some functions are actually named
18472 something starting with __ and the normal name is an alias. */
18473 #if defined __stub_$ac_func || defined __stub___$ac_func
18480 return $ac_func ();
18485 rm -f conftest.$ac_objext conftest$ac_exeext
18486 if { (ac_try="$ac_link"
18487 case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_link") 2>conftest.er1
18494 grep -v '^ *+' conftest.er1 >conftest.err
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18500 { (case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_try") 2>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest$ac_exeext'
18510 { (case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_try") 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18519 eval "$as_ac_var=yes"
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18524 eval "$as_ac_var=no"
18527 rm -f core conftest.err conftest.$ac_objext \
18528 conftest$ac_exeext conftest.$ac_ext
18530 ac_res=`eval echo '${'$as_ac_var'}'`
18531 { echo "$as_me:$LINENO: result: $ac_res" >&5
18532 echo "${ECHO_T}$ac_res" >&6; }
18533 if test `eval echo '${'$as_ac_var'}'` = yes; then
18534 cat >>confdefs.h <<_ACEOF
18535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18541 { echo "$as_me:$LINENO: checking for working mmap" >&5
18542 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18543 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
18546 if test "$cross_compiling" = yes; then
18547 ac_cv_func_mmap_fixed_mapped=no
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18555 $ac_includes_default
18556 /* malloc might have been renamed as rpl_malloc. */
18559 /* Thanks to Mike Haertel and Jim Avera for this test.
18560 Here is a matrix of mmap possibilities:
18561 mmap private not fixed
18562 mmap private fixed at somewhere currently unmapped
18563 mmap private fixed at somewhere already mapped
18564 mmap shared not fixed
18565 mmap shared fixed at somewhere currently unmapped
18566 mmap shared fixed at somewhere already mapped
18567 For private mappings, we should verify that changes cannot be read()
18568 back from the file, nor mmap's back from the file at a different
18569 address. (There have been systems where private was not correctly
18570 implemented like the infamous i386 svr4.0, and systems where the
18571 VM page cache was not coherent with the file system buffer cache
18572 like early versions of FreeBSD and possibly contemporary NetBSD.)
18573 For shared mappings, we should conversely verify that changes get
18574 propagated back to all the places they're supposed to be.
18576 Grep wants private fixed already mapped.
18577 The main things grep needs to know about mmap are:
18578 * does it exist and is it safe to write into the mmap'd area
18579 * how to use it (BSD variants) */
18582 #include <sys/mman.h>
18584 #if !STDC_HEADERS && !HAVE_STDLIB_H
18588 /* This mess was copied from the GNU getpagesize.h. */
18589 #if !HAVE_GETPAGESIZE
18590 /* Assume that all systems that can run configure have sys/param.h. */
18591 # if !HAVE_SYS_PARAM_H
18592 # define HAVE_SYS_PARAM_H 1
18595 # ifdef _SC_PAGESIZE
18596 # define getpagesize() sysconf(_SC_PAGESIZE)
18597 # else /* no _SC_PAGESIZE */
18598 # if HAVE_SYS_PARAM_H
18599 # include <sys/param.h>
18600 # ifdef EXEC_PAGESIZE
18601 # define getpagesize() EXEC_PAGESIZE
18602 # else /* no EXEC_PAGESIZE */
18604 # define getpagesize() NBPG * CLSIZE
18607 # endif /* no CLSIZE */
18608 # else /* no NBPG */
18610 # define getpagesize() NBPC
18611 # else /* no NBPC */
18613 # define getpagesize() PAGESIZE
18614 # endif /* PAGESIZE */
18615 # endif /* no NBPC */
18616 # endif /* no NBPG */
18617 # endif /* no EXEC_PAGESIZE */
18618 # else /* no HAVE_SYS_PARAM_H */
18619 # define getpagesize() 8192 /* punt totally */
18620 # endif /* no HAVE_SYS_PARAM_H */
18621 # endif /* no _SC_PAGESIZE */
18623 #endif /* no HAVE_GETPAGESIZE */
18628 char *data, *data2, *data3;
18632 pagesize = getpagesize ();
18634 /* First, make a file with some known garbage in it. */
18635 data = (char *) malloc (pagesize);
18638 for (i = 0; i < pagesize; ++i)
18639 *(data + i) = rand ();
18641 fd = creat ("conftest.mmap", 0600);
18644 if (write (fd, data, pagesize) != pagesize)
18648 /* Next, try to mmap the file at a fixed address which already has
18649 something else allocated at it. If we can, also make sure that
18650 we see the same garbage. */
18651 fd = open ("conftest.mmap", O_RDWR);
18654 data2 = (char *) malloc (2 * pagesize);
18657 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18658 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18659 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18661 for (i = 0; i < pagesize; ++i)
18662 if (*(data + i) != *(data2 + i))
18665 /* Finally, make sure that changes to the mapped area do not
18666 percolate back to the file as seen by read(). (This is a bug on
18667 some variants of i386 svr4.0.) */
18668 for (i = 0; i < pagesize; ++i)
18669 *(data2 + i) = *(data2 + i) + 1;
18670 data3 = (char *) malloc (pagesize);
18673 if (read (fd, data3, pagesize) != pagesize)
18675 for (i = 0; i < pagesize; ++i)
18676 if (*(data + i) != *(data3 + i))
18682 rm -f conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18693 { (case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_try") 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_func_mmap_fixed_mapped=yes
18704 echo "$as_me: program exited with status $ac_status" >&5
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18708 ( exit $ac_status )
18709 ac_cv_func_mmap_fixed_mapped=no
18711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18716 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18717 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18718 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18720 cat >>confdefs.h <<\_ACEOF
18721 #define HAVE_MMAP 1
18725 rm -f conftest.mmap
18727 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18728 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18729 if test "${ac_cv_func_mmap_file+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 ac_cpp='$CPP $CPPFLAGS'
18734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18738 if test "$cross_compiling" = yes; then
18739 ac_cv_func_mmap_file=no
18741 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18749 #include <sys/types.h>
18750 #include <sys/mman.h>
18758 fd = creat ("foo",0777);
18759 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18761 return (fd != (int) MAP_FAILED);
18766 rm -f conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_link") 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18786 ac_cv_func_mmap_file=yes
18788 echo "$as_me: program exited with status $ac_status" >&5
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ( exit $ac_status )
18793 ac_cv_func_mmap_file=no
18795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18800 ac_cpp='$CPP $CPPFLAGS'
18801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18807 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18808 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18809 if test "$ac_cv_func_mmap_file" = yes; then
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE_MMAP_FILE
18819 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18820 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18821 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 if test "$llvm_cv_os_type" = "Interix" ; then
18825 ac_cv_need_dev_zero_for_mmap=yes
18827 ac_cv_need_dev_zero_for_mmap=no
18831 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18832 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18833 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18835 cat >>confdefs.h <<\_ACEOF
18836 #define NEED_DEV_ZERO_FOR_MMAP 1
18841 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18843 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18844 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18846 if test "$ac_cv_func_mmap_file" = "no"
18848 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18849 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18853 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18854 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18856 ac_cpp='$CXXCPP $CPPFLAGS'
18857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18861 cat >conftest.$ac_ext <<_ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18870 volatile unsigned long val = 1;
18871 __sync_synchronize();
18872 __sync_val_compare_and_swap(&val, 1, 0);
18873 __sync_add_and_fetch(&val, 1);
18874 __sync_sub_and_fetch(&val, 1);
18880 rm -f conftest.$ac_objext conftest$ac_exeext
18881 if { (ac_try="$ac_link"
18882 case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_link") 2>conftest.er1
18889 grep -v '^ *+' conftest.er1 >conftest.err
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
18894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18895 { (case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest$ac_exeext'
18905 { (case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_try") 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18915 { echo "$as_me:$LINENO: result: yes" >&5
18916 echo "${ECHO_T}yes" >&6; }
18918 cat >>confdefs.h <<\_ACEOF
18919 #define LLVM_HAS_ATOMICS 1
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18928 { echo "$as_me:$LINENO: result: no" >&5
18929 echo "${ECHO_T}no" >&6; }
18931 cat >>confdefs.h <<\_ACEOF
18932 #define LLVM_HAS_ATOMICS 0
18935 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18936 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18940 rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
18943 ac_cpp='$CPP $CPPFLAGS'
18944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18950 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18951 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18952 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18953 if test "${llvm_cv_linux_mixed+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 ac_cpp='$CPP $CPPFLAGS'
18958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18969 error: Not x86-64 even if uname says so!
18980 rm -f conftest.$ac_objext
18981 if { (ac_try="$ac_compile"
18982 case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_compile") 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest.$ac_objext'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 llvm_cv_linux_mixed=no
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 llvm_cv_linux_mixed=yes
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 ac_cpp='$CPP $CPPFLAGS'
19025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19031 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19032 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19034 if test "$llvm_cv_linux_mixed" = "yes"; then
19035 llvm_cv_target_arch="x86"
19041 for ac_func in __dso_handle
19043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 cat >conftest.$ac_ext <<_ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19057 #define $ac_func innocuous_$ac_func
19059 /* System header to define __stub macros and hopefully few prototypes,
19060 which can conflict with char $ac_func (); below.
19061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19062 <limits.h> exists even on freestanding compilers. */
19065 # include <limits.h>
19067 # include <assert.h>
19072 /* Override any GCC internal prototype to avoid an error.
19073 Use char because int might match the return type of a GCC
19074 builtin and then its argument prototype would still apply. */
19079 /* The GNU C library defines this for functions which it implements
19080 to always fail with ENOSYS. Some functions are actually named
19081 something starting with __ and the normal name is an alias. */
19082 #if defined __stub_$ac_func || defined __stub___$ac_func
19089 return $ac_func ();
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>conftest.er1
19103 grep -v '^ *+' conftest.er1 >conftest.err
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
19108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109 { (case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_try") 2>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_try") 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 eval "$as_ac_var=yes"
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 eval "$as_ac_var=no"
19136 rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19139 ac_res=`eval echo '${'$as_ac_var'}'`
19140 { echo "$as_me:$LINENO: result: $ac_res" >&5
19141 echo "${ECHO_T}$ac_res" >&6; }
19142 if test `eval echo '${'$as_ac_var'}'` = yes; then
19143 cat >>confdefs.h <<_ACEOF
19144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19151 SHLIBEXT=$llvm_shlib_ext
19154 if test "${prefix}" = "NONE" ; then
19155 prefix="/usr/local"
19157 eval LLVM_PREFIX="${prefix}";
19158 eval LLVM_BINDIR="${prefix}/bin";
19159 eval LLVM_DATADIR="${prefix}/share/llvm";
19160 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19161 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19162 eval LLVM_INCLUDEDIR="${prefix}/include";
19163 eval LLVM_INFODIR="${prefix}/info";
19164 eval LLVM_MANDIR="${prefix}/man";
19165 LLVM_CONFIGTIME=`date`
19176 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19177 LLVM_CONFIGTIME="(timestamp not enabled)"
19181 cat >>confdefs.h <<_ACEOF
19182 #define LLVM_PREFIX "$LLVM_PREFIX"
19186 cat >>confdefs.h <<_ACEOF
19187 #define LLVM_BINDIR "$LLVM_BINDIR"
19191 cat >>confdefs.h <<_ACEOF
19192 #define LLVM_DATADIR "$LLVM_DATADIR"
19196 cat >>confdefs.h <<_ACEOF
19197 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19201 cat >>confdefs.h <<_ACEOF
19202 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19206 cat >>confdefs.h <<_ACEOF
19207 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19211 cat >>confdefs.h <<_ACEOF
19212 #define LLVM_INFODIR "$LLVM_INFODIR"
19216 cat >>confdefs.h <<_ACEOF
19217 #define LLVM_MANDIR "$LLVM_MANDIR"
19221 cat >>confdefs.h <<_ACEOF
19222 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19226 cat >>confdefs.h <<_ACEOF
19227 #define LLVM_HOST_TRIPLE "$host"
19231 cat >>confdefs.h <<_ACEOF
19232 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19236 if test "$BINDINGS_TO_BUILD" = auto ; then
19237 BINDINGS_TO_BUILD=""
19238 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19239 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19242 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19248 binding_prereqs_failed=0
19249 for a_binding in $BINDINGS_TO_BUILD ; do
19250 case "$a_binding" in
19252 if test "x$OCAMLC" = x ; then
19253 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19254 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19255 binding_prereqs_failed=1
19257 if test "x$OCAMLDEP" = x ; then
19258 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19259 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19260 binding_prereqs_failed=1
19262 if test "x$OCAMLOPT" = x ; then
19263 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19264 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19266 if test "x$with_ocaml_libdir" != xauto ; then
19267 OCAML_LIBDIR=$with_ocaml_libdir
19270 ocaml_stdlib="`"$OCAMLC" -where`"
19271 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19273 # ocaml stdlib is beneath our prefix; use stdlib
19274 OCAML_LIBDIR=$ocaml_stdlib
19277 # ocaml stdlib is outside our prefix; use libdir/ocaml
19278 OCAML_LIBDIR=${prefix}/lib/ocaml
19285 if test "$binding_prereqs_failed" = 1 ; then
19286 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19287 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19288 { (exit 1); exit 1; }; }
19291 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19292 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19293 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 ac_cpp='$CXXCPP $CPPFLAGS'
19298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19302 oldcxxflags="$CXXFLAGS"
19303 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19304 cat >conftest.$ac_ext <<_ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19310 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_compile") 2>conftest.er1
19328 grep -v '^ *+' conftest.er1 >conftest.err
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19334 { (case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_try") 2>&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest.$ac_objext'
19344 { (case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_try") 2>&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 llvm_cv_cxx_visibility_inlines_hidden=yes
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 llvm_cv_cxx_visibility_inlines_hidden=no
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362 CXXFLAGS="$oldcxxflags"
19364 ac_cpp='$CPP $CPPFLAGS'
19365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19371 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19372 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19373 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19374 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19377 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19382 if test "$llvm_cv_link_use_r" = "yes" ; then
19389 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19390 RDYNAMIC="-rdynamic"
19397 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19404 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19406 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19408 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19410 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19412 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19415 ac_config_files="$ac_config_files Makefile.config"
19418 ac_config_files="$ac_config_files llvm.spec"
19421 ac_config_files="$ac_config_files docs/doxygen.cfg"
19424 if test "${clang_src_root}" = ""; then
19425 clang_src_root="$srcdir/tools/clang"
19427 if test -f ${clang_src_root}/README.txt; then
19428 configh="include/clang/Config/config.h"
19429 doxy="docs/doxygen.cfg"
19430 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19432 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19436 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19439 test "x$program_prefix" = "xNONE" && program_prefix=""
19443 ac_config_commands="$ac_config_commands setup"
19445 ac_config_commands="$ac_config_commands Makefile"
19448 ac_config_commands="$ac_config_commands Makefile.common"
19451 ac_config_commands="$ac_config_commands examples/Makefile"
19454 ac_config_commands="$ac_config_commands lib/Makefile"
19457 ac_config_commands="$ac_config_commands test/Makefile"
19460 ac_config_commands="$ac_config_commands test/Makefile.tests"
19463 ac_config_commands="$ac_config_commands unittests/Makefile"
19466 ac_config_commands="$ac_config_commands tools/Makefile"
19469 ac_config_commands="$ac_config_commands utils/Makefile"
19472 ac_config_commands="$ac_config_commands projects/Makefile"
19475 ac_config_commands="$ac_config_commands bindings/Makefile"
19478 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19482 cat >confcache <<\_ACEOF
19483 # This file is a shell script that caches the results of configure
19484 # tests run on this system so they can be shared between configure
19485 # scripts and configure runs, see configure's option --config-cache.
19486 # It is not useful on other systems. If it contains results you don't
19487 # want to keep, you may remove or edit it.
19489 # config.status only pays attention to the cache file if you give it
19490 # the --recheck option to rerun configure.
19492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19494 # following values.
19498 # The following way of writing the cache mishandles newlines in values,
19499 # but we know of no workaround that is simple, portable, and efficient.
19500 # So, we kill variables containing newlines.
19501 # Ultrix sh set writes to stderr and can't be redirected directly,
19502 # and sets the high bit in the cache file unless we assign to the vars.
19504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19505 eval ac_val=\$$ac_var
19509 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19510 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19513 _ | IFS | as_nl) ;; #(
19514 *) $as_unset $ac_var ;;
19520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19521 *${as_nl}ac_space=\ *)
19522 # `set' does not quote correctly, so add quotes (double-quote
19523 # substitution turns \\\\ into \\, and sed turns \\ into \).
19526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19529 # `set' quotes correctly as required by POSIX, so do not add quotes.
19530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19544 if test -w "$cache_file"; then
19545 test "x$cache_file" != "x/dev/null" &&
19546 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19547 echo "$as_me: updating cache $cache_file" >&6;}
19548 cat confcache >$cache_file
19550 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19551 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19557 # Let make expand exec_prefix.
19558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19560 DEFS=-DHAVE_CONFIG_H
19564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19565 # 1. Remove the extension, and $U if already installed.
19566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19567 ac_i=`echo "$ac_i" | sed "$ac_script"`
19568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19569 # will be set to the directory where LIBOBJS objects are built.
19570 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19571 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19573 LIBOBJS=$ac_libobjs
19575 LTLIBOBJS=$ac_ltlibobjs
19579 : ${CONFIG_STATUS=./config.status}
19580 ac_clean_files_save=$ac_clean_files
19581 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19582 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19583 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19584 cat >$CONFIG_STATUS <<_ACEOF
19586 # Generated by $as_me.
19587 # Run this file to recreate the current configuration.
19588 # Compiler output produced by configure, useful for debugging
19589 # configure, is in config.log if it exists.
19592 ac_cs_recheck=false
19594 SHELL=\${CONFIG_SHELL-$SHELL}
19597 cat >>$CONFIG_STATUS <<\_ACEOF
19598 ## --------------------- ##
19599 ## M4sh Initialization. ##
19600 ## --------------------- ##
19602 # Be Bourne compatible
19603 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19606 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19607 # is contrary to our usage. Disable this feature.
19608 alias -g '${1+"$@"}'='"$@"'
19609 setopt NO_GLOB_SUBST
19611 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19613 BIN_SH=xpg4; export BIN_SH # for Tru64
19614 DUALCASE=1; export DUALCASE # for MKS sh
19618 # Avoid depending upon Character Ranges.
19619 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19620 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19621 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19622 as_cr_digits='0123456789'
19623 as_cr_alnum=$as_cr_Letters$as_cr_digits
19625 # The user is always right.
19626 if test "${PATH_SEPARATOR+set}" != set; then
19627 echo "#! /bin/sh" >conf$$.sh
19628 echo "exit 0" >>conf$$.sh
19630 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19638 # Support unset when possible.
19639 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19647 # We need space, tab and new line, in precisely that order. Quoting is
19648 # there to prevent editors from complaining about space-tab.
19649 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19650 # splitting by setting IFS to empty value.)
19655 # Find who we are. Look in the path if we contain no directory separator.
19657 *[\\/]* ) as_myself=$0 ;;
19658 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19659 for as_dir in $PATH
19662 test -z "$as_dir" && as_dir=.
19663 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19669 # We did not find ourselves, most probably we were run as `sh COMMAND'
19670 # in which case we are not to be found in the path.
19671 if test "x$as_myself" = x; then
19674 if test ! -f "$as_myself"; then
19675 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19676 { (exit 1); exit 1; }
19679 # Work around bugs in pre-3.0 UWIN ksh.
19680 for as_var in ENV MAIL MAILPATH
19681 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19689 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19690 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19691 LC_TELEPHONE LC_TIME
19693 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19694 eval $as_var=C; export $as_var
19696 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19700 # Required to use basename.
19701 if expr a : '\(a\)' >/dev/null 2>&1 &&
19702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19708 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19709 as_basename=basename
19715 # Name of the executable.
19716 as_me=`$as_basename -- "$0" ||
19717 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19718 X"$0" : 'X\(//\)$' \| \
19719 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19721 sed '/^.*\/\([^/][^/]*\)\/*$/{
19740 as_lineno_1=$LINENO
19741 as_lineno_2=$LINENO
19742 test "x$as_lineno_1" != "x$as_lineno_2" &&
19743 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19746 # uniformly replaced by the line number. The first 'sed' inserts a
19747 # line-number line after each line using $LINENO; the second 'sed'
19748 # does the real work. The second script uses 'N' to pair each
19749 # line-number line with the line containing $LINENO, and appends
19750 # trailing '-' during substitution so that $LINENO is not a special
19751 # case at line end.
19752 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19753 # scripts with optimization help from Paolo Bonzini. Blame Lee
19754 # E. McMahon (1931-1989) for sed's syntax. :-)
19766 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19769 ' >$as_me.lineno &&
19770 chmod +x "$as_me.lineno" ||
19771 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19772 { (exit 1); exit 1; }; }
19774 # Don't try to exec as it changes $[0], causing all sort of problems
19775 # (the dirname of $[0] is not the place where we might find the
19776 # original and so on. Autoconf is especially sensitive to this).
19777 . "./$as_me.lineno"
19778 # Exit status is that of the last command.
19783 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19789 ECHO_C= ECHO_N= ECHO_T=
19790 case `echo -n x` in
19792 case `echo 'x\c'` in
19793 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19800 if expr a : '\(a\)' >/dev/null 2>&1 &&
19801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19807 rm -f conf$$ conf$$.exe conf$$.file
19808 if test -d conf$$.dir; then
19809 rm -f conf$$.dir/conf$$.file
19815 if ln -s conf$$.file conf$$ 2>/dev/null; then
19817 # ... but there are two gotchas:
19818 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19819 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19820 # In both cases, we have to default to `cp -p'.
19821 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19823 elif ln conf$$.file conf$$ 2>/dev/null; then
19828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19829 rmdir conf$$.dir 2>/dev/null
19831 if mkdir -p . 2>/dev/null; then
19834 test -d ./-p && rmdir ./-p
19838 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19839 # systems may use methods other than mode bits to determine executability.
19840 cat >conf$$.file <<_ASEOF
19844 chmod +x conf$$.file
19845 if test -x conf$$.file >/dev/null 2>&1; then
19846 as_executable_p="test -x"
19852 # Sed expression to map a string onto a valid CPP name.
19853 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19855 # Sed expression to map a string onto a valid variable name.
19856 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19861 # Save the log message, to keep $[0] and so on meaningful, and to
19862 # report actual input values of CONFIG_FILES etc. instead of their
19863 # values after options handling.
19865 This file was extended by LLVM $as_me 3.5.0svn, which was
19866 generated by GNU Autoconf 2.60. Invocation command line was
19868 CONFIG_FILES = $CONFIG_FILES
19869 CONFIG_HEADERS = $CONFIG_HEADERS
19870 CONFIG_LINKS = $CONFIG_LINKS
19871 CONFIG_COMMANDS = $CONFIG_COMMANDS
19874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19879 cat >>$CONFIG_STATUS <<_ACEOF
19880 # Files that config.status was made for.
19881 config_files="$ac_config_files"
19882 config_headers="$ac_config_headers"
19883 config_commands="$ac_config_commands"
19887 cat >>$CONFIG_STATUS <<\_ACEOF
19889 \`$as_me' instantiates files from templates according to the
19890 current configuration.
19892 Usage: $0 [OPTIONS] [FILE]...
19894 -h, --help print this help, then exit
19895 -V, --version print version number, then exit
19896 -q, --quiet do not print progress messages
19897 -d, --debug don't remove temporary files
19898 --recheck update $as_me by reconfiguring in the same conditions
19899 --file=FILE[:TEMPLATE]
19900 instantiate the configuration file FILE
19901 --header=FILE[:TEMPLATE]
19902 instantiate the configuration header FILE
19904 Configuration files:
19907 Configuration headers:
19910 Configuration commands:
19913 Report bugs to <bug-autoconf@gnu.org>."
19916 cat >>$CONFIG_STATUS <<_ACEOF
19918 LLVM config.status 3.5.0svn
19919 configured by $0, generated by GNU Autoconf 2.60,
19920 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19922 Copyright (C) 2006 Free Software Foundation, Inc.
19923 This config.status script is free software; the Free Software Foundation
19924 gives unlimited permission to copy, distribute and modify it."
19931 cat >>$CONFIG_STATUS <<\_ACEOF
19932 # If no file are specified by the user, then we need to provide default
19933 # value. By we need to know if files were specified by the user.
19939 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19940 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19951 # Handling of the options.
19952 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19954 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19955 echo "$ac_cs_version"; exit ;;
19956 --debug | --debu | --deb | --de | --d | -d )
19958 --file | --fil | --fi | --f )
19960 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19961 ac_need_defaults=false;;
19962 --header | --heade | --head | --hea )
19964 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19965 ac_need_defaults=false;;
19967 # Conflict between --help and --header
19968 { echo "$as_me: error: ambiguous option: $1
19969 Try \`$0 --help' for more information." >&2
19970 { (exit 1); exit 1; }; };;
19971 --help | --hel | -h )
19972 echo "$ac_cs_usage"; exit ;;
19973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19974 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19977 # This is an error.
19978 -*) { echo "$as_me: error: unrecognized option: $1
19979 Try \`$0 --help' for more information." >&2
19980 { (exit 1); exit 1; }; } ;;
19982 *) ac_config_targets="$ac_config_targets $1"
19983 ac_need_defaults=false ;;
19989 ac_configure_extra_args=
19991 if $ac_cs_silent; then
19993 ac_configure_extra_args="$ac_configure_extra_args --silent"
19997 cat >>$CONFIG_STATUS <<_ACEOF
19998 if \$ac_cs_recheck; then
19999 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20000 CONFIG_SHELL=$SHELL
20001 export CONFIG_SHELL
20002 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20006 cat >>$CONFIG_STATUS <<\_ACEOF
20010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20011 ## Running $as_me. ##
20017 cat >>$CONFIG_STATUS <<_ACEOF
20021 llvm_src="${srcdir}"
20025 cat >>$CONFIG_STATUS <<\_ACEOF
20027 # Handling of arguments.
20028 for ac_config_target in $ac_config_targets
20030 case $ac_config_target in
20031 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20032 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20033 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20034 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20035 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20036 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20037 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20038 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20039 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20040 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20041 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20042 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20043 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20044 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20045 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20046 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20047 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20048 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20049 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20050 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20051 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20052 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20053 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20054 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20055 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20056 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20058 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20060 { (exit 1); exit 1; }; };;
20065 # If the user did not use the arguments to specify the items to instantiate,
20066 # then the envvar interface is used. Set only those that are not.
20067 # We use the long form for the default assignment because of an extremely
20068 # bizarre bug on SunOS 4.1.3.
20069 if $ac_need_defaults; then
20070 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20071 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20072 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20075 # Have a temporary directory for convenience. Make it in the build tree
20076 # simply because there is no reason against having it here, and in addition,
20077 # creating and moving files from /tmp can sometimes cause problems.
20078 # Hook for its removal unless debugging.
20079 # Note that there is a small window in which the directory will not be cleaned:
20080 # after its creation but before its name has been assigned to `$tmp'.
20084 trap 'exit_status=$?
20085 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20087 trap '{ (exit 1); exit 1; }' 1 2 13 15
20089 # Create a (secure) tmp directory for tmp files.
20092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20093 test -n "$tmp" && test -d "$tmp"
20096 tmp=./conf$$-$RANDOM
20097 (umask 077 && mkdir "$tmp")
20100 echo "$me: cannot create a temporary directory in ." >&2
20101 { (exit 1); exit 1; }
20105 # Set up the sed scripts for CONFIG_FILES section.
20108 # No need to generate the scripts if there are no CONFIG_FILES.
20109 # This happens for instance when ./config.status config.h
20110 if test -n "$CONFIG_FILES"; then
20117 for ac_last_try in false false false false false :; do
20118 cat >conf$$subs.sed <<_ACEOF
20119 SHELL!$SHELL$ac_delim
20120 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20121 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20122 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20123 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20124 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20125 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20126 exec_prefix!$exec_prefix$ac_delim
20127 prefix!$prefix$ac_delim
20128 program_transform_name!$program_transform_name$ac_delim
20129 bindir!$bindir$ac_delim
20130 sbindir!$sbindir$ac_delim
20131 libexecdir!$libexecdir$ac_delim
20132 datarootdir!$datarootdir$ac_delim
20133 datadir!$datadir$ac_delim
20134 sysconfdir!$sysconfdir$ac_delim
20135 sharedstatedir!$sharedstatedir$ac_delim
20136 localstatedir!$localstatedir$ac_delim
20137 includedir!$includedir$ac_delim
20138 oldincludedir!$oldincludedir$ac_delim
20139 docdir!$docdir$ac_delim
20140 infodir!$infodir$ac_delim
20141 htmldir!$htmldir$ac_delim
20142 dvidir!$dvidir$ac_delim
20143 pdfdir!$pdfdir$ac_delim
20144 psdir!$psdir$ac_delim
20145 libdir!$libdir$ac_delim
20146 localedir!$localedir$ac_delim
20147 mandir!$mandir$ac_delim
20148 DEFS!$DEFS$ac_delim
20149 ECHO_C!$ECHO_C$ac_delim
20150 ECHO_N!$ECHO_N$ac_delim
20151 ECHO_T!$ECHO_T$ac_delim
20152 LIBS!$LIBS$ac_delim
20153 build_alias!$build_alias$ac_delim
20154 host_alias!$host_alias$ac_delim
20155 target_alias!$target_alias$ac_delim
20156 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20157 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20158 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20159 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
20160 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20162 CFLAGS!$CFLAGS$ac_delim
20163 LDFLAGS!$LDFLAGS$ac_delim
20164 CPPFLAGS!$CPPFLAGS$ac_delim
20165 ac_ct_CC!$ac_ct_CC$ac_delim
20166 EXEEXT!$EXEEXT$ac_delim
20167 OBJEXT!$OBJEXT$ac_delim
20169 CXXFLAGS!$CXXFLAGS$ac_delim
20170 ac_ct_CXX!$ac_ct_CXX$ac_delim
20172 subdirs!$subdirs$ac_delim
20173 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20174 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20175 build!$build$ac_delim
20176 build_cpu!$build_cpu$ac_delim
20177 build_vendor!$build_vendor$ac_delim
20178 build_os!$build_os$ac_delim
20179 host!$host$ac_delim
20180 host_cpu!$host_cpu$ac_delim
20181 host_vendor!$host_vendor$ac_delim
20182 host_os!$host_os$ac_delim
20183 target!$target$ac_delim
20184 target_cpu!$target_cpu$ac_delim
20185 target_vendor!$target_vendor$ac_delim
20186 target_os!$target_os$ac_delim
20188 HOST_OS!$HOST_OS$ac_delim
20189 TARGET_OS!$TARGET_OS$ac_delim
20190 LINKALL!$LINKALL$ac_delim
20191 NOLINKALL!$NOLINKALL$ac_delim
20192 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20193 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20194 ARCH!$ARCH$ac_delim
20195 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20196 HOST_ARCH!$HOST_ARCH$ac_delim
20197 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20198 BUILD_CC!$BUILD_CC$ac_delim
20199 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20200 BUILD_CXX!$BUILD_CXX$ac_delim
20201 CVSBUILD!$CVSBUILD$ac_delim
20202 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20203 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
20204 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20205 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20206 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
20207 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20208 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20209 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20210 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20211 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20212 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20213 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20214 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20215 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20218 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20220 elif $ac_last_try; then
20221 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20222 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20223 { (exit 1); exit 1; }; }
20225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20229 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20230 if test -n "$ac_eof"; then
20231 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20232 ac_eof=`expr $ac_eof + 1`
20235 cat >>$CONFIG_STATUS <<_ACEOF
20236 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20240 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20241 s/^/s,@/; s/!/@,|#_!!_#|/
20244 s/'"$ac_delim"'$/,g/; t
20246 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20247 ' >>$CONFIG_STATUS <conf$$subs.sed
20248 rm -f conf$$subs.sed
20249 cat >>$CONFIG_STATUS <<_ACEOF
20255 for ac_last_try in false false false false false :; do
20256 cat >conf$$subs.sed <<_ACEOF
20257 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20258 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20260 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20261 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20262 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20263 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20264 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20265 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20266 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20267 ENABLE_PIC!$ENABLE_PIC$ac_delim
20268 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20269 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20270 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20271 ALL_TARGETS!$ALL_TARGETS$ac_delim
20272 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20273 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20274 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20275 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20276 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20277 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20278 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20279 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20280 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20281 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20282 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20283 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20284 ifGNUmake!$ifGNUmake$ac_delim
20285 LN_S!$LN_S$ac_delim
20289 DATE!$DATE$ac_delim
20290 FIND!$FIND$ac_delim
20291 GREP!$GREP$ac_delim
20292 MKDIR!$MKDIR$ac_delim
20294 RANLIB!$RANLIB$ac_delim
20299 BINPWD!$BINPWD$ac_delim
20300 GRAPHVIZ!$GRAPHVIZ$ac_delim
20303 NEATO!$NEATO$ac_delim
20304 TWOPI!$TWOPI$ac_delim
20305 CIRCO!$CIRCO$ac_delim
20307 DOTTY!$DOTTY$ac_delim
20308 XDOT!$XDOT$ac_delim
20309 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20310 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20311 INSTALL_DATA!$INSTALL_DATA$ac_delim
20312 BZIP2!$BZIP2$ac_delim
20314 DOXYGEN!$DOXYGEN$ac_delim
20315 GROFF!$GROFF$ac_delim
20316 GZIPBIN!$GZIPBIN$ac_delim
20317 PDFROFF!$PDFROFF$ac_delim
20319 OCAMLC!$OCAMLC$ac_delim
20320 OCAMLOPT!$OCAMLOPT$ac_delim
20321 OCAMLDEP!$OCAMLDEP$ac_delim
20322 OCAMLDOC!$OCAMLDOC$ac_delim
20324 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20325 EGREP!$EGREP$ac_delim
20326 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20327 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20328 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20329 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20330 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20331 PYTHON!$PYTHON$ac_delim
20332 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20333 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20334 USE_UDIS86!$USE_UDIS86$ac_delim
20335 USE_OPROFILE!$USE_OPROFILE$ac_delim
20336 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20337 XML2CONFIG!$XML2CONFIG$ac_delim
20338 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20339 LIBXML2_INC!$LIBXML2_INC$ac_delim
20340 CXXCPP!$CXXCPP$ac_delim
20341 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20342 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20343 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20344 MMAP_FILE!$MMAP_FILE$ac_delim
20345 SHLIBEXT!$SHLIBEXT$ac_delim
20346 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20347 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20348 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20349 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20350 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20351 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20352 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20353 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20356 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20358 elif $ac_last_try; then
20359 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20360 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20361 { (exit 1); exit 1; }; }
20363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20367 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20368 if test -n "$ac_eof"; then
20369 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20370 ac_eof=`expr $ac_eof + 1`
20373 cat >>$CONFIG_STATUS <<_ACEOF
20374 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20375 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20378 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20379 s/^/s,@/; s/!/@,|#_!!_#|/
20382 s/'"$ac_delim"'$/,g/; t
20384 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20385 ' >>$CONFIG_STATUS <conf$$subs.sed
20386 rm -f conf$$subs.sed
20387 cat >>$CONFIG_STATUS <<_ACEOF
20393 for ac_last_try in false false false false false :; do
20394 cat >conf$$subs.sed <<_ACEOF
20395 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20396 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20397 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20398 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20399 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20400 RPATH!$RPATH$ac_delim
20401 RDYNAMIC!$RDYNAMIC$ac_delim
20402 program_prefix!$program_prefix$ac_delim
20403 LIBOBJS!$LIBOBJS$ac_delim
20404 LTLIBOBJS!$LTLIBOBJS$ac_delim
20407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20409 elif $ac_last_try; then
20410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20412 { (exit 1); exit 1; }; }
20414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20419 if test -n "$ac_eof"; then
20420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20421 ac_eof=`expr $ac_eof + 1`
20424 cat >>$CONFIG_STATUS <<_ACEOF
20425 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20430 s/^/s,@/; s/!/@,|#_!!_#|/
20433 s/'"$ac_delim"'$/,g/; t
20435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20436 ' >>$CONFIG_STATUS <conf$$subs.sed
20437 rm -f conf$$subs.sed
20438 cat >>$CONFIG_STATUS <<_ACEOF
20445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20447 # trailing colons and then remove the whole line if VPATH becomes empty
20448 # (actually we leave an empty line to preserve line numbers).
20449 if test "x$srcdir" = x.; then
20450 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20451 s/:*\$(srcdir):*/:/
20452 s/:*\${srcdir}:*/:/
20454 s/^\([^=]*=[ ]*\):*/\1/
20460 cat >>$CONFIG_STATUS <<\_ACEOF
20461 fi # test -n "$CONFIG_FILES"
20464 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20467 :[FHLC]) ac_mode=$ac_tag; continue;;
20469 case $ac_mode$ac_tag in
20471 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20473 { (exit 1); exit 1; }; };;
20474 :[FH]-) ac_tag=-:-;;
20475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20492 -) ac_f="$tmp/stdin";;
20493 *) # Look for the file first in the build tree, then in the source tree
20494 # (if the path is not absolute). The absolute path cannot be DOS-style,
20495 # because $ac_f cannot contain `:'.
20499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20501 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20503 { (exit 1); exit 1; }; };;
20505 ac_file_inputs="$ac_file_inputs $ac_f"
20508 # Let's still pretend it is `configure' which instantiates (i.e., don't
20509 # use $as_me), people would be surprised to read:
20510 # /* config.h. Generated by config.status. */
20511 configure_input="Generated from "`IFS=:
20512 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20513 if test x"$ac_file" != x-; then
20514 configure_input="$ac_file. $configure_input"
20515 { echo "$as_me:$LINENO: creating $ac_file" >&5
20516 echo "$as_me: creating $ac_file" >&6;}
20520 *:-:* | *:-) cat >"$tmp/stdin";;
20525 ac_dir=`$as_dirname -- "$ac_file" ||
20526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20527 X"$ac_file" : 'X\(//\)[^/]' \| \
20528 X"$ac_file" : 'X\(//\)$' \| \
20529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20535 /^X\(\/\/\)[^/].*/{
20550 -*) as_dir=./$as_dir;;
20552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20557 *) as_qdir=$as_dir;;
20559 as_dirs="'$as_qdir' $as_dirs"
20560 as_dir=`$as_dirname -- "$as_dir" ||
20561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20562 X"$as_dir" : 'X\(//\)[^/]' \| \
20563 X"$as_dir" : 'X\(//\)$' \| \
20564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20570 /^X\(\/\/\)[^/].*/{
20583 test -d "$as_dir" && break
20585 test -z "$as_dirs" || eval "mkdir $as_dirs"
20586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20588 { (exit 1); exit 1; }; }; }
20592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20595 # A ".." for each directory in $ac_dir_suffix.
20596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20597 case $ac_top_builddir_sub in
20598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20602 ac_abs_top_builddir=$ac_pwd
20603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20604 # for backward compatibility:
20605 ac_top_builddir=$ac_top_build_prefix
20608 .) # We are building in place.
20610 ac_top_srcdir=$ac_top_builddir_sub
20611 ac_abs_top_srcdir=$ac_pwd ;;
20612 [\\/]* | ?:[\\/]* ) # Absolute name.
20613 ac_srcdir=$srcdir$ac_dir_suffix;
20614 ac_top_srcdir=$srcdir
20615 ac_abs_top_srcdir=$srcdir ;;
20616 *) # Relative name.
20617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20618 ac_top_srcdir=$ac_top_build_prefix$srcdir
20619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20636 cat >>$CONFIG_STATUS <<\_ACEOF
20637 # If the template does not know about datarootdir, expand it.
20638 # FIXME: This hack should be removed a few years after 2.60.
20639 ac_datarootdir_hack=; ac_datarootdir_seen=
20641 case `sed -n '/datarootdir/ {
20650 ' $ac_file_inputs` in
20651 *datarootdir*) ac_datarootdir_seen=yes;;
20652 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20653 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20654 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20656 cat >>$CONFIG_STATUS <<_ACEOF
20657 ac_datarootdir_hack='
20658 s&@datadir@&$datadir&g
20659 s&@docdir@&$docdir&g
20660 s&@infodir@&$infodir&g
20661 s&@localedir@&$localedir&g
20662 s&@mandir@&$mandir&g
20663 s&\\\${datarootdir}&$datarootdir&g' ;;
20667 # Neutralize VPATH when `$srcdir' = `.'.
20668 # Shell code in configure.ac might set extrasub.
20669 # FIXME: do we really want to maintain this feature?
20670 cat >>$CONFIG_STATUS <<_ACEOF
20674 cat >>$CONFIG_STATUS <<\_ACEOF
20676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20677 s&@configure_input@&$configure_input&;t t
20678 s&@top_builddir@&$ac_top_builddir_sub&;t t
20679 s&@srcdir@&$ac_srcdir&;t t
20680 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20681 s&@top_srcdir@&$ac_top_srcdir&;t t
20682 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20683 s&@builddir@&$ac_builddir&;t t
20684 s&@abs_builddir@&$ac_abs_builddir&;t t
20685 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20686 s&@INSTALL@&$ac_INSTALL&;t t
20687 $ac_datarootdir_hack
20688 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20693 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20694 which seems to be undefined. Please make sure it is defined." >&5
20695 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20696 which seems to be undefined. Please make sure it is defined." >&2;}
20700 -) cat "$tmp/out"; rm -f "$tmp/out";;
20701 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20710 # Transform confdefs.h into a sed script `conftest.defines', that
20711 # substitutes the proper values into config.h.in to produce config.h.
20712 rm -f conftest.defines conftest.tail
20713 # First, append a space to every undef/define line, to ease matching.
20714 echo 's/$/ /' >conftest.defines
20715 # Then, protect against being on the right side of a sed subst, or in
20716 # an unquoted here document, in config.status. If some macros were
20717 # called several times there might be several #defines for the same
20718 # symbol, which is useless. But do not sort them, since the last
20719 # AC_DEFINE must be honored.
20720 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20721 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20722 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20723 # PARAMS is the parameter list in the macro definition--in most cases, it's
20724 # just an empty string.
20725 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20726 ac_dB='\\)[ (].*,\\1define\\2'
20734 s/^[ ]*#[ ]*define[ ][ ]*//
20739 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20740 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20741 ' >>conftest.defines
20743 # Remove the space that was appended to ease matching.
20744 # Then replace #undef with comments. This is necessary, for
20745 # example, in the case of _POSIX_SOURCE, which is predefined and required
20746 # on some systems where configure will not decide to define it.
20747 # (The regexp can be short, since the line contains either #define or #undef.)
20749 s,^[ #]*u.*,/* & */,' >>conftest.defines
20751 # Break up conftest.defines:
20752 ac_max_sed_lines=50
20754 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20755 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20756 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20758 ac_in='$ac_file_inputs'
20759 ac_out='"$tmp/out1"'
20760 ac_nxt='"$tmp/out2"'
20764 # Write a here document:
20765 cat >>$CONFIG_STATUS <<_ACEOF
20766 # First, check the format of the line:
20767 cat >"\$tmp/defines.sed" <<\\CEOF
20768 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20769 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20773 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20775 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20776 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20777 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20778 grep . conftest.tail >/dev/null || break
20779 rm -f conftest.defines
20780 mv conftest.tail conftest.defines
20782 rm -f conftest.defines conftest.tail
20784 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20785 cat >>$CONFIG_STATUS <<\_ACEOF
20786 if test x"$ac_file" != x-; then
20787 echo "/* $configure_input */" >"$tmp/config.h"
20788 cat "$ac_result" >>"$tmp/config.h"
20789 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20790 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20791 echo "$as_me: $ac_file is unchanged" >&6;}
20794 mv "$tmp/config.h" $ac_file
20797 echo "/* $configure_input */"
20803 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20804 echo "$as_me: executing $ac_file commands" >&6;}
20809 case $ac_file$ac_mode in
20810 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20811 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20812 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20813 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20814 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20815 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20816 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20817 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20818 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20819 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20820 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20821 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20822 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20823 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20824 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20825 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20826 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20827 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20828 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20829 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20830 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20831 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20832 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20833 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20839 { (exit 0); exit 0; }
20841 chmod +x $CONFIG_STATUS
20842 ac_clean_files=$ac_clean_files_save
20845 # configure is writing to config.log, and then calls config.status.
20846 # config.status does its own redirection, appending to config.log.
20847 # Unfortunately, on DOS this fails, as config.log is still kept open
20848 # by configure, so config.status won't be able to write to it; its
20849 # output is simply discarded. So we exec the FD to /dev/null,
20850 # effectively closing config.log, so it can be properly (re)opened and
20851 # appended to by config.status. When coming back to configure, we
20852 # need to make the FD available again.
20853 if test "$no_create" != yes; then
20855 ac_config_status_args=
20856 test "$silent" = yes &&
20857 ac_config_status_args="$ac_config_status_args --quiet"
20859 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20862 # would make configure fail if this is the last instruction.
20863 $ac_cs_success || { (exit 1); exit 1; }
20867 # CONFIG_SUBDIRS section.
20869 if test "$no_recursion" != yes; then
20871 # Remove --cache-file and --srcdir arguments so they do not pile up.
20872 ac_sub_configure_args=
20874 eval "set x $ac_configure_args"
20878 if test -n "$ac_prev"; then
20883 -cache-file | --cache-file | --cache-fil | --cache-fi \
20884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20885 ac_prev=cache_file ;;
20886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20890 --config-cache | -C)
20892 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20894 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20896 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20898 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20902 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20904 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20908 # Always prepend --prefix to ensure using the same prefix
20909 # in subdir configurations.
20910 ac_arg="--prefix=$prefix"
20912 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20914 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20917 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20919 # Do not complain, so a configure script can configure whichever
20920 # parts of a large source tree are present.
20921 test -d "$srcdir/$ac_dir" || continue
20923 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20924 echo "$as_me:$LINENO: $ac_msg" >&5
20928 -*) as_dir=./$as_dir;;
20930 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20934 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20935 *) as_qdir=$as_dir;;
20937 as_dirs="'$as_qdir' $as_dirs"
20938 as_dir=`$as_dirname -- "$as_dir" ||
20939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940 X"$as_dir" : 'X\(//\)[^/]' \| \
20941 X"$as_dir" : 'X\(//\)$' \| \
20942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20948 /^X\(\/\/\)[^/].*/{
20961 test -d "$as_dir" && break
20963 test -z "$as_dirs" || eval "mkdir $as_dirs"
20964 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20965 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20966 { (exit 1); exit 1; }; }; }
20970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20973 # A ".." for each directory in $ac_dir_suffix.
20974 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20975 case $ac_top_builddir_sub in
20976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20980 ac_abs_top_builddir=$ac_pwd
20981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20982 # for backward compatibility:
20983 ac_top_builddir=$ac_top_build_prefix
20986 .) # We are building in place.
20988 ac_top_srcdir=$ac_top_builddir_sub
20989 ac_abs_top_srcdir=$ac_pwd ;;
20990 [\\/]* | ?:[\\/]* ) # Absolute name.
20991 ac_srcdir=$srcdir$ac_dir_suffix;
20992 ac_top_srcdir=$srcdir
20993 ac_abs_top_srcdir=$srcdir ;;
20994 *) # Relative name.
20995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20996 ac_top_srcdir=$ac_top_build_prefix$srcdir
20997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21004 # Check for guested configure; otherwise get Cygnus style configure.
21005 if test -f "$ac_srcdir/configure.gnu"; then
21006 ac_sub_configure=$ac_srcdir/configure.gnu
21007 elif test -f "$ac_srcdir/configure"; then
21008 ac_sub_configure=$ac_srcdir/configure
21009 elif test -f "$ac_srcdir/configure.in"; then
21010 # This should be Cygnus configure.
21011 ac_sub_configure=$ac_aux_dir/configure
21013 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21014 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21018 # The recursion is here.
21019 if test -n "$ac_sub_configure"; then
21020 # Make the cache file name correct relative to the subdirectory.
21021 case $cache_file in
21022 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21023 *) # Relative name.
21024 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21027 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21028 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21029 # The eval makes quoting arguments work.
21030 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21031 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21032 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21033 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21034 { (exit 1); exit 1; }; }