2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.6.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
765 NO_MAYBE_UNINITIALIZED
793 ENABLE_VISIBILITY_INLINES_HIDDEN
800 ac_precious_vars='build_alias
812 ac_subdirs_all='projects/test-suite
815 projects/llvm-poolalloc
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-polly Use polly if available (default is YES)
1393 --enable-libcpp Use libc++ if available (default is NO)
1394 --enable-compiler-version-checks
1395 Check the version of the host compiler (default is
1397 --enable-cxx1y Use c++1y if available (default is NO)
1398 --enable-split-dwarf Use split-dwarf if available (default is NO)
1399 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1400 --enable-clang-plugin-support
1401 Enable plugin support in clang (default is YES)
1402 --enable-clang-static-analyzer
1403 Enable building of clang Static Analyzer (default is
1405 --enable-optimized Compile with optimizations enabled (default is NO)
1406 --enable-profiling Compile with profiling enabled (default is NO)
1407 --enable-assertions Compile with assertion checks enabled (default is
1409 --enable-werror Compile with -Werror enabled (default is NO)
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-keep-symbols Do not strip installed executables)
1418 --enable-jit Enable Just In Time Compiling (default is YES)
1419 --enable-docs Build documents (default is YES)
1420 --enable-doxygen Build doxygen documentation (default is NO)
1421 --enable-threads Use threads if available (default is YES)
1422 --enable-pthreads Use pthreads if available (default is YES)
1423 --enable-zlib Use zlib for compression/decompression if available
1425 --enable-pic Build LLVM with Position Independent Code (default
1427 --enable-shared Build a shared library and link tools against it
1429 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1430 Win32 DLL (default is NO)
1431 --enable-timestamps Enable embedding timestamp information in build
1433 --enable-backtraces Enable embedding backtraces on crash (default is
1435 --enable-crash-overrides
1436 Enable crash handling overrides (default is YES)
1437 --enable-targets Build specific host targets: all or
1438 target1,target2,... Valid targets are: host, x86,
1439 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1440 hexagon, xcore, msp430, nvptx, systemz, r600, and
1442 --enable-experimental-targets
1443 Build experimental host targets: disable or
1444 target1,target2,... (default=disable)
1445 --enable-bindings Build specific language bindings:
1446 all,auto,none,{binding-name} (default=auto)
1447 --enable-terminfo Query the terminfo database if available (default is
1449 --enable-libedit Use libedit if available (default is YES)
1450 --enable-libffi Check for the presence of libffi (default is NO)
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-srcdir Directory to the out-of-tree Clang source
1462 --with-clang-resource-dir
1463 Relative directory from the Clang binary for
1465 --with-c-include-dirs Colon separated list of directories clang will
1467 --with-gcc-toolchain Directory where gcc is installed.
1468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1469 --with-binutils-include Specify path to binutils/include/ containing
1470 plugin-api.h file for gold plugin.
1471 --with-bug-report-url Specify the URL where bug reports should be
1472 submitted (default=http://llvm.org/bugs/)
1473 --with-internal-prefix Installation directory for internal files
1474 --with-python path to python
1475 --with-oprofile=<prefix>
1476 Tell OProfile >= 0.9.4 how to symbolize JIT output
1477 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1490 CXXCPP C++ preprocessor
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <http://llvm.org/bugs/>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 LLVM configure 3.6.0svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by LLVM $as_me 3.6.0svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next=false
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next=true ;;
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1736 if test -n "$ac_subst_files"; then
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1743 for ac_var in $ac_subst_files
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1754 if test -s confdefs.h; then
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1845 # Check that the precious variables saved in the cache have kept the same
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 LLVM_VERSION_MAJOR=3
1927 LLVM_VERSION_MINOR=6
1928 LLVM_VERSION_PATCH=0
1929 LLVM_VERSION_SUFFIX=svn
1932 cat >>confdefs.h <<_ACEOF
1933 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1937 cat >>confdefs.h <<_ACEOF
1938 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1942 cat >>confdefs.h <<_ACEOF
1943 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1952 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1961 for ac_dir in autoconf "$srcdir"/autoconf; do
1962 if test -f "$ac_dir/install-sh"; then
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1966 elif test -f "$ac_dir/install.sh"; then
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1970 elif test -f "$ac_dir/shtool"; then
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1979 { (exit 1); exit 1; }; }
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992 if test ${srcdir} != "." ; then
1993 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1994 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1995 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1996 { (exit 1); exit 1; }; }
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 for ac_prog in clang gcc
2011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2048 test -n "$CC" && break
2051 if test -z "$CC"; then
2053 for ac_prog in clang gcc
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_ac_ct_CC="$ac_prog"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6; }
2087 { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2092 test -n "$ac_ct_CC" && break
2095 if test "x$ac_ct_CC" = x; then
2098 case $cross_compiling:$ac_tool_warned in
2100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet. If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&5
2103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2104 whose name does not start with the host triplet. If you think this
2105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2106 ac_tool_warned=yes ;;
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO: checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (ac_try="$ac_compiler --version >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler --version >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -v >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -v >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2142 { (ac_try="$ac_compiler -V >&5"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_compiler -V >&5") 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2153 cat >conftest.$ac_ext <<_ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 # List of possible output files, starting from the most likely.
2178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2179 # only as a last resort. b.out is created by i960 compilers.
2180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2182 # The IRIX 6 linker writes into existing files which may not be
2183 # executable, retaining their permissions. Remove them first so a
2184 # subsequent execution test works.
2186 for ac_file in $ac_files
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2195 if { (ac_try="$ac_link_default"
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201 (eval "$ac_link_default") 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; then
2205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2208 # so that the user can short-circuit this test for compilers unknown to
2210 for ac_file in $ac_files
2212 test -f "$ac_file" || continue
2214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2217 # We found the default executable, but exeext='' is most
2221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225 # We set ac_cv_exeext here because the later test for it is not
2226 # safe: cross compilers may not add the suffix if given an `-o'
2227 # argument, so we may need to know it at that point already.
2228 # Even if this section looks crufty: it has the advantage of
2235 test "$ac_cv_exeext" = no && ac_cv_exeext=
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&2;}
2245 { (exit 77); exit 77; }; }
2248 ac_exeext=$ac_cv_exeext
2249 { echo "$as_me:$LINENO: result: $ac_file" >&5
2250 echo "${ECHO_T}$ac_file" >&6; }
2252 # Check that the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257 # If not cross compiling, check that we can run a simple program.
2258 if test "$cross_compiling" != yes; then
2259 if { ac_try='./$ac_file'
2260 { (case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265 (eval "$ac_try") 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2271 if test "$cross_compiling" = maybe; then
2274 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2284 { echo "$as_me:$LINENO: result: yes" >&5
2285 echo "${ECHO_T}yes" >&6; }
2287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2288 ac_clean_files=$ac_clean_files_save
2289 # Check that the compiler produces executables we can run. If not, either
2290 # the compiler is broken, or we cross compile.
2291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2294 echo "${ECHO_T}$cross_compiling" >&6; }
2296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2298 if { (ac_try="$ac_link"
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304 (eval "$ac_link") 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2310 # work properly (i.e., refer to `conftest.exe'), while it won't with
2312 for ac_file in conftest.exe conftest conftest.*; do
2313 test -f "$ac_file" || continue
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest$ac_cv_exeext
2330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2338 if test "${ac_cv_objext+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.$ac_ext <<_ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2356 rm -f conftest.o conftest.obj
2357 if { (ac_try="$ac_compile"
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_compile") 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 for ac_file in conftest.o conftest.obj conftest.*; do
2368 test -f "$ac_file" || continue;
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6; }
2390 OBJEXT=$ac_cv_objext
2392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2415 rm -f conftest.$ac_objext
2416 if { (ac_try="$ac_compile"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_compile") 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_try") 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2463 GCC=`test $ac_compiler_gnu = yes && echo yes`
2464 ac_test_CFLAGS=${CFLAGS+set}
2465 ac_save_CFLAGS=$CFLAGS
2466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_cc_g+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 ac_save_c_werror_flag=$ac_c_werror_flag
2472 ac_c_werror_flag=yes
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2490 rm -f conftest.$ac_objext
2491 if { (ac_try="$ac_compile"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_compile") 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.$ac_objext
2546 if { (ac_try="$ac_compile"
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_compile") 2>conftest.er1
2554 grep -v '^ *+' conftest.er1 >conftest.err
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_try") 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 ac_c_werror_flag=$ac_save_c_werror_flag
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 ac_c_werror_flag=$ac_save_c_werror_flag
2652 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2654 if test "$ac_test_CFLAGS" = set; then
2655 CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657 if test "$GCC" = yes; then
2663 if test "$GCC" = yes; then
2669 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2670 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_c89+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 ac_cv_prog_cc_c89=no
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2700 s = g (p, va_arg (v,int));
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2706 function prototypes and stuff, but not '\xHH' hex character constants.
2707 These don't provoke an error unfortunately, instead are silently treated
2708 as 'x'. The following induces an error, until -std is added to get
2709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2710 array size at least. It's necessary to write '\x00'==0 to get something
2711 that's true only with -std. */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2715 inside strings and character constants. */
2717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2719 int test (int i, double x);
2720 struct s1 {int (*f) (int a);};
2721 struct s2 {int (*f) (double a);};
2722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736 CC="$ac_save_CC $ac_arg"
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_try") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_prog_cc_c89=$ac_arg
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f core conftest.err conftest.$ac_objext
2780 test "x$ac_cv_prog_cc_c89" != "xno" && break
2782 rm -f conftest.$ac_ext
2787 case "x$ac_cv_prog_cc_c89" in
2789 { echo "$as_me:$LINENO: result: none needed" >&5
2790 echo "${ECHO_T}none needed" >&6; } ;;
2792 { echo "$as_me:$LINENO: result: unsupported" >&5
2793 echo "${ECHO_T}unsupported" >&6; } ;;
2795 CC="$CC $ac_cv_prog_cc_c89"
2796 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 ac_cpp='$CXXCPP $CPPFLAGS'
2809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2812 if test -z "$CXX"; then
2813 if test -n "$CCC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 for ac_prog in clang++ g++
2819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 if test -n "$CXX"; then
2827 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 if test -n "$CXX"; then
2848 { echo "$as_me:$LINENO: result: $CXX" >&5
2849 echo "${ECHO_T}$CXX" >&6; }
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2856 test -n "$CXX" && break
2859 if test -z "$CXX"; then
2861 for ac_prog in clang++ g++
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$ac_ct_CXX"; then
2871 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_CXX="$ac_prog"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2891 if test -n "$ac_ct_CXX"; then
2892 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2893 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2900 test -n "$ac_ct_CXX" && break
2903 if test "x$ac_ct_CXX" = x; then
2906 case $cross_compiling:$ac_tool_warned in
2908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet. If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&5
2911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2912 whose name does not start with the host triplet. If you think this
2913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2914 ac_tool_warned=yes ;;
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2924 ac_compiler=`set X $ac_compile; echo $2`
2925 { (ac_try="$ac_compiler --version >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler --version >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -v >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -v >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2945 { (ac_try="$ac_compiler -V >&5"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compiler -V >&5") 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2956 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_try") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3025 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3026 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3027 GXX=`test $ac_compiler_gnu = yes && echo yes`
3028 ac_test_CXXFLAGS=${CXXFLAGS+set}
3029 ac_save_CXXFLAGS=$CXXFLAGS
3030 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3031 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_cxx_g+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3036 ac_cxx_werror_flag=yes
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } &&
3068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_prog_cxx_g=yes
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 ac_cv_prog_cxx_g=yes
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3218 if test "$ac_test_CXXFLAGS" = set; then
3219 CXXFLAGS=$ac_save_CXXFLAGS
3220 elif test $ac_cv_prog_cxx_g = yes; then
3221 if test "$GXX" = yes; then
3227 if test "$GXX" = yes; then
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3245 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3250 if test -z "$CPP"; then
3251 if test "${ac_cv_prog_CPP+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 # Double quotes because CPP needs to be expanded
3255 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258 for ac_c_preproc_warn_flag in '' yes
3260 # Use a header file that comes with gcc, so configuring glibc
3261 # with a fresh cross-compiler works.
3262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263 # <limits.h> exists even on freestanding compilers.
3264 # On the NeXT, cc -E runs the code through the compiler's parser,
3265 # not just through cpp. "Syntax error" is here to catch this case.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3273 # include <limits.h>
3275 # include <assert.h>
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 # Broken: fails on valid input.
3311 rm -f conftest.err conftest.$ac_ext
3313 # OK, works on sane cases. Now check whether nonexistent headers
3314 # can be detected and how.
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #include <ac_nonexistent.h>
3323 if { (ac_try="$ac_cpp conftest.$ac_ext"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3345 if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Passes both tests.
3357 rm -f conftest.err conftest.$ac_ext
3360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3361 rm -f conftest.err conftest.$ac_ext
3362 if $ac_preproc_ok; then
3374 { echo "$as_me:$LINENO: result: $CPP" >&5
3375 echo "${ECHO_T}$CPP" >&6; }
3377 for ac_c_preproc_warn_flag in '' yes
3379 # Use a header file that comes with gcc, so configuring glibc
3380 # with a fresh cross-compiler works.
3381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382 # <limits.h> exists even on freestanding compilers.
3383 # On the NeXT, cc -E runs the code through the compiler's parser,
3384 # not just through cpp. "Syntax error" is here to catch this case.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3392 # include <limits.h>
3394 # include <assert.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 if test -z "$ac_cpp_err"; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 # Broken: fails on valid input.
3430 rm -f conftest.err conftest.$ac_ext
3432 # OK, works on sane cases. Now check whether nonexistent headers
3433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <ac_nonexistent.h>
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Passes both tests.
3476 rm -f conftest.err conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3484 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test "$CXX" = "clang++" ; then
3499 { echo "$as_me:$LINENO: checking whether clang works" >&5
3500 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3502 ac_cpp='$CXXCPP $CPPFLAGS'
3503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3515 #if __has_include (<cxxabi.h>)
3518 #if __has_include (<unwind.h>)
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_compile") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_try") 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3565 { echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6; }
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3573 { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3575 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3576 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3577 { (exit 1); exit 1; }; }
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3591 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3598 llvm_cv_cxx_compiler=unknown
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_compile") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3625 { (case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_try") 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest.$ac_objext'
3635 { (case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 llvm_cv_cxx_compiler=clang
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 llvm_cv_cxx_compiler=gcc
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3713 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3717 if test -d ${srcdir}/projects/test-suite ; then
3718 subdirs="$subdirs projects/test-suite"
3722 if test -d ${srcdir}/projects/llvm-test ; then
3723 subdirs="$subdirs projects/llvm-test"
3727 if test -d ${srcdir}/projects/poolalloc ; then
3728 subdirs="$subdirs projects/poolalloc"
3732 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3733 subdirs="$subdirs projects/llvm-poolalloc"
3737 for i in `ls ${srcdir}/projects`
3739 if test -d ${srcdir}/projects/${i} ; then
3741 safecode) subdirs="$subdirs projects/safecode"
3749 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3750 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3756 # Check whether --enable-polly was given.
3757 if test "${enable_polly+set}" = set; then
3758 enableval=$enable_polly;
3763 case "$enableval" in
3768 default) ENABLE_POLLY=1
3770 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3771 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3772 { (exit 1); exit 1; }; } ;;
3776 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3779 subdirs="$subdirs tools/polly"
3784 # Make sure we can run config.sub.
3785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3786 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3787 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3788 { (exit 1); exit 1; }; }
3790 { echo "$as_me:$LINENO: checking build system type" >&5
3791 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3792 if test "${ac_cv_build+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_build_alias=$build_alias
3796 test "x$ac_build_alias" = x &&
3797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3798 test "x$ac_build_alias" = x &&
3799 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3800 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3801 { (exit 1); exit 1; }; }
3802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3803 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3804 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3805 { (exit 1); exit 1; }; }
3808 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3809 echo "${ECHO_T}$ac_cv_build" >&6; }
3810 case $ac_cv_build in
3812 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3813 echo "$as_me: error: invalid value of canonical build" >&2;}
3814 { (exit 1); exit 1; }; };;
3817 ac_save_IFS=$IFS; IFS='-'
3823 # Remember, the first character of IFS is used to create $*,
3824 # except with old shells:
3827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830 { echo "$as_me:$LINENO: checking host system type" >&5
3831 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3832 if test "${ac_cv_host+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test "x$host_alias" = x; then
3836 ac_cv_host=$ac_cv_build
3838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3839 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3840 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3841 { (exit 1); exit 1; }; }
3845 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3846 echo "${ECHO_T}$ac_cv_host" >&6; }
3849 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3850 echo "$as_me: error: invalid value of canonical host" >&2;}
3851 { (exit 1); exit 1; }; };;
3854 ac_save_IFS=$IFS; IFS='-'
3860 # Remember, the first character of IFS is used to create $*,
3861 # except with old shells:
3864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867 { echo "$as_me:$LINENO: checking target system type" >&5
3868 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3869 if test "${ac_cv_target+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 if test "x$target_alias" = x; then
3873 ac_cv_target=$ac_cv_host
3875 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3876 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3877 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3878 { (exit 1); exit 1; }; }
3882 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3883 echo "${ECHO_T}$ac_cv_target" >&6; }
3884 case $ac_cv_target in
3886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3887 echo "$as_me: error: invalid value of canonical target" >&2;}
3888 { (exit 1); exit 1; }; };;
3890 target=$ac_cv_target
3891 ac_save_IFS=$IFS; IFS='-'
3897 # Remember, the first character of IFS is used to create $*,
3898 # except with old shells:
3901 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3904 # The aliases save the names the user supplied, while $host etc.
3905 # will get canonicalized.
3906 test -n "$target_alias" &&
3907 test "$program_prefix$program_suffix$program_transform_name" = \
3909 program_prefix=${target_alias}-
3911 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3912 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3913 if test "${llvm_cv_os_type+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 llvm_cv_link_all_option="-Wl,--whole-archive"
3919 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3920 llvm_cv_os_type="AIX"
3921 llvm_cv_platform_type="Unix" ;;
3923 llvm_cv_link_all_option="-Wl,--whole-archive"
3924 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3925 llvm_cv_os_type="IRIX"
3926 llvm_cv_platform_type="Unix" ;;
3928 llvm_cv_link_all_option="-Wl,--whole-archive"
3929 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3930 llvm_cv_os_type="Cygwin"
3931 llvm_cv_platform_type="Unix" ;;
3933 llvm_cv_link_all_option="-Wl,-all_load"
3934 llvm_cv_no_link_all_option="-Wl,-noall_load"
3935 llvm_cv_os_type="Darwin"
3936 llvm_cv_platform_type="Unix" ;;
3938 llvm_cv_link_all_option="-Wl,-all_load"
3939 llvm_cv_no_link_all_option="-Wl,-noall_load"
3940 llvm_cv_os_type="Minix"
3941 llvm_cv_platform_type="Unix" ;;
3943 llvm_cv_link_all_option="-Wl,--whole-archive"
3944 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3945 llvm_cv_os_type="FreeBSD"
3946 llvm_cv_platform_type="Unix" ;;
3948 llvm_cv_link_all_option="-Wl,--whole-archive"
3949 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3950 llvm_cv_os_type="GNU/kFreeBSD"
3951 llvm_cv_platform_type="Unix" ;;
3953 llvm_cv_link_all_option="-Wl,--whole-archive"
3954 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3955 llvm_cv_os_type="OpenBSD"
3956 llvm_cv_platform_type="Unix" ;;
3958 llvm_cv_link_all_option="-Wl,--whole-archive"
3959 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3960 llvm_cv_os_type="NetBSD"
3961 llvm_cv_platform_type="Unix" ;;
3963 llvm_cv_link_all_option="-Wl,--whole-archive"
3964 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3965 llvm_cv_os_type="DragonFly"
3966 llvm_cv_platform_type="Unix" ;;
3968 llvm_cv_link_all_option="-Wl,--whole-archive"
3969 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3970 llvm_cv_os_type="HP-UX"
3971 llvm_cv_platform_type="Unix" ;;
3973 llvm_cv_link_all_option="-Wl,--whole-archive"
3974 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3975 llvm_cv_os_type="Interix"
3976 llvm_cv_platform_type="Unix" ;;
3978 llvm_cv_link_all_option="-Wl,--whole-archive"
3979 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3980 llvm_cv_os_type="Linux"
3981 llvm_cv_platform_type="Unix" ;;
3983 llvm_cv_link_all_option="-Wl,--whole-archive"
3984 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3985 llvm_cv_os_type="GNU"
3986 llvm_cv_platform_type="Unix" ;;
3988 llvm_cv_link_all_option="-Wl,-z,allextract"
3989 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3990 llvm_cv_os_type="SunOS"
3991 llvm_cv_platform_type="Unix" ;;
3993 llvm_cv_link_all_option="-Wl,--whole-archive"
3994 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3995 llvm_cv_os_type="Win32"
3996 llvm_cv_platform_type="Win32" ;;
3998 llvm_cv_link_all_option="-Wl,--whole-archive"
3999 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4000 llvm_cv_os_type="MingW"
4001 llvm_cv_platform_type="Win32" ;;
4003 llvm_cv_link_all_option="-Wl,--whole-archive"
4004 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4005 llvm_cv_os_type="Haiku"
4006 llvm_cv_platform_type="Unix" ;;
4008 llvm_cv_link_all_option="-Wl,--whole-archive"
4009 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4010 llvm_cv_os_type="Freestanding"
4011 llvm_cv_platform_type="Unix" ;;
4013 llvm_cv_link_all_option="-Wl,--whole-archive"
4014 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4015 llvm_cv_os_type="Freestanding"
4016 llvm_cv_platform_type="Unix" ;;
4018 llvm_cv_link_all_option=""
4019 llvm_cv_no_link_all_option=""
4020 llvm_cv_os_type="Unknown"
4021 llvm_cv_platform_type="Unknown" ;;
4024 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4025 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4027 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4028 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4029 if test "${llvm_cv_target_os_type+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 llvm_cv_target_os_type="AIX" ;;
4036 llvm_cv_target_os_type="IRIX" ;;
4038 llvm_cv_target_os_type="Cygwin" ;;
4040 llvm_cv_target_os_type="Darwin" ;;
4042 llvm_cv_target_os_type="Minix" ;;
4044 llvm_cv_target_os_type="FreeBSD" ;;
4046 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4048 llvm_cv_target_os_type="OpenBSD" ;;
4050 llvm_cv_target_os_type="NetBSD" ;;
4052 llvm_cv_target_os_type="DragonFly" ;;
4054 llvm_cv_target_os_type="HP-UX" ;;
4056 llvm_cv_target_os_type="Interix" ;;
4058 llvm_cv_target_os_type="Linux" ;;
4060 llvm_cv_target_os_type="GNU" ;;
4062 llvm_cv_target_os_type="SunOS" ;;
4064 llvm_cv_target_os_type="Win32" ;;
4066 llvm_cv_target_os_type="MingW" ;;
4068 llvm_cv_target_os_type="Haiku" ;;
4070 llvm_cv_target_os_type="RTEMS" ;;
4072 llvm_cv_target_os_type="NativeClient" ;;
4074 llvm_cv_target_os_type="Freestanding" ;;
4076 llvm_cv_target_os_type="Unknown" ;;
4079 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4080 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4082 if test "$llvm_cv_os_type" = "Unknown" ; then
4083 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4084 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4085 { (exit 1); exit 1; }; }
4090 HOST_OS=$llvm_cv_os_type
4092 TARGET_OS=$llvm_cv_target_os_type
4095 LINKALL=$llvm_cv_link_all_option
4097 NOLINKALL=$llvm_cv_no_link_all_option
4100 case $llvm_cv_platform_type in
4103 cat >>confdefs.h <<\_ACEOF
4104 #define LLVM_ON_UNIX 1
4114 cat >>confdefs.h <<\_ACEOF
4115 #define LLVM_ON_WIN32 1
4125 { echo "$as_me:$LINENO: checking target architecture" >&5
4126 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4127 if test "${llvm_cv_target_arch+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 i?86-*) llvm_cv_target_arch="x86" ;;
4132 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4133 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4134 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4135 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4136 arm*-*) llvm_cv_target_arch="ARM" ;;
4137 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4138 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4139 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4140 xcore-*) llvm_cv_target_arch="XCore" ;;
4141 msp430-*) llvm_cv_target_arch="MSP430" ;;
4142 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4143 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4144 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4145 *) llvm_cv_target_arch="Unknown" ;;
4148 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4149 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4151 if test "$llvm_cv_target_arch" = "Unknown" ; then
4152 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4153 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4156 case "$llvm_cv_target_arch" in
4157 x86) LLVM_NATIVE_ARCH="X86" ;;
4158 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4159 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4162 ARCH=$llvm_cv_target_arch
4164 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4168 i?86-*) host_arch="x86" ;;
4169 amd64-* | x86_64-*) host_arch="x86_64" ;;
4170 sparc*-*) host_arch="Sparc" ;;
4171 powerpc*-*) host_arch="PowerPC" ;;
4172 arm64*-*) host_arch="AArch64" ;;
4173 arm*-*) host_arch="ARM" ;;
4174 aarch64*-*) host_arch="AArch64" ;;
4175 mips-* | mips64-*) host_arch="Mips" ;;
4176 mipsel-* | mips64el-*) host_arch="Mips" ;;
4177 xcore-*) host_arch="XCore" ;;
4178 msp430-*) host_arch="MSP430" ;;
4179 hexagon-*) host_arch="Hexagon" ;;
4180 s390x-*) host_arch="SystemZ" ;;
4181 *) host_arch="Unknown" ;;
4184 if test "$host_arch" = "Unknown" ; then
4185 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4186 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4189 HOST_ARCH=$host_arch
4192 if test "$cross_compiling" = yes; then
4193 LLVM_CROSS_COMPILING=1
4196 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4197 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4198 if test "${ac_cv_build_exeext+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4202 ac_cv_build_exeext=.exe
4204 ac_build_prefix=${build_alias}-
4206 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4207 set dummy ${ac_build_prefix}gcc; ac_word=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 if test -n "$BUILD_CC"; then
4214 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 BUILD_CC=$ac_cv_prog_BUILD_CC
4234 if test -n "$BUILD_CC"; then
4235 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4236 echo "${ECHO_T}$BUILD_CC" >&6; }
4238 { echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6; }
4243 if test -z "$BUILD_CC"; then
4244 # Extract the first word of "gcc", so it can be a program name with args.
4245 set dummy gcc; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 if test -n "$BUILD_CC"; then
4252 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_BUILD_CC="gcc"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 BUILD_CC=$ac_cv_prog_BUILD_CC
4272 if test -n "$BUILD_CC"; then
4273 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4274 echo "${ECHO_T}$BUILD_CC" >&6; }
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4281 if test -z "$BUILD_CC"; then
4282 # Extract the first word of "cc", so it can be a program name with args.
4283 set dummy cc; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 if test -n "$BUILD_CC"; then
4290 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4301 ac_prog_rejected=yes
4304 ac_cv_prog_BUILD_CC="cc"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 if test $ac_prog_rejected = yes; then
4313 # We found a bogon in the path, so make sure we never use it.
4314 set dummy $ac_cv_prog_BUILD_CC
4316 if test $# != 0; then
4317 # We chose a different compiler from the bogus one.
4318 # However, it has the same basename, so the bogon will be chosen
4319 # first if we set BUILD_CC to just the basename; use the full file name.
4321 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4326 BUILD_CC=$ac_cv_prog_BUILD_CC
4327 if test -n "$BUILD_CC"; then
4328 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4329 echo "${ECHO_T}$BUILD_CC" >&6; }
4331 { echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6; }
4338 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4339 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4340 { (exit 1); exit 1; }; }
4341 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4343 echo 'int main () { return 0; }' > conftest.$ac_ext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4346 (eval $ac_build_link) 2>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; then
4350 for file in conftest.*; do
4352 *.c | *.o | *.obj | *.dSYM) ;;
4353 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4357 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4358 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4359 { (exit 1); exit 1; }; }
4362 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4367 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4368 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4369 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4370 ac_build_exeext=$BUILD_EXEEXT
4372 ac_build_prefix=${build_alias}-
4373 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4374 set dummy ${ac_build_prefix}g++; ac_word=$2
4375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4377 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test -n "$BUILD_CXX"; then
4381 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4401 if test -n "$BUILD_CXX"; then
4402 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4403 echo "${ECHO_T}$BUILD_CXX" >&6; }
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4410 if test -z "$BUILD_CXX"; then
4411 # Extract the first word of "g++", so it can be a program name with args.
4412 set dummy g++; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 if test -n "$BUILD_CXX"; then
4419 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_BUILD_CXX="g++"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4439 if test -n "$BUILD_CXX"; then
4440 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4441 echo "${ECHO_T}$BUILD_CXX" >&6; }
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4448 if test -z "$BUILD_CXX"; then
4449 # Extract the first word of "c++", so it can be a program name with args.
4450 set dummy c++; ac_word=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 if test -n "$BUILD_CXX"; then
4457 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4468 ac_prog_rejected=yes
4471 ac_cv_prog_BUILD_CXX="c++"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 if test $ac_prog_rejected = yes; then
4480 # We found a bogon in the path, so make sure we never use it.
4481 set dummy $ac_cv_prog_BUILD_CXX
4483 if test $# != 0; then
4484 # We chose a different compiler from the bogus one.
4485 # However, it has the same basename, so the bogon will be chosen
4486 # first if we set BUILD_CXX to just the basename; use the full file name.
4488 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4493 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4494 if test -n "$BUILD_CXX"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4496 echo "${ECHO_T}$BUILD_CXX" >&6; }
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4506 LLVM_CROSS_COMPILING=0
4510 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4521 # Check whether --enable-libcpp was given.
4522 if test "${enable_libcpp+set}" = set; then
4523 enableval=$enable_libcpp;
4528 case "$enableval" in
4529 yes) ENABLE_LIBCPP=1
4533 default) ENABLE_LIBCPP=0
4535 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4536 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4537 { (exit 1); exit 1; }; } ;;
4540 # Check whether --enable-compiler-version-checks was given.
4541 if test "${enable_compiler_version_checks+set}" = set; then
4542 enableval=$enable_compiler_version_checks;
4547 case "$enableval" in
4552 ac_cpp='$CXXCPP $CPPFLAGS'
4553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4557 case "$llvm_cv_cxx_compiler" in
4559 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4560 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4561 cat >conftest.$ac_ext <<_ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4568 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4569 #error This version of Clang is too old to build LLVM
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_compile") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_try") 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 { echo "$as_me:$LINENO: result: yes" >&5
4608 echo "${ECHO_T}yes" >&6; }
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4615 { { echo "$as_me:$LINENO: error:
4616 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4617 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4618 bypass these sanity checks." >&5
4619 echo "$as_me: error:
4620 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4621 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4622 bypass these sanity checks." >&2;}
4623 { (exit 1); exit 1; }; }
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 if test "$ENABLE_LIBCPP" -eq 0 ; then
4629 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4630 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4631 llvm_cv_old_cxxflags="$CXXFLAGS"
4632 CXXFLAGS="$CXXFLAGS -std=c++0x"
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4641 std::atomic<float> x(0.0f);
4642 int main() { return (float)x; }
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_link") 2>conftest.er1
4654 grep -v '^ *+' conftest.er1 >conftest.err
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4660 { (case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665 (eval "$ac_try") 2>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest$ac_exeext'
4670 { (case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_try") 2>&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 { { echo "$as_me:$LINENO: error:
4688 We detected a missing feature in the standard C++ library that was known to be
4689 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4690 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4691 than 4.7. You will need to update your system and ensure Clang uses the newer
4694 If this error is incorrect or you need to force things to work, you may pass
4695 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4696 echo "$as_me: error:
4697 We detected a missing feature in the standard C++ library that was known to be
4698 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4699 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4700 than 4.7. You will need to update your system and ensure Clang uses the newer
4703 If this error is incorrect or you need to force things to work, you may pass
4704 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4705 { (exit 1); exit 1; }; }
4708 rm -f core conftest.err conftest.$ac_objext \
4709 conftest$ac_exeext conftest.$ac_ext
4710 CXXFLAGS="$llvm_cv_old_cxxflags"
4714 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4715 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4723 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4724 #error This version of GCC is too old to build LLVM
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_compile") 2>conftest.er1
4737 grep -v '^ *+' conftest.er1 >conftest.err
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4743 { (case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_try") 2>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758 (eval "$ac_try") 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 { echo "$as_me:$LINENO: result: yes" >&5
4763 echo "${ECHO_T}yes" >&6; }
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4770 { { echo "$as_me:$LINENO: error:
4771 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4772 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4773 bypass these sanity checks." >&5
4774 echo "$as_me: error:
4775 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4776 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4777 bypass these sanity checks." >&2;}
4778 { (exit 1); exit 1; }; }
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4795 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4796 { (exit 1); exit 1; }; }
4800 # Check whether --enable-cxx1y was given.
4801 if test "${enable_cxx1y+set}" = set; then
4802 enableval=$enable_cxx1y;
4807 case "$enableval" in
4812 default) ENABLE_CXX1Y=0
4814 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4815 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4816 { (exit 1); exit 1; }; } ;;
4819 # Check whether --enable-split-dwarf was given.
4820 if test "${enable_split_dwarf+set}" = set; then
4821 enableval=$enable_split_dwarf;
4826 case "$enableval" in
4827 yes) ENABLE_SPLIT_DWARF=1
4829 no) ENABLE_SPLIT_DWARF=0
4831 default) ENABLE_SPLIT_DWARF=0
4833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4835 { (exit 1); exit 1; }; } ;;
4839 # Check whether --enable-clang-arcmt was given.
4840 if test "${enable_clang_arcmt+set}" = set; then
4841 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4846 case "$enableval" in
4847 yes) ENABLE_CLANG_ARCMT=1
4849 no) ENABLE_CLANG_ARCMT=0
4851 default) ENABLE_CLANG_ARCMT=1
4853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
4858 clang_plugin_support="yes"
4859 # Check whether --enable-clang-plugin-support was given.
4860 if test "${enable_clang_plugin_support+set}" = set; then
4861 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4866 case "$enableval" in
4867 yes) CLANG_PLUGIN_SUPPORT=1
4869 no) CLANG_PLUGIN_SUPPORT=0
4871 default) CLANG_PLUGIN_SUPPORT=1
4873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4878 clang_static_analyzer="yes"
4879 # Check whether --enable-clang-static-analyzer was given.
4880 if test "${enable_clang_static_analyzer+set}" = set; then
4881 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4886 case "$enableval" in
4887 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4890 if test ${clang_arcmt} != "no" ; then
4891 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4892 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4893 { (exit 1); exit 1; }; }
4895 ENABLE_CLANG_STATIC_ANALYZER=0
4898 default) ENABLE_CLANG_STATIC_ANALYZER=1
4900 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4901 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4902 { (exit 1); exit 1; }; } ;;
4905 # Check whether --enable-optimized was given.
4906 if test "${enable_optimized+set}" = set; then
4907 enableval=$enable_optimized;
4912 if test ${enableval} = "no" ; then
4916 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4920 # Check whether --enable-profiling was given.
4921 if test "${enable_profiling+set}" = set; then
4922 enableval=$enable_profiling;
4927 if test ${enableval} = "no" ; then
4931 ENABLE_PROFILING=ENABLE_PROFILING=1
4935 # Check whether --enable-assertions was given.
4936 if test "${enable_assertions+set}" = set; then
4937 enableval=$enable_assertions;
4942 if test ${enableval} = "yes" ; then
4946 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4950 # Check whether --enable-werror was given.
4951 if test "${enable_werror+set}" = set; then
4952 enableval=$enable_werror;
4957 case "$enableval" in
4958 yes) ENABLE_WERROR=1
4962 default) ENABLE_WERROR=0
4964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4965 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4966 { (exit 1); exit 1; }; } ;;
4969 # Check whether --enable-expensive-checks was given.
4970 if test "${enable_expensive_checks+set}" = set; then
4971 enableval=$enable_expensive_checks;
4976 if test ${enableval} = "yes" ; then
4977 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4979 EXPENSIVE_CHECKS=yes
4982 ENABLE_EXPENSIVE_CHECKS=
4988 # Check whether --enable-debug-runtime was given.
4989 if test "${enable_debug_runtime+set}" = set; then
4990 enableval=$enable_debug_runtime;
4995 if test ${enableval} = "no" ; then
4999 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5003 # Check whether --enable-debug-symbols was given.
5004 if test "${enable_debug_symbols+set}" = set; then
5005 enableval=$enable_debug_symbols;
5010 if test ${enableval} = "no" ; then
5014 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5018 # Check whether --enable-keep-symbols was given.
5019 if test "${enable_keep_symbols+set}" = set; then
5020 enableval=$enable_keep_symbols;
5025 if test ${enableval} = "no" ; then
5029 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5033 # Check whether --enable-jit was given.
5034 if test "${enable_jit+set}" = set; then
5035 enableval=$enable_jit;
5040 if test ${enableval} = "no"
5045 case "$llvm_cv_target_arch" in
5046 x86) TARGET_HAS_JIT=1
5048 Sparc) TARGET_HAS_JIT=0
5050 PowerPC) TARGET_HAS_JIT=1
5052 x86_64) TARGET_HAS_JIT=1
5054 ARM) TARGET_HAS_JIT=1
5056 Mips) TARGET_HAS_JIT=1
5058 XCore) TARGET_HAS_JIT=0
5060 MSP430) TARGET_HAS_JIT=0
5062 Hexagon) TARGET_HAS_JIT=0
5064 NVPTX) TARGET_HAS_JIT=0
5066 SystemZ) TARGET_HAS_JIT=1
5073 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5074 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5077 # Check whether --enable-docs was given.
5078 if test "${enable_docs+set}" = set; then
5079 enableval=$enable_docs;
5084 case "$enableval" in
5089 default) ENABLE_DOCS=1
5091 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5092 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5093 { (exit 1); exit 1; }; } ;;
5096 # Check whether --enable-doxygen was given.
5097 if test "${enable_doxygen+set}" = set; then
5098 enableval=$enable_doxygen;
5103 case "$enableval" in
5104 yes) ENABLE_DOXYGEN=1
5106 no) ENABLE_DOXYGEN=0
5108 default) ENABLE_DOXYGEN=0
5110 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5111 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5112 { (exit 1); exit 1; }; } ;;
5115 # Check whether --enable-threads was given.
5116 if test "${enable_threads+set}" = set; then
5117 enableval=$enable_threads;
5122 case "$enableval" in
5123 yes) LLVM_ENABLE_THREADS=1
5125 no) LLVM_ENABLE_THREADS=0
5127 default) LLVM_ENABLE_THREADS=1
5129 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5130 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5131 { (exit 1); exit 1; }; } ;;
5134 cat >>confdefs.h <<_ACEOF
5135 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5139 # Check whether --enable-pthreads was given.
5140 if test "${enable_pthreads+set}" = set; then
5141 enableval=$enable_pthreads;
5146 case "$enableval" in
5147 yes) ENABLE_PTHREADS=1
5149 no) ENABLE_PTHREADS=0
5151 default) ENABLE_PTHREADS=1
5153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5158 # Check whether --enable-zlib was given.
5159 if test "${enable_zlib+set}" = set; then
5160 enableval=$enable_zlib;
5165 case "$enableval" in
5166 yes) LLVM_ENABLE_ZLIB=1
5168 no) LLVM_ENABLE_ZLIB=0
5170 default) LLVM_ENABLE_ZLIB=1
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5177 cat >>confdefs.h <<_ACEOF
5178 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5182 # Check whether --enable-pic was given.
5183 if test "${enable_pic+set}" = set; then
5184 enableval=$enable_pic;
5189 case "$enableval" in
5194 default) ENABLE_PIC=1
5196 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5201 cat >>confdefs.h <<_ACEOF
5202 #define ENABLE_PIC $ENABLE_PIC
5206 # Check whether --enable-shared was given.
5207 if test "${enable_shared+set}" = set; then
5208 enableval=$enable_shared;
5213 case "$enableval" in
5214 yes) ENABLE_SHARED=1
5218 default) ENABLE_SHARED=0
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5225 # Check whether --enable-embed-stdcxx was given.
5226 if test "${enable_embed_stdcxx+set}" = set; then
5227 enableval=$enable_embed_stdcxx;
5232 case "$enableval" in
5233 yes) ENABLE_EMBED_STDCXX=1
5235 no) ENABLE_EMBED_STDCXX=0
5237 default) ENABLE_EMBED_STDCXX=0
5239 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5244 # Check whether --enable-timestamps was given.
5245 if test "${enable_timestamps+set}" = set; then
5246 enableval=$enable_timestamps;
5251 case "$enableval" in
5252 yes) ENABLE_TIMESTAMPS=1
5254 no) ENABLE_TIMESTAMPS=0
5256 default) ENABLE_TIMESTAMPS=1
5258 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5259 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5263 cat >>confdefs.h <<_ACEOF
5264 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5268 # Check whether --enable-backtraces was given.
5269 if test "${enable_backtraces+set}" = set; then
5270 enableval=$enable_backtraces; case "$enableval" in
5271 yes) llvm_cv_enable_backtraces="yes" ;;
5272 no) llvm_cv_enable_backtraces="no" ;;
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5278 llvm_cv_enable_backtraces="yes"
5281 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5283 cat >>confdefs.h <<\_ACEOF
5284 #define ENABLE_BACKTRACES 1
5289 # Check whether --enable-crash-overrides was given.
5290 if test "${enable_crash_overrides+set}" = set; then
5291 enableval=$enable_crash_overrides; case "$enableval" in
5292 yes) llvm_cv_enable_crash_overrides="yes" ;;
5293 no) llvm_cv_enable_crash_overrides="no" ;;
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5299 llvm_cv_enable_crash_overrides="yes"
5302 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5304 cat >>confdefs.h <<\_ACEOF
5305 #define ENABLE_CRASH_OVERRIDES 1
5310 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5311 ALL_TARGETS=$ALL_TARGETS
5315 # Check whether --enable-targets was given.
5316 if test "${enable_targets+set}" = set; then
5317 enableval=$enable_targets;
5322 if test "$enableval" = host-only ; then
5325 case "$enableval" in
5326 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5327 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5329 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5335 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5336 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5340 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5342 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5343 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5344 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5345 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5346 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5347 host) case "$llvm_cv_target_arch" in
5348 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5350 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5351 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5352 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5353 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5354 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5355 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5356 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5357 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5358 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5359 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5360 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5361 echo "$as_me: error: Can not set target to build" >&2;}
5362 { (exit 1); exit 1; }; } ;;
5364 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5365 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5366 { (exit 1); exit 1; }; } ;;
5372 # Check whether --enable-experimental-targets was given.
5373 if test "${enable_experimental_targets+set}" = set; then
5374 enableval=$enable_experimental_targets;
5380 if test ${enableval} != "disable"
5382 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5385 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5388 for a_target in $TARGETS_TO_BUILD; do
5389 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5395 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5396 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5397 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5398 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5400 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5402 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5406 cat >>confdefs.h <<_ACEOF
5407 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5411 cat >>confdefs.h <<_ACEOF
5412 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5425 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5432 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5442 LLVM_ENUM_TARGETS=""
5443 LLVM_ENUM_ASM_PRINTERS=""
5444 LLVM_ENUM_ASM_PARSERS=""
5445 LLVM_ENUM_DISASSEMBLERS=""
5446 for target_to_build in $TARGETS_TO_BUILD; do
5447 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5448 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5449 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5451 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5452 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5454 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5455 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5464 # Check whether --with-optimize-option was given.
5465 if test "${with_optimize_option+set}" = set; then
5466 withval=$with_optimize_option;
5471 { echo "$as_me:$LINENO: checking optimization flags" >&5
5472 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5475 case "$llvm_cv_os_type" in
5476 FreeBSD) optimize_option=-O2 ;;
5477 MingW) optimize_option=-O2 ;;
5478 *) optimize_option=-O3 ;;
5480 *) optimize_option="$withval" ;;
5482 OPTIMIZE_OPTION=$optimize_option
5484 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5485 echo "${ECHO_T}$optimize_option" >&6; }
5488 # Check whether --with-extra-options was given.
5489 if test "${with_extra_options+set}" = set; then
5490 withval=$with_extra_options;
5496 default) EXTRA_OPTIONS= ;;
5497 *) EXTRA_OPTIONS=$withval ;;
5499 EXTRA_OPTIONS=$EXTRA_OPTIONS
5503 # Check whether --with-extra-ld-options was given.
5504 if test "${with_extra_ld_options+set}" = set; then
5505 withval=$with_extra_ld_options;
5511 default) EXTRA_LD_OPTIONS= ;;
5512 *) EXTRA_LD_OPTIONS=$withval ;;
5514 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5517 # Check whether --enable-bindings was given.
5518 if test "${enable_bindings+set}" = set; then
5519 enableval=$enable_bindings;
5524 BINDINGS_TO_BUILD=""
5525 case "$enableval" in
5526 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5527 all ) BINDINGS_TO_BUILD="ocaml" ;;
5528 none | no) BINDINGS_TO_BUILD="" ;;
5529 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5530 case "$a_binding" in
5531 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5532 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5533 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5534 { (exit 1); exit 1; }; } ;;
5541 # Check whether --with-ocaml-libdir was given.
5542 if test "${with_ocaml_libdir+set}" = set; then
5543 withval=$with_ocaml_libdir;
5549 auto) with_ocaml_libdir="$withval" ;;
5550 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5551 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5552 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5553 { (exit 1); exit 1; }; } ;;
5557 # Check whether --with-clang-srcdir was given.
5558 if test "${with_clang_srcdir+set}" = set; then
5559 withval=$with_clang_srcdir;
5565 -) clang_src_root="" ;;
5566 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5567 *) clang_src_root="$ac_pwd/$withval" ;;
5569 CLANG_SRC_ROOT=$clang_src_root
5573 # Check whether --with-clang-resource-dir was given.
5574 if test "${with_clang_resource_dir+set}" = set; then
5575 withval=$with_clang_resource_dir;
5581 cat >>confdefs.h <<_ACEOF
5582 #define CLANG_RESOURCE_DIR "$withval"
5587 # Check whether --with-c-include-dirs was given.
5588 if test "${with_c_include_dirs+set}" = set; then
5589 withval=$with_c_include_dirs;
5595 cat >>confdefs.h <<_ACEOF
5596 #define C_INCLUDE_DIRS "$withval"
5600 # Clang normally uses the system c++ headers and libraries. With this option,
5601 # clang will use the ones provided by a gcc installation instead. This option should
5602 # be passed the same value that was used with --prefix when configuring gcc.
5604 # Check whether --with-gcc-toolchain was given.
5605 if test "${with_gcc_toolchain+set}" = set; then
5606 withval=$with_gcc_toolchain;
5612 cat >>confdefs.h <<_ACEOF
5613 #define GCC_INSTALL_PREFIX "$withval"
5618 # Check whether --with-default-sysroot was given.
5619 if test "${with_default_sysroot+set}" = set; then
5620 withval=$with_default_sysroot;
5626 cat >>confdefs.h <<_ACEOF
5627 #define DEFAULT_SYSROOT "$withval"
5632 # Check whether --with-binutils-include was given.
5633 if test "${with_binutils_include+set}" = set; then
5634 withval=$with_binutils_include;
5640 default) WITH_BINUTILS_INCDIR=default ;;
5641 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5642 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5643 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5644 { (exit 1); exit 1; }; } ;;
5646 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5647 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5649 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5650 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5651 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5652 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5653 { (exit 1); exit 1; }; };
5658 # Check whether --with-bug-report-url was given.
5659 if test "${with_bug_report_url+set}" = set; then
5660 withval=$with_bug_report_url;
5662 withval="http://llvm.org/bugs/"
5666 cat >>confdefs.h <<_ACEOF
5667 #define BUG_REPORT_URL "$withval"
5671 # Check whether --enable-terminfo was given.
5672 if test "${enable_terminfo+set}" = set; then
5673 enableval=$enable_terminfo; case "$enableval" in
5674 yes) llvm_cv_enable_terminfo="yes" ;;
5675 no) llvm_cv_enable_terminfo="no" ;;
5676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5677 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5678 { (exit 1); exit 1; }; } ;;
5681 llvm_cv_enable_terminfo="yes"
5684 case "$llvm_cv_enable_terminfo" in
5685 yes) ENABLE_TERMINFO=1
5687 no) ENABLE_TERMINFO=0
5691 # Check whether --enable-libedit was given.
5692 if test "${enable_libedit+set}" = set; then
5693 enableval=$enable_libedit; case "$enableval" in
5694 yes) llvm_cv_enable_libedit="yes" ;;
5695 no) llvm_cv_enable_libedit="no" ;;
5696 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5697 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5698 { (exit 1); exit 1; }; } ;;
5701 llvm_cv_enable_libedit="yes"
5705 # Check whether --enable-libffi was given.
5706 if test "${enable_libffi+set}" = set; then
5707 enableval=$enable_libffi; case "$enableval" in
5708 yes) llvm_cv_enable_libffi="yes" ;;
5709 no) llvm_cv_enable_libffi="no" ;;
5710 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5711 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5712 { (exit 1); exit 1; }; } ;;
5715 llvm_cv_enable_libffi=no
5720 # Check whether --with-internal-prefix was given.
5721 if test "${with_internal_prefix+set}" = set; then
5722 withval=$with_internal_prefix;
5727 INTERNAL_PREFIX=$withval
5731 { echo "$as_me:$LINENO: checking for GNU make" >&5
5732 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5733 if test "${llvm_cv_gnu_make_command+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 llvm_cv_gnu_make_command=''
5737 for a in "$MAKE" make gmake gnumake ; do
5738 if test -z "$a" ; then continue ; fi ;
5739 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5741 llvm_cv_gnu_make_command=$a ;
5746 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5747 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5748 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5752 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5753 echo "${ECHO_T}\"Not found\"" >&6; };
5757 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5758 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5760 if test "$LN_S" = "ln -s"; then
5761 { echo "$as_me:$LINENO: result: yes" >&5
5762 echo "${ECHO_T}yes" >&6; }
5764 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5765 echo "${ECHO_T}no, using $LN_S" >&6; }
5768 # Extract the first word of "nm", so it can be a program name with args.
5769 set dummy nm; ac_word=$2
5770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5772 if test "${ac_cv_path_NM+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5800 if test -n "$NM"; then
5801 { echo "$as_me:$LINENO: result: $NM" >&5
5802 echo "${ECHO_T}$NM" >&6; }
5804 { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5809 # Extract the first word of "cmp", so it can be a program name with args.
5810 set dummy cmp; ac_word=$2
5811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5813 if test "${ac_cv_path_CMP+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5841 if test -n "$CMP"; then
5842 { echo "$as_me:$LINENO: result: $CMP" >&5
5843 echo "${ECHO_T}$CMP" >&6; }
5845 { echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6; }
5850 # Extract the first word of "cp", so it can be a program name with args.
5851 set dummy cp; ac_word=$2
5852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854 if test "${ac_cv_path_CP+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5869 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5882 if test -n "$CP"; then
5883 { echo "$as_me:$LINENO: result: $CP" >&5
5884 echo "${ECHO_T}$CP" >&6; }
5886 { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5891 # Extract the first word of "date", so it can be a program name with args.
5892 set dummy date; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_path_DATE+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5922 DATE=$ac_cv_path_DATE
5923 if test -n "$DATE"; then
5924 { echo "$as_me:$LINENO: result: $DATE" >&5
5925 echo "${ECHO_T}$DATE" >&6; }
5927 { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5932 # Extract the first word of "find", so it can be a program name with args.
5933 set dummy find; ac_word=$2
5934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5936 if test "${ac_cv_path_FIND+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5963 FIND=$ac_cv_path_FIND
5964 if test -n "$FIND"; then
5965 { echo "$as_me:$LINENO: result: $FIND" >&5
5966 echo "${ECHO_T}$FIND" >&6; }
5968 { echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6; }
5973 # Extract the first word of "grep", so it can be a program name with args.
5974 set dummy grep; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_path_GREP+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6004 GREP=$ac_cv_path_GREP
6005 if test -n "$GREP"; then
6006 { echo "$as_me:$LINENO: result: $GREP" >&5
6007 echo "${ECHO_T}$GREP" >&6; }
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6014 # Extract the first word of "mkdir", so it can be a program name with args.
6015 set dummy mkdir; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_path_MKDIR+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6045 MKDIR=$ac_cv_path_MKDIR
6046 if test -n "$MKDIR"; then
6047 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6048 echo "${ECHO_T}$MKDIR" >&6; }
6050 { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6055 # Extract the first word of "mv", so it can be a program name with args.
6056 set dummy mv; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_path_MV+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6087 if test -n "$MV"; then
6088 { echo "$as_me:$LINENO: result: $MV" >&5
6089 echo "${ECHO_T}$MV" >&6; }
6091 { echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6; }
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_RANLIB+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 if test -n "$RANLIB"; then
6105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 RANLIB=$ac_cv_prog_RANLIB
6125 if test -n "$RANLIB"; then
6126 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6127 echo "${ECHO_T}$RANLIB" >&6; }
6129 { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6135 if test -z "$ac_cv_prog_RANLIB"; then
6136 ac_ct_RANLIB=$RANLIB
6137 # Extract the first word of "ranlib", so it can be a program name with args.
6138 set dummy ranlib; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 if test -n "$ac_ct_RANLIB"; then
6145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_ac_ct_RANLIB="ranlib"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165 if test -n "$ac_ct_RANLIB"; then
6166 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6167 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6173 if test "x$ac_ct_RANLIB" = x; then
6176 case $cross_compiling:$ac_tool_warned in
6178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet. If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&5
6181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6182 whose name does not start with the host triplet. If you think this
6183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6184 ac_tool_warned=yes ;;
6186 RANLIB=$ac_ct_RANLIB
6189 RANLIB="$ac_cv_prog_RANLIB"
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}ar; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_AR+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 if test -n "$AR"; then
6201 ac_cv_prog_AR="$AR" # Let the user override the test.
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_AR="${ac_tool_prefix}ar"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 if test -n "$AR"; then
6222 { echo "$as_me:$LINENO: result: $AR" >&5
6223 echo "${ECHO_T}$AR" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6231 if test -z "$ac_cv_prog_AR"; then
6233 # Extract the first word of "ar", so it can be a program name with args.
6234 set dummy ar; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 if test -n "$ac_ct_AR"; then
6241 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_AR="ar"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6261 if test -n "$ac_ct_AR"; then
6262 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6263 echo "${ECHO_T}$ac_ct_AR" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6269 if test "x$ac_ct_AR" = x; then
6272 case $cross_compiling:$ac_tool_warned in
6274 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet. If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&5
6277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6278 whose name does not start with the host triplet. If you think this
6279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6280 ac_tool_warned=yes ;;
6288 # Extract the first word of "rm", so it can be a program name with args.
6289 set dummy rm; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_path_RM+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6320 if test -n "$RM"; then
6321 { echo "$as_me:$LINENO: result: $RM" >&5
6322 echo "${ECHO_T}$RM" >&6; }
6324 { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6329 # Extract the first word of "sed", so it can be a program name with args.
6330 set dummy sed; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_path_SED+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6361 if test -n "$SED"; then
6362 { echo "$as_me:$LINENO: result: $SED" >&5
6363 echo "${ECHO_T}$SED" >&6; }
6365 { echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6; }
6370 # Extract the first word of "tar", so it can be a program name with args.
6371 set dummy tar; ac_word=$2
6372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374 if test "${ac_cv_path_TAR+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6402 if test -n "$TAR"; then
6403 { echo "$as_me:$LINENO: result: $TAR" >&5
6404 echo "${ECHO_T}$TAR" >&6; }
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6411 # Extract the first word of "pwd", so it can be a program name with args.
6412 set dummy pwd; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_path_BINPWD+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6442 BINPWD=$ac_cv_path_BINPWD
6443 if test -n "$BINPWD"; then
6444 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6445 echo "${ECHO_T}$BINPWD" >&6; }
6447 { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6453 # Extract the first word of "dot", so it can be a program name with args.
6454 set dummy dot; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_path_DOT+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6485 if test -n "$DOT"; then
6486 { echo "$as_me:$LINENO: result: $DOT" >&5
6487 echo "${ECHO_T}$DOT" >&6; }
6489 { echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6; }
6494 if test "$DOT" != "echo dot" ; then
6496 cat >>confdefs.h <<\_ACEOF
6500 if test "$llvm_cv_os_type" = "MingW" ; then
6501 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6504 cat >>confdefs.h <<_ACEOF
6505 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6510 # Find a good install program. We prefer a C program (faster),
6511 # so one script is as good as another. But avoid the broken or
6512 # incompatible versions:
6513 # SysV /etc/install, /usr/sbin/install
6514 # SunOS /usr/etc/install
6515 # IRIX /sbin/install
6517 # AmigaOS /C/install, which installs bootblocks on floppy discs
6518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6521 # OS/2's system install, which has a completely different semantic
6522 # ./install, which can be erroneously created by make from ./install.sh.
6523 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6524 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6525 if test -z "$INSTALL"; then
6526 if test "${ac_cv_path_install+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 # Account for people who put trailing slashes in PATH elements.
6536 ./ | .// | /cC/* | \
6537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6538 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6541 # OSF1 and SCO ODT 3.0 have their own names for install.
6542 # Don't use installbsd from OSF since it installs stuff as root
6544 for ac_prog in ginstall scoinst install; do
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6547 if test $ac_prog = install &&
6548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6549 # AIX install. It has an incompatible calling convention.
6551 elif test $ac_prog = install &&
6552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6553 # program-specific install script used by HP pwplus--don't use.
6556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6569 if test "${ac_cv_path_install+set}" = set; then
6570 INSTALL=$ac_cv_path_install
6572 # As a last resort, use the slow shell script. Don't cache a
6573 # value for INSTALL within a source directory, because that will
6574 # break other packages using the cache if that directory is
6575 # removed, or if the value is a relative name.
6576 INSTALL=$ac_install_sh
6579 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6580 echo "${ECHO_T}$INSTALL" >&6; }
6582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6583 # It thinks the first close brace ends the variable substitution.
6584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6591 [\\/$]* | ?:[\\/]* ) ;;
6592 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6595 # Extract the first word of "bzip2", so it can be a program name with args.
6596 set dummy bzip2; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_path_BZIP2+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 BZIP2=$ac_cv_path_BZIP2
6626 if test -n "$BZIP2"; then
6627 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6628 echo "${ECHO_T}$BZIP2" >&6; }
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6635 # Extract the first word of "cat", so it can be a program name with args.
6636 set dummy cat; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_path_CAT+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 if test -n "$CAT"; then
6667 { echo "$as_me:$LINENO: result: $CAT" >&5
6668 echo "${ECHO_T}$CAT" >&6; }
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6675 # Extract the first word of "doxygen", so it can be a program name with args.
6676 set dummy doxygen; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 DOXYGEN=$ac_cv_path_DOXYGEN
6706 if test -n "$DOXYGEN"; then
6707 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6708 echo "${ECHO_T}$DOXYGEN" >&6; }
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6715 # Extract the first word of "groff", so it can be a program name with args.
6716 set dummy groff; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_path_GROFF+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 GROFF=$ac_cv_path_GROFF
6746 if test -n "$GROFF"; then
6747 { echo "$as_me:$LINENO: result: $GROFF" >&5
6748 echo "${ECHO_T}$GROFF" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6755 # Extract the first word of "gzip", so it can be a program name with args.
6756 set dummy gzip; ac_word=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 GZIPBIN=$ac_cv_path_GZIPBIN
6786 if test -n "$GZIPBIN"; then
6787 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6788 echo "${ECHO_T}$GZIPBIN" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6795 # Extract the first word of "pdfroff", so it can be a program name with args.
6796 set dummy pdfroff; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_PDFROFF+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 PDFROFF=$ac_cv_path_PDFROFF
6826 if test -n "$PDFROFF"; then
6827 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6828 echo "${ECHO_T}$PDFROFF" >&6; }
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6835 # Extract the first word of "zip", so it can be a program name with args.
6836 set dummy zip; ac_word=$2
6837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6839 if test "${ac_cv_path_ZIP+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 if test -n "$ZIP"; then
6867 { echo "$as_me:$LINENO: result: $ZIP" >&5
6868 echo "${ECHO_T}$ZIP" >&6; }
6870 { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6875 for ac_prog in ocamlc
6877 # Extract the first word of "$ac_prog", so it can be a program name with args.
6878 set dummy $ac_prog; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_OCAMLC+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 OCAMLC=$ac_cv_path_OCAMLC
6908 if test -n "$OCAMLC"; then
6909 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6910 echo "${ECHO_T}$OCAMLC" >&6; }
6912 { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6917 test -n "$OCAMLC" && break
6920 for ac_prog in ocamlopt
6922 # Extract the first word of "$ac_prog", so it can be a program name with args.
6923 set dummy $ac_prog; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 OCAMLOPT=$ac_cv_path_OCAMLOPT
6953 if test -n "$OCAMLOPT"; then
6954 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6955 echo "${ECHO_T}$OCAMLOPT" >&6; }
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6962 test -n "$OCAMLOPT" && break
6965 for ac_prog in ocamldep
6967 # Extract the first word of "$ac_prog", so it can be a program name with args.
6968 set dummy $ac_prog; ac_word=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6986 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 OCAMLDEP=$ac_cv_path_OCAMLDEP
6998 if test -n "$OCAMLDEP"; then
6999 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7000 echo "${ECHO_T}$OCAMLDEP" >&6; }
7002 { echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6; }
7007 test -n "$OCAMLDEP" && break
7010 for ac_prog in ocamldoc
7012 # Extract the first word of "$ac_prog", so it can be a program name with args.
7013 set dummy $ac_prog; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 OCAMLDOC=$ac_cv_path_OCAMLDOC
7043 if test -n "$OCAMLDOC"; then
7044 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7045 echo "${ECHO_T}$OCAMLDOC" >&6; }
7047 { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7052 test -n "$OCAMLDOC" && break
7055 for ac_prog in gas as
7057 # Extract the first word of "$ac_prog", so it can be a program name with args.
7058 set dummy $ac_prog; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_GAS+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 if test -n "$GAS"; then
7089 { echo "$as_me:$LINENO: result: $GAS" >&5
7090 echo "${ECHO_T}$GAS" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 test -n "$GAS" && break
7101 { echo "$as_me:$LINENO: checking for linker version" >&5
7102 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7103 if test "${llvm_cv_link_version+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7110 if (echo "$version_string" | grep -q "ld64"); then
7111 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7113 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7117 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7118 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7120 cat >>confdefs.h <<_ACEOF
7121 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7127 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7128 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7129 if test "${llvm_cv_link_use_r+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 ac_cpp='$CPP $CPPFLAGS'
7134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7139 CFLAGS="$CFLAGS -Wl,-R."
7140 cat >conftest.$ac_ext <<_ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7155 rm -f conftest.$ac_objext conftest$ac_exeext
7156 if { (ac_try="$ac_link"
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_link") 2>conftest.er1
7164 grep -v '^ *+' conftest.er1 >conftest.err
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7170 { (case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175 (eval "$ac_try") 2>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try='test -s conftest$ac_exeext'
7180 { (case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_try") 2>&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; }; then
7189 llvm_cv_link_use_r=yes
7191 echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7194 llvm_cv_link_use_r=no
7197 rm -f core conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7201 ac_cpp='$CPP $CPPFLAGS'
7202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7208 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7209 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7210 if test "$llvm_cv_link_use_r" = yes ; then
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_LINK_R 1
7219 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7220 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7221 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 ac_cpp='$CPP $CPPFLAGS'
7226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7231 CFLAGS="$CFLAGS -rdynamic"
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7247 rm -f conftest.$ac_objext conftest$ac_exeext
7248 if { (ac_try="$ac_link"
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_link") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1 >conftest.err
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7262 { (case "(($ac_try" in
7263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264 *) ac_try_echo=$ac_try;;
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267 (eval "$ac_try") 2>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try='test -s conftest$ac_exeext'
7272 { (case "(($ac_try" in
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_try") 2>&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
7281 llvm_cv_link_use_export_dynamic=yes
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7286 llvm_cv_link_use_export_dynamic=no
7289 rm -f core conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7293 ac_cpp='$CPP $CPPFLAGS'
7294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7300 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7301 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7302 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_LINK_EXPORT_DYNAMIC 1
7311 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7312 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7313 if test "${llvm_cv_link_use_version_script+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324 # The following code is from the autoconf manual,
7325 # "11.13: Limitations of Usual Tools".
7326 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7327 # Use mktemp if possible; otherwise fall back on mkdir,
7328 # with $RANDOM to make collisions less likely.
7332 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7334 test -n "$tmp" && test -d "$tmp"
7336 tmp=$TMPDIR/foo$$-$RANDOM
7337 (umask 077 && mkdir "$tmp")
7340 echo "{" > "$tmp/export.map"
7341 echo " global: main;" >> "$tmp/export.map"
7342 echo " local: *;" >> "$tmp/export.map"
7343 echo "};" >> "$tmp/export.map"
7345 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7346 cat >conftest.$ac_ext <<_ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (ac_try="$ac_link"
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_link") 2>conftest.er1
7370 grep -v '^ *+' conftest.er1 >conftest.err
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7376 { (case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_try") 2>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (case "(($ac_try" in
7387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388 *) ac_try_echo=$ac_try;;
7390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391 (eval "$ac_try") 2>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 llvm_cv_link_use_version_script=yes
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7400 llvm_cv_link_use_version_script=no
7403 rm -f core conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7405 rm "$tmp/export.map"
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7416 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7417 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7418 if test "$llvm_cv_link_use_version_script" = yes ; then
7419 HAVE_LINK_VERSION_SCRIPT=1
7425 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7426 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_GREP+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 # Extract the first word of "grep ggrep" to use in msg output
7431 if test -z "$GREP"; then
7432 set dummy grep ggrep; ac_prog_name=$2
7433 if test "${ac_cv_path_GREP+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 ac_path_GREP_found=false
7437 # Loop through the user's path and test for each of PROGNAME-LIST
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7442 test -z "$as_dir" && as_dir=.
7443 for ac_prog in grep ggrep; do
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7446 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7447 # Check for GNU ac_path_GREP and select it if it is found.
7448 # Check for GNU $ac_path_GREP
7449 case `"$ac_path_GREP" --version 2>&1` in
7451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7454 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7457 cat "conftest.in" "conftest.in" >"conftest.tmp"
7458 mv "conftest.tmp" "conftest.in"
7459 cp "conftest.in" "conftest.nl"
7460 echo 'GREP' >> "conftest.nl"
7461 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7463 ac_count=`expr $ac_count + 1`
7464 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7465 # Best one so far, save it but keep looking for a better one
7466 ac_cv_path_GREP="$ac_path_GREP"
7467 ac_path_GREP_max=$ac_count
7469 # 10*(2^10) chars as input seems more than enough
7470 test $ac_count -gt 10 && break
7472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7476 $ac_path_GREP_found && break 3
7486 GREP="$ac_cv_path_GREP"
7487 if test -z "$GREP"; then
7488 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7489 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7490 { (exit 1); exit 1; }; }
7494 ac_cv_path_GREP=$GREP
7499 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7500 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7501 GREP="$ac_cv_path_GREP"
7504 { echo "$as_me:$LINENO: checking for egrep" >&5
7505 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_EGREP+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7510 then ac_cv_path_EGREP="$GREP -E"
7512 # Extract the first word of "egrep" to use in msg output
7513 if test -z "$EGREP"; then
7514 set dummy egrep; ac_prog_name=$2
7515 if test "${ac_cv_path_EGREP+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 ac_path_EGREP_found=false
7519 # Loop through the user's path and test for each of PROGNAME-LIST
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7524 test -z "$as_dir" && as_dir=.
7525 for ac_prog in egrep; do
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7528 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7529 # Check for GNU ac_path_EGREP and select it if it is found.
7530 # Check for GNU $ac_path_EGREP
7531 case `"$ac_path_EGREP" --version 2>&1` in
7533 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7536 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7539 cat "conftest.in" "conftest.in" >"conftest.tmp"
7540 mv "conftest.tmp" "conftest.in"
7541 cp "conftest.in" "conftest.nl"
7542 echo 'EGREP' >> "conftest.nl"
7543 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7545 ac_count=`expr $ac_count + 1`
7546 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7547 # Best one so far, save it but keep looking for a better one
7548 ac_cv_path_EGREP="$ac_path_EGREP"
7549 ac_path_EGREP_max=$ac_count
7551 # 10*(2^10) chars as input seems more than enough
7552 test $ac_count -gt 10 && break
7554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7558 $ac_path_EGREP_found && break 3
7568 EGREP="$ac_cv_path_EGREP"
7569 if test -z "$EGREP"; then
7570 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7571 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7572 { (exit 1); exit 1; }; }
7576 ac_cv_path_EGREP=$EGREP
7582 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7583 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7584 EGREP="$ac_cv_path_EGREP"
7587 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7589 if test "${ac_cv_header_stdc+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 cat >conftest.$ac_ext <<_ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7611 rm -f conftest.$ac_objext
7612 if { (ac_try="$ac_compile"
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618 (eval "$ac_compile") 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7626 { (case "(($ac_try" in
7627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628 *) ac_try_echo=$ac_try;;
7630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7631 (eval "$ac_try") 2>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; } &&
7635 { ac_try='test -s conftest.$ac_objext'
7636 { (case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_try") 2>&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_header_stdc=yes
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_cv_header_stdc=no
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 if test $ac_cv_header_stdc = yes; then
7656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7657 cat >conftest.$ac_ext <<_ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7667 $EGREP "memchr" >/dev/null 2>&1; then
7670 ac_cv_header_stdc=no
7676 if test $ac_cv_header_stdc = yes; then
7677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7678 cat >conftest.$ac_ext <<_ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7688 $EGREP "free" >/dev/null 2>&1; then
7691 ac_cv_header_stdc=no
7697 if test $ac_cv_header_stdc = yes; then
7698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7699 if test "$cross_compiling" = yes; then
7702 cat >conftest.$ac_ext <<_ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7710 #if ((' ' & 0x0FF) == 0x020)
7711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7714 # define ISLOWER(c) \
7715 (('a' <= (c) && (c) <= 'i') \
7716 || ('j' <= (c) && (c) <= 'r') \
7717 || ('s' <= (c) && (c) <= 'z'))
7718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7726 for (i = 0; i < 256; i++)
7727 if (XOR (islower (i), ISLOWER (i))
7728 || toupper (i) != TOUPPER (i))
7733 rm -f conftest$ac_exeext
7734 if { (ac_try="$ac_link"
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740 (eval "$ac_link") 2>&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7744 { (case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_try") 2>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7755 echo "$as_me: program exited with status $ac_status" >&5
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_cv_header_stdc=no
7762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7768 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7769 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7770 if test $ac_cv_header_stdc = yes; then
7772 cat >>confdefs.h <<\_ACEOF
7773 #define STDC_HEADERS 1
7778 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7788 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7789 inttypes.h stdint.h unistd.h
7791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 $ac_includes_default
7805 #include <$ac_header>
7807 rm -f conftest.$ac_objext
7808 if { (ac_try="$ac_compile"
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_compile") 2>conftest.er1
7816 grep -v '^ *+' conftest.er1 >conftest.err
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7822 { (case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_try") 2>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; } &&
7831 { ac_try='test -s conftest.$ac_objext'
7832 { (case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_try") 2>&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 eval "$as_ac_Header=yes"
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 eval "$as_ac_Header=no"
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851 ac_res=`eval echo '${'$as_ac_Header'}'`
7852 { echo "$as_me:$LINENO: result: $ac_res" >&5
7853 echo "${ECHO_T}$ac_res" >&6; }
7854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7855 cat >>confdefs.h <<_ACEOF
7856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7865 for ac_header in errno.h
7867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 ac_res=`eval echo '${'$as_ac_Header'}'`
7875 { echo "$as_me:$LINENO: result: $ac_res" >&5
7876 echo "${ECHO_T}$ac_res" >&6; }
7878 # Is the header compilable?
7879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7881 cat >conftest.$ac_ext <<_ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7887 $ac_includes_default
7888 #include <$ac_header>
7890 rm -f conftest.$ac_objext
7891 if { (ac_try="$ac_compile"
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_compile") 2>conftest.er1
7899 grep -v '^ *+' conftest.er1 >conftest.err
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7905 { (case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_try") 2>&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try='test -s conftest.$ac_objext'
7915 { (case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_try") 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_header_compiler=yes
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_header_compiler=no
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7934 echo "${ECHO_T}$ac_header_compiler" >&6; }
7936 # Is the header present?
7937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 #include <$ac_header>
7947 if { (ac_try="$ac_cpp conftest.$ac_ext"
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } >/dev/null; then
7960 if test -s conftest.err; then
7961 ac_cpp_err=$ac_c_preproc_warn_flag
7962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7969 if test -z "$ac_cpp_err"; then
7970 ac_header_preproc=yes
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ac_header_preproc=no
7978 rm -f conftest.err conftest.$ac_ext
7979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7980 echo "${ECHO_T}$ac_header_preproc" >&6; }
7982 # So? What about this header?
7983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7989 ac_header_preproc=yes
7992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8005 ## ------------------------------------ ##
8006 ## Report this to http://llvm.org/bugs/ ##
8007 ## ------------------------------------ ##
8009 ) | sed "s/^/$as_me: WARNING: /" >&2
8012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 eval "$as_ac_Header=\$ac_header_preproc"
8019 ac_res=`eval echo '${'$as_ac_Header'}'`
8020 { echo "$as_me:$LINENO: result: $ac_res" >&5
8021 echo "${ECHO_T}$ac_res" >&6; }
8024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8025 cat >>confdefs.h <<_ACEOF
8026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8034 case "$llvm_cv_os_type" in
8035 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8036 Darwin) llvm_shlib_ext=.dylib ;;
8037 *) llvm_shlib_ext=.so ;;
8041 cat >>confdefs.h <<_ACEOF
8042 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8046 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8047 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8060 if test "$GCC" != "yes" && test "$ICC" != "yes"
8062 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8063 echo "$as_me: error: gcc|icc required but not found" >&2;}
8064 { (exit 1); exit 1; }; }
8067 if test "$GXX" != "yes" && test "$IXX" != "yes"
8069 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8070 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8071 { (exit 1); exit 1; }; }
8074 if test "$GCC" = "yes"
8076 cat >conftest.$ac_ext <<_ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8084 #if !defined(__GNUC__) || __GNUC__ < 3
8085 #error Unsupported GCC version
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8105 { (case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_try") 2>&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest.$ac_objext'
8115 { (case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_try") 2>&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8130 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8131 { (exit 1); exit 1; }; }
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 if test -z "$llvm_cv_gnu_make_command"
8139 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8140 echo "$as_me: error: GNU Make required but not found" >&2;}
8141 { (exit 1); exit 1; }; }
8144 { echo "$as_me:$LINENO: result: ok" >&5
8145 echo "${ECHO_T}ok" >&6; }
8147 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8148 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8149 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8151 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8153 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8157 NO_MAYBE_UNINITIALIZED=
8158 if test "$GXX" = "yes"
8160 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8162 if test -z "$NO_MAYBE_UNINITIALIZED"
8164 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8168 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8169 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8172 # Check whether --with-python was given.
8173 if test "${with_python+set}" = set; then
8174 withval=$with_python; PYTHON="$withval"
8178 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8179 { echo "$as_me:$LINENO: checking for python" >&5
8180 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8181 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8182 echo "${ECHO_T}user defined: $with_python" >&6; }
8184 if test -n "$PYTHON" ; then
8185 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8186 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8189 # Extract the first word of "python python2 python26", so it can be a program name with args.
8190 set dummy python python2 python26; ac_word=$2
8191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8193 if test "${ac_cv_path_PYTHON+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8208 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8217 echo "${ECHO_T}not found" >&6; }
8218 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8219 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8220 { (exit 1); exit 1; }; }"
8224 PYTHON=$ac_cv_path_PYTHON
8225 if test -n "$PYTHON"; then
8226 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8227 echo "${ECHO_T}$PYTHON" >&6; }
8229 { echo "$as_me:$LINENO: result: no" >&5
8230 echo "${ECHO_T}no" >&6; }
8236 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8237 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8238 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8239 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8240 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8241 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8242 if test "$ac_python_version_major" -gt "2" || \
8243 (test "$ac_python_version_major" -eq "2" && \
8244 test "$ac_python_version_minor" -ge "5") ; then
8245 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8246 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8248 { echo "$as_me:$LINENO: result: not found" >&5
8249 echo "${ECHO_T}not found" >&6; }
8250 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8251 See \`config.log' for more details." >&5
8252 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8253 See \`config.log' for more details." >&2;}
8254 { (exit 1); exit 1; }; }
8259 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8260 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8261 if test "${ac_cv_lib_m_sin+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_check_lib_save_LIBS=$LIBS
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8273 /* Override any GCC internal prototype to avoid an error.
8274 Use char because int might match the return type of a GCC
8275 builtin and then its argument prototype would still apply. */
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_link") 2>conftest.er1
8297 grep -v '^ *+' conftest.er1 >conftest.err
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8330 rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8334 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8335 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8336 if test $ac_cv_lib_m_sin = yes; then
8337 cat >>confdefs.h <<_ACEOF
8345 if test "$llvm_cv_os_type" = "MingW" ; then
8347 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8348 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8349 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 ac_check_lib_save_LIBS=$LIBS
8353 LIBS="-limagehlp $LIBS"
8354 cat >conftest.$ac_ext <<_ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (ac_try="$ac_link"
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_link") 2>conftest.er1
8379 grep -v '^ *+' conftest.er1 >conftest.err
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8385 { (case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_try") 2>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest$ac_exeext'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_lib_imagehlp_main=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_cv_lib_imagehlp_main=no
8412 rm -f core conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8414 LIBS=$ac_check_lib_save_LIBS
8416 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8417 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8418 if test $ac_cv_lib_imagehlp_main = yes; then
8419 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_LIBIMAGEHLP 1
8423 LIBS="-limagehlp $LIBS"
8428 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8429 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8430 if test "${ac_cv_lib_psapi_main+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 ac_check_lib_save_LIBS=$LIBS
8434 LIBS="-lpsapi $LIBS"
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8451 rm -f conftest.$ac_objext conftest$ac_exeext
8452 if { (ac_try="$ac_link"
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_link") 2>conftest.er1
8460 grep -v '^ *+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } &&
8465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8466 { (case "(($ac_try" in
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_try") 2>&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try='test -s conftest$ac_exeext'
8476 { (case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_try") 2>&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_lib_psapi_main=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_cv_lib_psapi_main=no
8493 rm -f core conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8497 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8498 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8499 if test $ac_cv_lib_psapi_main = yes; then
8500 cat >>confdefs.h <<_ACEOF
8501 #define HAVE_LIBPSAPI 1
8504 LIBS="-lpsapi $LIBS"
8509 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8510 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8511 if test "${ac_cv_lib_shell32_main+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 ac_check_lib_save_LIBS=$LIBS
8515 LIBS="-lshell32 $LIBS"
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (ac_try="$ac_link"
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_link") 2>conftest.er1
8541 grep -v '^ *+' conftest.er1 >conftest.err
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547 { (case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_try") 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest$ac_exeext'
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_try") 2>&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_lib_shell32_main=yes
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cv_lib_shell32_main=no
8574 rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8578 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8579 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8580 if test $ac_cv_lib_shell32_main = yes; then
8581 cat >>confdefs.h <<_ACEOF
8582 #define HAVE_LIBSHELL32 1
8585 LIBS="-lshell32 $LIBS"
8591 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8592 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8593 if test "${ac_cv_search_dlopen+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 ac_func_search_save_LIBS=$LIBS
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8604 /* Override any GCC internal prototype to avoid an error.
8605 Use char because int might match the return type of a GCC
8606 builtin and then its argument prototype would still apply. */
8619 for ac_lib in '' dl; do
8620 if test -z "$ac_lib"; then
8621 ac_res="none required"
8624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8626 rm -f conftest.$ac_objext conftest$ac_exeext
8627 if { (ac_try="$ac_link"
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_link") 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8641 { (case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_try") 2>&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; } &&
8650 { ac_try='test -s conftest$ac_exeext'
8651 { (case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_try") 2>&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_cv_search_dlopen=$ac_res
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8668 rm -f core conftest.err conftest.$ac_objext \
8670 if test "${ac_cv_search_dlopen+set}" = set; then
8674 if test "${ac_cv_search_dlopen+set}" = set; then
8677 ac_cv_search_dlopen=no
8680 LIBS=$ac_func_search_save_LIBS
8682 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8683 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8684 ac_res=$ac_cv_search_dlopen
8685 if test "$ac_res" != no; then
8686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8689 cat >>confdefs.h <<\_ACEOF
8690 #define HAVE_DLOPEN 1
8697 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8698 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8702 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8703 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8704 if test "${ac_cv_search_clock_gettime+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 ac_func_search_save_LIBS=$LIBS
8708 cat >conftest.$ac_ext <<_ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8715 /* Override any GCC internal prototype to avoid an error.
8716 Use char because int might match the return type of a GCC
8717 builtin and then its argument prototype would still apply. */
8721 char clock_gettime ();
8725 return clock_gettime ();
8730 for ac_lib in '' rt; do
8731 if test -z "$ac_lib"; then
8732 ac_res="none required"
8735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8737 rm -f conftest.$ac_objext conftest$ac_exeext
8738 if { (ac_try="$ac_link"
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744 (eval "$ac_link") 2>conftest.er1
8746 grep -v '^ *+' conftest.er1 >conftest.err
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8752 { (case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_try") 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try='test -s conftest$ac_exeext'
8762 { (case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_try") 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 ac_cv_search_clock_gettime=$ac_res
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8779 rm -f core conftest.err conftest.$ac_objext \
8781 if test "${ac_cv_search_clock_gettime+set}" = set; then
8785 if test "${ac_cv_search_clock_gettime+set}" = set; then
8788 ac_cv_search_clock_gettime=no
8791 LIBS=$ac_func_search_save_LIBS
8793 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8794 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8795 ac_res=$ac_cv_search_clock_gettime
8796 if test "$ac_res" != no; then
8797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8802 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8803 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8804 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8805 if test "${ac_cv_search_setupterm+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 ac_func_search_save_LIBS=$LIBS
8809 cat >conftest.$ac_ext <<_ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8816 /* Override any GCC internal prototype to avoid an error.
8817 Use char because int might match the return type of a GCC
8818 builtin and then its argument prototype would still apply. */
8826 return setupterm ();
8831 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8832 if test -z "$ac_lib"; then
8833 ac_res="none required"
8836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_link") 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853 { (case "(($ac_try" in
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_try") 2>&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; } &&
8862 { ac_try='test -s conftest$ac_exeext'
8863 { (case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_try") 2>&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_search_setupterm=$ac_res
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8880 rm -f core conftest.err conftest.$ac_objext \
8882 if test "${ac_cv_search_setupterm+set}" = set; then
8886 if test "${ac_cv_search_setupterm+set}" = set; then
8889 ac_cv_search_setupterm=no
8892 LIBS=$ac_func_search_save_LIBS
8894 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8895 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8896 ac_res=$ac_cv_search_setupterm
8897 if test "$ac_res" != no; then
8898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_TERMINFO 1
8912 if test "$llvm_cv_enable_libedit" = "yes" ; then
8913 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8914 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8915 if test "${ac_cv_search_el_init+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 ac_func_search_save_LIBS=$LIBS
8919 cat >conftest.$ac_ext <<_ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8926 /* Override any GCC internal prototype to avoid an error.
8927 Use char because int might match the return type of a GCC
8928 builtin and then its argument prototype would still apply. */
8941 for ac_lib in '' edit; do
8942 if test -z "$ac_lib"; then
8943 ac_res="none required"
8946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8948 rm -f conftest.$ac_objext conftest$ac_exeext
8949 if { (ac_try="$ac_link"
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_link") 2>conftest.er1
8957 grep -v '^ *+' conftest.er1 >conftest.err
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8963 { (case "(($ac_try" in
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_try") 2>&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try='test -s conftest$ac_exeext'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_search_el_init=$ac_res
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8990 rm -f core conftest.err conftest.$ac_objext \
8992 if test "${ac_cv_search_el_init+set}" = set; then
8996 if test "${ac_cv_search_el_init+set}" = set; then
8999 ac_cv_search_el_init=no
9002 LIBS=$ac_func_search_save_LIBS
9004 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9005 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9006 ac_res=$ac_cv_search_el_init
9007 if test "$ac_res" != no; then
9008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_LIBEDIT 1
9018 if test "$llvm_cv_enable_libffi" = "yes" ; then
9019 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9020 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9021 if test "${ac_cv_search_ffi_call+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 ac_func_search_save_LIBS=$LIBS
9025 cat >conftest.$ac_ext <<_ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9032 /* Override any GCC internal prototype to avoid an error.
9033 Use char because int might match the return type of a GCC
9034 builtin and then its argument prototype would still apply. */
9047 for ac_lib in '' ffi; do
9048 if test -z "$ac_lib"; then
9049 ac_res="none required"
9052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (ac_try="$ac_link"
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_link") 2>conftest.er1
9063 grep -v '^ *+' conftest.er1 >conftest.err
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9069 { (case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_try") 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest$ac_exeext'
9079 { (case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_try") 2>&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 ac_cv_search_ffi_call=$ac_res
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9096 rm -f core conftest.err conftest.$ac_objext \
9098 if test "${ac_cv_search_ffi_call+set}" = set; then
9102 if test "${ac_cv_search_ffi_call+set}" = set; then
9105 ac_cv_search_ffi_call=no
9108 LIBS=$ac_func_search_save_LIBS
9110 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9111 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9112 ac_res=$ac_cv_search_ffi_call
9113 if test "$ac_res" != no; then
9114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_FFI_CALL 1
9121 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9122 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9123 { (exit 1); exit 1; }; }
9128 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9129 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9130 if test "${ac_cv_search_mallinfo+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9133 ac_func_search_save_LIBS=$LIBS
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9141 /* Override any GCC internal prototype to avoid an error.
9142 Use char because int might match the return type of a GCC
9143 builtin and then its argument prototype would still apply. */
9156 for ac_lib in '' malloc; do
9157 if test -z "$ac_lib"; then
9158 ac_res="none required"
9161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9163 rm -f conftest.$ac_objext conftest$ac_exeext
9164 if { (ac_try="$ac_link"
9166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167 *) ac_try_echo=$ac_try;;
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170 (eval "$ac_link") 2>conftest.er1
9172 grep -v '^ *+' conftest.er1 >conftest.err
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9178 { (case "(($ac_try" in
9179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180 *) ac_try_echo=$ac_try;;
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183 (eval "$ac_try") 2>&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try='test -s conftest$ac_exeext'
9188 { (case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_try") 2>&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 ac_cv_search_mallinfo=$ac_res
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9205 rm -f core conftest.err conftest.$ac_objext \
9207 if test "${ac_cv_search_mallinfo+set}" = set; then
9211 if test "${ac_cv_search_mallinfo+set}" = set; then
9214 ac_cv_search_mallinfo=no
9217 LIBS=$ac_func_search_save_LIBS
9219 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9220 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9221 ac_res=$ac_cv_search_mallinfo
9222 if test "$ac_res" != no; then
9223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9225 cat >>confdefs.h <<\_ACEOF
9226 #define HAVE_MALLINFO 1
9232 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9234 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9235 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9236 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 ac_check_lib_save_LIBS=$LIBS
9240 LIBS="-lpthread $LIBS"
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9254 char pthread_mutex_init ();
9258 return pthread_mutex_init ();
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (ac_try="$ac_link"
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_link") 2>conftest.er1
9272 grep -v '^ *+' conftest.er1 >conftest.err
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9278 { (case "(($ac_try" in
9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_try") 2>&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; } &&
9287 { ac_try='test -s conftest$ac_exeext'
9288 { (case "(($ac_try" in
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_try") 2>&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 ac_cv_lib_pthread_pthread_mutex_init=yes
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_lib_pthread_pthread_mutex_init=no
9305 rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9309 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9310 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9311 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9312 cat >>confdefs.h <<_ACEOF
9313 #define HAVE_LIBPTHREAD 1
9316 LIBS="-lpthread $LIBS"
9320 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9321 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9322 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 ac_func_search_save_LIBS=$LIBS
9326 cat >conftest.$ac_ext <<_ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9333 /* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
9339 char pthread_mutex_lock ();
9343 return pthread_mutex_lock ();
9348 for ac_lib in '' pthread; do
9349 if test -z "$ac_lib"; then
9350 ac_res="none required"
9353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (ac_try="$ac_link"
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_link") 2>conftest.er1
9364 grep -v '^ *+' conftest.er1 >conftest.err
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } &&
9369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9370 { (case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_try") 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try='test -s conftest$ac_exeext'
9380 { (case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_try") 2>&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_cv_search_pthread_mutex_lock=$ac_res
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9397 rm -f core conftest.err conftest.$ac_objext \
9399 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9403 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9406 ac_cv_search_pthread_mutex_lock=no
9409 LIBS=$ac_func_search_save_LIBS
9411 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9412 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9413 ac_res=$ac_cv_search_pthread_mutex_lock
9414 if test "$ac_res" != no; then
9415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9417 cat >>confdefs.h <<\_ACEOF
9418 #define HAVE_PTHREAD_MUTEX_LOCK 1
9423 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9424 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9425 if test "${ac_cv_search_pthread_rwlock_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. */
9442 char pthread_rwlock_init ();
9446 return pthread_rwlock_init ();
9451 for ac_lib in '' pthread; 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_pthread_rwlock_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_pthread_rwlock_init+set}" = set; then
9506 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9509 ac_cv_search_pthread_rwlock_init=no
9512 LIBS=$ac_func_search_save_LIBS
9514 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9515 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9516 ac_res=$ac_cv_search_pthread_rwlock_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_PTHREAD_RWLOCK_INIT 1
9526 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9527 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9528 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 ac_func_search_save_LIBS=$LIBS
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9545 char pthread_getspecific ();
9549 return pthread_getspecific ();
9554 for ac_lib in '' pthread; do
9555 if test -z "$ac_lib"; then
9556 ac_res="none required"
9559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_link") 2>conftest.er1
9570 grep -v '^ *+' conftest.er1 >conftest.err
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9576 { (case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_try") 2>&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_cv_search_pthread_getspecific=$ac_res
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9603 rm -f core conftest.err conftest.$ac_objext \
9605 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9609 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9612 ac_cv_search_pthread_getspecific=no
9615 LIBS=$ac_func_search_save_LIBS
9617 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9618 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9619 ac_res=$ac_cv_search_pthread_getspecific
9620 if test "$ac_res" != no; then
9621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_PTHREAD_GETSPECIFIC 1
9631 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9633 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9634 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9635 if test "${ac_cv_lib_z_compress2+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 ac_check_lib_save_LIBS=$LIBS
9640 cat >conftest.$ac_ext <<_ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 /* Override any GCC internal prototype to avoid an error.
9648 Use char because int might match the return type of a GCC
9649 builtin and then its argument prototype would still apply. */
9657 return compress2 ();
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677 { (case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_try") 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_lib_z_compress2=yes
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 ac_cv_lib_z_compress2=no
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9708 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9709 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9710 if test $ac_cv_lib_z_compress2 = yes; then
9711 cat >>confdefs.h <<_ACEOF
9722 # Check whether --with-oprofile was given.
9723 if test "${with_oprofile+set}" = set; then
9724 withval=$with_oprofile;
9728 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9732 *) llvm_cv_oppath="${withval}/lib/oprofile"
9733 CPPFLAGS="-I${withval}/include";;
9735 case $llvm_cv_os_type in
9737 if test -n "$llvm_cv_oppath" ; then
9738 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9739 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9740 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9741 if test "${ac_cv_search_bfd_init+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 ac_func_search_save_LIBS=$LIBS
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 /* Override any GCC internal prototype to avoid an error.
9753 Use char because int might match the return type of a GCC
9754 builtin and then its argument prototype would still apply. */
9767 for ac_lib in '' bfd; do
9768 if test -z "$ac_lib"; then
9769 ac_res="none required"
9772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_link") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_try") 2>&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 ac_cv_search_bfd_init=$ac_res
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9816 rm -f core conftest.err conftest.$ac_objext \
9818 if test "${ac_cv_search_bfd_init+set}" = set; then
9822 if test "${ac_cv_search_bfd_init+set}" = set; then
9825 ac_cv_search_bfd_init=no
9828 LIBS=$ac_func_search_save_LIBS
9830 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9831 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9832 ac_res=$ac_cv_search_bfd_init
9833 if test "$ac_res" != no; then
9834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9838 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9839 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9840 if test "${ac_cv_search_op_open_agent+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 ac_func_search_save_LIBS=$LIBS
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9851 /* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9857 char op_open_agent ();
9861 return op_open_agent ();
9866 for ac_lib in '' opagent; do
9867 if test -z "$ac_lib"; then
9868 ac_res="none required"
9871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_link") 2>conftest.er1
9882 grep -v '^ *+' conftest.er1 >conftest.err
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest$ac_exeext'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_search_op_open_agent=$ac_res
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9915 rm -f core conftest.err conftest.$ac_objext \
9917 if test "${ac_cv_search_op_open_agent+set}" = set; then
9921 if test "${ac_cv_search_op_open_agent+set}" = set; then
9924 ac_cv_search_op_open_agent=no
9927 LIBS=$ac_func_search_save_LIBS
9929 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9930 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9931 ac_res=$ac_cv_search_op_open_agent
9932 if test "$ac_res" != no; then
9933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9937 echo "Error! You need to have libopagent around."
9942 if test "${ac_cv_header_opagent_h+set}" = set; then
9943 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9944 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9945 if test "${ac_cv_header_opagent_h+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9949 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9951 # Is the header compilable?
9952 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9953 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9954 cat >conftest.$ac_ext <<_ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9960 $ac_includes_default
9961 #include <opagent.h>
9963 rm -f conftest.$ac_objext
9964 if { (ac_try="$ac_compile"
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_compile") 2>conftest.er1
9972 grep -v '^ *+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9978 { (case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest.$ac_objext'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_header_compiler=yes
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 ac_header_compiler=no
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10007 echo "${ECHO_T}$ac_header_compiler" >&6; }
10009 # Is the header present?
10010 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10011 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10012 cat >conftest.$ac_ext <<_ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 #include <opagent.h>
10020 if { (ac_try="$ac_cpp conftest.$ac_ext"
10021 case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev/null; then
10033 if test -s conftest.err; then
10034 ac_cpp_err=$ac_c_preproc_warn_flag
10035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10042 if test -z "$ac_cpp_err"; then
10043 ac_header_preproc=yes
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_header_preproc=no
10051 rm -f conftest.err conftest.$ac_ext
10052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10053 echo "${ECHO_T}$ac_header_preproc" >&6; }
10055 # So? What about this header?
10056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10058 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10059 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10061 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10062 ac_header_preproc=yes
10065 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10066 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10068 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10070 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10072 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10074 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10076 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10078 ## ------------------------------------ ##
10079 ## Report this to http://llvm.org/bugs/ ##
10080 ## ------------------------------------ ##
10082 ) | sed "s/^/$as_me: WARNING: /" >&2
10085 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10086 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10087 if test "${ac_cv_header_opagent_h+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 ac_cv_header_opagent_h=$ac_header_preproc
10092 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10093 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10096 if test $ac_cv_header_opagent_h = yes; then
10100 echo "Error! You need to have opagent.h around."
10108 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10109 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10110 { (exit 1); exit 1; }; } ;;
10121 cat >>confdefs.h <<_ACEOF
10122 #define LLVM_USE_OPROFILE $USE_OPROFILE
10127 # Check whether --with-intel-jitevents was given.
10128 if test "${with_intel_jitevents+set}" = set; then
10129 withval=$with_intel_jitevents;
10131 yes) USE_INTEL_JITEVENTS=1
10133 no) USE_INTEL_JITEVENTS=0
10135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10136 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10137 { (exit 1); exit 1; }; };;
10140 case $llvm_cv_os_type in
10141 Linux|Win32|Cygwin|MingW) ;;
10142 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10143 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10144 { (exit 1); exit 1; }; };;
10147 case "$llvm_cv_target_arch" in
10149 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10150 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10151 { (exit 1); exit 1; }; };;
10156 USE_INTEL_JITEVENTS=0
10162 cat >>confdefs.h <<_ACEOF
10163 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10167 for ac_prog in xml2-config
10169 # Extract the first word of "$ac_prog", so it can be a program name with args.
10170 set dummy $ac_prog; ac_word=$2
10171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10173 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 if test -n "$XML2CONFIG"; then
10177 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10186 ac_cv_prog_XML2CONFIG="$ac_prog"
10187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10197 if test -n "$XML2CONFIG"; then
10198 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10199 echo "${ECHO_T}$XML2CONFIG" >&6; }
10201 { echo "$as_me:$LINENO: result: no" >&5
10202 echo "${ECHO_T}no" >&6; }
10206 test -n "$XML2CONFIG" && break
10210 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10211 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10212 if test "x$XML2CONFIG" = "x"; then
10213 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10214 echo "${ECHO_T}xml2-config not found" >&6; }
10216 LIBXML2_INC=`$XML2CONFIG --cflags`
10217 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10218 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10219 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10220 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10221 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 ac_check_lib_save_LIBS=$LIBS
10225 LIBS="-lxml2 $LIBS"
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10233 /* Override any GCC internal prototype to avoid an error.
10234 Use char because int might match the return type of a GCC
10235 builtin and then its argument prototype would still apply. */
10239 char xmlReadFile ();
10243 return xmlReadFile ();
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_link") 2>conftest.er1
10257 grep -v '^ *+' conftest.er1 >conftest.err
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10263 { (case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_try") 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_lib_xml2_xmlReadFile=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_cv_lib_xml2_xmlReadFile=no
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 LIBS=$ac_check_lib_save_LIBS
10294 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10295 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10296 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10298 cat >>confdefs.h <<\_ACEOF
10299 #define CLANG_HAVE_LIBXML 1
10302 LIBXML2_LIBS="-lxml2"
10315 ac_header_dirent=no
10316 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10317 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10318 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10319 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 cat >conftest.$ac_ext <<_ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 #include <sys/types.h>
10341 rm -f conftest.$ac_objext
10342 if { (ac_try="$ac_compile"
10343 case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_compile") 2>conftest.er1
10350 grep -v '^ *+' conftest.er1 >conftest.err
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } &&
10355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10356 { (case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_try") 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest.$ac_objext'
10366 { (case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_try") 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 eval "$as_ac_Header=yes"
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 eval "$as_ac_Header=no"
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385 ac_res=`eval echo '${'$as_ac_Header'}'`
10386 { echo "$as_me:$LINENO: result: $ac_res" >&5
10387 echo "${ECHO_T}$ac_res" >&6; }
10388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10389 cat >>confdefs.h <<_ACEOF
10390 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10393 ac_header_dirent=$ac_hdr; break
10397 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10398 if test $ac_header_dirent = dirent.h; then
10399 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10401 if test "${ac_cv_search_opendir+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 ac_func_search_save_LIBS=$LIBS
10405 cat >conftest.$ac_ext <<_ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10412 /* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10427 for ac_lib in '' dir; do
10428 if test -z "$ac_lib"; then
10429 ac_res="none required"
10432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (ac_try="$ac_link"
10436 case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_link") 2>conftest.er1
10443 grep -v '^ *+' conftest.er1 >conftest.err
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } &&
10448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10449 { (case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_try") 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest$ac_exeext'
10459 { (case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_try") 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 ac_cv_search_opendir=$ac_res
10470 echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10476 rm -f core conftest.err conftest.$ac_objext \
10478 if test "${ac_cv_search_opendir+set}" = set; then
10482 if test "${ac_cv_search_opendir+set}" = set; then
10485 ac_cv_search_opendir=no
10487 rm conftest.$ac_ext
10488 LIBS=$ac_func_search_save_LIBS
10490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10492 ac_res=$ac_cv_search_opendir
10493 if test "$ac_res" != no; then
10494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10499 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10500 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10501 if test "${ac_cv_search_opendir+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 ac_func_search_save_LIBS=$LIBS
10505 cat >conftest.$ac_ext <<_ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10512 /* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10527 for ac_lib in '' x; do
10528 if test -z "$ac_lib"; then
10529 ac_res="none required"
10532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549 { (case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_try") 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_search_opendir=$ac_res
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10576 rm -f core conftest.err conftest.$ac_objext \
10578 if test "${ac_cv_search_opendir+set}" = set; then
10582 if test "${ac_cv_search_opendir+set}" = set; then
10585 ac_cv_search_opendir=no
10587 rm conftest.$ac_ext
10588 LIBS=$ac_func_search_save_LIBS
10590 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10591 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10592 ac_res=$ac_cv_search_opendir
10593 if test "$ac_res" != no; then
10594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10600 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10601 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10602 if test "${ac_cv_header_mmap_anon+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 ac_cpp='$CPP $CPPFLAGS'
10607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <sys/mman.h>
10618 #include <unistd.h>
10623 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_compile") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest.$ac_objext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_header_mmap_anon=yes
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_cv_header_mmap_anon=no
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 ac_cpp='$CPP $CPPFLAGS'
10673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10679 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10680 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10681 if test "$ac_cv_header_mmap_anon" = yes; then
10683 cat >>confdefs.h <<\_ACEOF
10684 #define HAVE_MMAP_ANONYMOUS 1
10689 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10690 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10691 if test "${ac_cv_header_stat_broken+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <sys/types.h>
10701 #include <sys/stat.h>
10703 #if defined S_ISBLK && defined S_IFDIR
10704 # if S_ISBLK (S_IFDIR)
10709 #if defined S_ISBLK && defined S_IFCHR
10710 # if S_ISBLK (S_IFCHR)
10715 #if defined S_ISLNK && defined S_IFREG
10716 # if S_ISLNK (S_IFREG)
10721 #if defined S_ISSOCK && defined S_IFREG
10722 # if S_ISSOCK (S_IFREG)
10728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10729 $EGREP "You lose" >/dev/null 2>&1; then
10730 ac_cv_header_stat_broken=yes
10732 ac_cv_header_stat_broken=no
10737 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10738 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10739 if test $ac_cv_header_stat_broken = yes; then
10741 cat >>confdefs.h <<\_ACEOF
10742 #define STAT_MACROS_BROKEN 1
10747 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 #include <sys/types.h>
10759 #include <sys/wait.h>
10760 #ifndef WEXITSTATUS
10761 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10764 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10772 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10777 rm -f conftest.$ac_objext
10778 if { (ac_try="$ac_compile"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_compile") 2>conftest.er1
10786 grep -v '^ *+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } &&
10791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10792 { (case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_try") 2>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; } &&
10801 { ac_try='test -s conftest.$ac_objext'
10802 { (case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_try") 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 ac_cv_header_sys_wait_h=yes
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 ac_cv_header_sys_wait_h=no
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10822 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10823 if test $ac_cv_header_sys_wait_h = yes; then
10825 cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_SYS_WAIT_H 1
10831 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10832 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10833 if test "${ac_cv_header_time+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <sys/types.h>
10843 #include <sys/time.h>
10849 if ((struct tm *) 0)
10855 rm -f conftest.$ac_objext
10856 if { (ac_try="$ac_compile"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_compile") 2>conftest.er1
10864 grep -v '^ *+' conftest.er1 >conftest.err
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; } &&
10879 { ac_try='test -s conftest.$ac_objext'
10880 { (case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_try") 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889 ac_cv_header_time=yes
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10894 ac_cv_header_time=no
10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10900 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10901 if test $ac_cv_header_time = yes; then
10903 cat >>confdefs.h <<\_ACEOF
10904 #define TIME_WITH_SYS_TIME 1
10911 ac_cpp='$CXXCPP $CPPFLAGS'
10912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10917 ac_cpp='$CXXCPP $CPPFLAGS'
10918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10921 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10922 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10923 if test -z "$CXXCPP"; then
10924 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 # Double quotes because CXXCPP needs to be expanded
10928 for CXXCPP in "$CXX -E" "/lib/cpp"
10930 ac_preproc_ok=false
10931 for ac_cxx_preproc_warn_flag in '' yes
10933 # Use a header file that comes with gcc, so configuring glibc
10934 # with a fresh cross-compiler works.
10935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10936 # <limits.h> exists even on freestanding compilers.
10937 # On the NeXT, cc -E runs the code through the compiler's parser,
10938 # not just through cpp. "Syntax error" is here to catch this case.
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10946 # include <limits.h>
10948 # include <assert.h>
10952 if { (ac_try="$ac_cpp conftest.$ac_ext"
10953 case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10960 grep -v '^ *+' conftest.er1 >conftest.err
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } >/dev/null; then
10965 if test -s conftest.err; then
10966 ac_cpp_err=$ac_cxx_preproc_warn_flag
10967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10974 if test -z "$ac_cpp_err"; then
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 # Broken: fails on valid input.
10984 rm -f conftest.err conftest.$ac_ext
10986 # OK, works on sane cases. Now check whether nonexistent headers
10987 # can be detected and how.
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 #include <ac_nonexistent.h>
10996 if { (ac_try="$ac_cpp conftest.$ac_ext"
10997 case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11004 grep -v '^ *+' conftest.er1 >conftest.err
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } >/dev/null; then
11009 if test -s conftest.err; then
11010 ac_cpp_err=$ac_cxx_preproc_warn_flag
11011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11018 if test -z "$ac_cpp_err"; then
11019 # Broken: success on invalid input.
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 # Passes both tests.
11030 rm -f conftest.err conftest.$ac_ext
11033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11034 rm -f conftest.err conftest.$ac_ext
11035 if $ac_preproc_ok; then
11040 ac_cv_prog_CXXCPP=$CXXCPP
11043 CXXCPP=$ac_cv_prog_CXXCPP
11045 ac_cv_prog_CXXCPP=$CXXCPP
11047 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11048 echo "${ECHO_T}$CXXCPP" >&6; }
11049 ac_preproc_ok=false
11050 for ac_cxx_preproc_warn_flag in '' yes
11052 # Use a header file that comes with gcc, so configuring glibc
11053 # with a fresh cross-compiler works.
11054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 # <limits.h> exists even on freestanding compilers.
11056 # On the NeXT, cc -E runs the code through the compiler's parser,
11057 # not just through cpp. "Syntax error" is here to catch this case.
11058 cat >conftest.$ac_ext <<_ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11065 # include <limits.h>
11067 # include <assert.h>
11071 if { (ac_try="$ac_cpp conftest.$ac_ext"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } >/dev/null; then
11084 if test -s conftest.err; then
11085 ac_cpp_err=$ac_cxx_preproc_warn_flag
11086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11093 if test -z "$ac_cpp_err"; then
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 # Broken: fails on valid input.
11103 rm -f conftest.err conftest.$ac_ext
11105 # OK, works on sane cases. Now check whether nonexistent headers
11106 # can be detected and how.
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 #include <ac_nonexistent.h>
11115 if { (ac_try="$ac_cpp conftest.$ac_ext"
11116 case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11123 grep -v '^ *+' conftest.er1 >conftest.err
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } >/dev/null; then
11128 if test -s conftest.err; then
11129 ac_cpp_err=$ac_cxx_preproc_warn_flag
11130 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11137 if test -z "$ac_cpp_err"; then
11138 # Broken: success on invalid input.
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 # Passes both tests.
11149 rm -f conftest.err conftest.$ac_ext
11152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11153 rm -f conftest.err conftest.$ac_ext
11154 if $ac_preproc_ok; then
11157 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11158 See \`config.log' for more details." >&5
11159 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11160 See \`config.log' for more details." >&2;}
11161 { (exit 1); exit 1; }; }
11165 ac_cpp='$CXXCPP $CPPFLAGS'
11166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11172 for ac_header in cxxabi.h
11174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 ac_res=`eval echo '${'$as_ac_Header'}'`
11182 { echo "$as_me:$LINENO: result: $ac_res" >&5
11183 echo "${ECHO_T}$ac_res" >&6; }
11185 # Is the header compilable?
11186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11188 cat >conftest.$ac_ext <<_ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 $ac_includes_default
11195 #include <$ac_header>
11197 rm -f conftest.$ac_objext
11198 if { (ac_try="$ac_compile"
11199 case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_compile") 2>conftest.er1
11206 grep -v '^ *+' conftest.er1 >conftest.err
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11212 { (case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_try") 2>&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; } &&
11221 { ac_try='test -s conftest.$ac_objext'
11222 { (case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_try") 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 ac_header_compiler=yes
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 ac_header_compiler=no
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11241 echo "${ECHO_T}$ac_header_compiler" >&6; }
11243 # Is the header present?
11244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 #include <$ac_header>
11254 if { (ac_try="$ac_cpp conftest.$ac_ext"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11262 grep -v '^ *+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } >/dev/null; then
11267 if test -s conftest.err; then
11268 ac_cpp_err=$ac_cxx_preproc_warn_flag
11269 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11276 if test -z "$ac_cpp_err"; then
11277 ac_header_preproc=yes
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 ac_header_preproc=no
11285 rm -f conftest.err conftest.$ac_ext
11286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11287 echo "${ECHO_T}$ac_header_preproc" >&6; }
11289 # So? What about this header?
11290 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11296 ac_header_preproc=yes
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11312 ## ------------------------------------ ##
11313 ## Report this to http://llvm.org/bugs/ ##
11314 ## ------------------------------------ ##
11316 ) | sed "s/^/$as_me: WARNING: /" >&2
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 eval "$as_ac_Header=\$ac_header_preproc"
11326 ac_res=`eval echo '${'$as_ac_Header'}'`
11327 { echo "$as_me:$LINENO: result: $ac_res" >&5
11328 echo "${ECHO_T}$ac_res" >&6; }
11331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11332 cat >>confdefs.h <<_ACEOF
11333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11341 ac_cpp='$CPP $CPPFLAGS'
11342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11351 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361 { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11364 # Is the header compilable?
11365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11367 cat >conftest.$ac_ext <<_ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 $ac_includes_default
11374 #include <$ac_header>
11376 rm -f conftest.$ac_objext
11377 if { (ac_try="$ac_compile"
11378 case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383 (eval "$ac_compile") 2>conftest.er1
11385 grep -v '^ *+' conftest.er1 >conftest.err
11387 cat conftest.err >&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } &&
11390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11391 { (case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_try") 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest.$ac_objext'
11401 { (case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_try") 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_header_compiler=yes
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 ac_header_compiler=no
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420 echo "${ECHO_T}$ac_header_compiler" >&6; }
11422 # Is the header present?
11423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 #include <$ac_header>
11433 if { (ac_try="$ac_cpp conftest.$ac_ext"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } >/dev/null; then
11446 if test -s conftest.err; then
11447 ac_cpp_err=$ac_c_preproc_warn_flag
11448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11455 if test -z "$ac_cpp_err"; then
11456 ac_header_preproc=yes
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_header_preproc=no
11464 rm -f conftest.err conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11466 echo "${ECHO_T}$ac_header_preproc" >&6; }
11468 # So? What about this header?
11469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11475 ac_header_preproc=yes
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11491 ## ------------------------------------ ##
11492 ## Report this to http://llvm.org/bugs/ ##
11493 ## ------------------------------------ ##
11495 ) | sed "s/^/$as_me: WARNING: /" >&2
11498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 eval "$as_ac_Header=\$ac_header_preproc"
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511 cat >>confdefs.h <<_ACEOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11525 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 ac_res=`eval echo '${'$as_ac_Header'}'`
11535 { echo "$as_me:$LINENO: result: $ac_res" >&5
11536 echo "${ECHO_T}$ac_res" >&6; }
11538 # Is the header compilable?
11539 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11548 #include <$ac_header>
11550 rm -f conftest.$ac_objext
11551 if { (ac_try="$ac_compile"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_compile") 2>conftest.er1
11559 grep -v '^ *+' conftest.er1 >conftest.err
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11565 { (case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_try") 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_try") 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11584 ac_header_compiler=yes
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 ac_header_compiler=no
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11594 echo "${ECHO_T}$ac_header_compiler" >&6; }
11596 # Is the header present?
11597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11599 cat >conftest.$ac_ext <<_ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 #include <$ac_header>
11607 if { (ac_try="$ac_cpp conftest.$ac_ext"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11615 grep -v '^ *+' conftest.er1 >conftest.err
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } >/dev/null; then
11620 if test -s conftest.err; then
11621 ac_cpp_err=$ac_c_preproc_warn_flag
11622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11629 if test -z "$ac_cpp_err"; then
11630 ac_header_preproc=yes
11632 echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11635 ac_header_preproc=no
11638 rm -f conftest.err conftest.$ac_ext
11639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11640 echo "${ECHO_T}$ac_header_preproc" >&6; }
11642 # So? What about this header?
11643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11649 ac_header_preproc=yes
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11665 ## ------------------------------------ ##
11666 ## Report this to http://llvm.org/bugs/ ##
11667 ## ------------------------------------ ##
11669 ) | sed "s/^/$as_me: WARNING: /" >&2
11672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 eval "$as_ac_Header=\$ac_header_preproc"
11679 ac_res=`eval echo '${'$as_ac_Header'}'`
11680 { echo "$as_me:$LINENO: result: $ac_res" >&5
11681 echo "${ECHO_T}$ac_res" >&6; }
11684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11685 cat >>confdefs.h <<_ACEOF
11686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11694 for ac_header in utime.h
11696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 ac_res=`eval echo '${'$as_ac_Header'}'`
11704 { echo "$as_me:$LINENO: result: $ac_res" >&5
11705 echo "${ECHO_T}$ac_res" >&6; }
11707 # Is the header compilable?
11708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11710 cat >conftest.$ac_ext <<_ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 $ac_includes_default
11717 #include <$ac_header>
11719 rm -f conftest.$ac_objext
11720 if { (ac_try="$ac_compile"
11721 case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_compile") 2>conftest.er1
11728 grep -v '^ *+' conftest.er1 >conftest.err
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11734 { (case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_try") 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest.$ac_objext'
11744 { (case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_try") 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_header_compiler=yes
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 ac_header_compiler=no
11761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11763 echo "${ECHO_T}$ac_header_compiler" >&6; }
11765 # Is the header present?
11766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11768 cat >conftest.$ac_ext <<_ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 #include <$ac_header>
11776 if { (ac_try="$ac_cpp conftest.$ac_ext"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11784 grep -v '^ *+' conftest.er1 >conftest.err
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } >/dev/null; then
11789 if test -s conftest.err; then
11790 ac_cpp_err=$ac_c_preproc_warn_flag
11791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11798 if test -z "$ac_cpp_err"; then
11799 ac_header_preproc=yes
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 ac_header_preproc=no
11807 rm -f conftest.err conftest.$ac_ext
11808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11809 echo "${ECHO_T}$ac_header_preproc" >&6; }
11811 # So? What about this header?
11812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11818 ac_header_preproc=yes
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11834 ## ------------------------------------ ##
11835 ## Report this to http://llvm.org/bugs/ ##
11836 ## ------------------------------------ ##
11838 ) | sed "s/^/$as_me: WARNING: /" >&2
11841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 eval "$as_ac_Header=\$ac_header_preproc"
11848 ac_res=`eval echo '${'$as_ac_Header'}'`
11849 { echo "$as_me:$LINENO: result: $ac_res" >&5
11850 echo "${ECHO_T}$ac_res" >&6; }
11853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11854 cat >>confdefs.h <<_ACEOF
11855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11867 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 ac_res=`eval echo '${'$as_ac_Header'}'`
11877 { echo "$as_me:$LINENO: result: $ac_res" >&5
11878 echo "${ECHO_T}$ac_res" >&6; }
11880 # Is the header compilable?
11881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11883 cat >conftest.$ac_ext <<_ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 $ac_includes_default
11890 #include <$ac_header>
11892 rm -f conftest.$ac_objext
11893 if { (ac_try="$ac_compile"
11894 case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_compile") 2>conftest.er1
11901 grep -v '^ *+' conftest.er1 >conftest.err
11903 cat conftest.err >&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } &&
11906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11907 { (case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_try") 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_try") 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 ac_header_compiler=yes
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ac_header_compiler=no
11934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11936 echo "${ECHO_T}$ac_header_compiler" >&6; }
11938 # Is the header present?
11939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11941 cat >conftest.$ac_ext <<_ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 #include <$ac_header>
11949 if { (ac_try="$ac_cpp conftest.$ac_ext"
11950 case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } >/dev/null; then
11962 if test -s conftest.err; then
11963 ac_cpp_err=$ac_c_preproc_warn_flag
11964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11971 if test -z "$ac_cpp_err"; then
11972 ac_header_preproc=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_header_preproc=no
11980 rm -f conftest.err conftest.$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982 echo "${ECHO_T}$ac_header_preproc" >&6; }
11984 # So? What about this header?
11985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991 ac_header_preproc=yes
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12007 ## ------------------------------------ ##
12008 ## Report this to http://llvm.org/bugs/ ##
12009 ## ------------------------------------ ##
12011 ) | sed "s/^/$as_me: WARNING: /" >&2
12014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 eval "$as_ac_Header=\$ac_header_preproc"
12021 ac_res=`eval echo '${'$as_ac_Header'}'`
12022 { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12027 cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12038 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 ac_res=`eval echo '${'$as_ac_Header'}'`
12048 { echo "$as_me:$LINENO: result: $ac_res" >&5
12049 echo "${ECHO_T}$ac_res" >&6; }
12051 # Is the header compilable?
12052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 $ac_includes_default
12061 #include <$ac_header>
12063 rm -f conftest.$ac_objext
12064 if { (ac_try="$ac_compile"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_compile") 2>conftest.er1
12072 grep -v '^ *+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest.$ac_objext'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_header_compiler=yes
12099 echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12102 ac_header_compiler=no
12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12107 echo "${ECHO_T}$ac_header_compiler" >&6; }
12109 # Is the header present?
12110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12112 cat >conftest.$ac_ext <<_ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 #include <$ac_header>
12120 if { (ac_try="$ac_cpp conftest.$ac_ext"
12121 case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12128 grep -v '^ *+' conftest.er1 >conftest.err
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } >/dev/null; then
12133 if test -s conftest.err; then
12134 ac_cpp_err=$ac_c_preproc_warn_flag
12135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12142 if test -z "$ac_cpp_err"; then
12143 ac_header_preproc=yes
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ac_header_preproc=no
12151 rm -f conftest.err conftest.$ac_ext
12152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12153 echo "${ECHO_T}$ac_header_preproc" >&6; }
12155 # So? What about this header?
12156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12162 ac_header_preproc=yes
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12178 ## ------------------------------------ ##
12179 ## Report this to http://llvm.org/bugs/ ##
12180 ## ------------------------------------ ##
12182 ) | sed "s/^/$as_me: WARNING: /" >&2
12185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 eval "$as_ac_Header=\$ac_header_preproc"
12192 ac_res=`eval echo '${'$as_ac_Header'}'`
12193 { echo "$as_me:$LINENO: result: $ac_res" >&5
12194 echo "${ECHO_T}$ac_res" >&6; }
12197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12207 for ac_header in valgrind/valgrind.h
12209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 ac_res=`eval echo '${'$as_ac_Header'}'`
12217 { echo "$as_me:$LINENO: result: $ac_res" >&5
12218 echo "${ECHO_T}$ac_res" >&6; }
12220 # Is the header compilable?
12221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12222 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12230 #include <$ac_header>
12232 rm -f conftest.$ac_objext
12233 if { (ac_try="$ac_compile"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_compile") 2>conftest.er1
12241 grep -v '^ *+' conftest.er1 >conftest.err
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12247 { (case "(($ac_try" in
12248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12252 (eval "$ac_try") 2>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; } &&
12256 { ac_try='test -s conftest.$ac_objext'
12257 { (case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_try") 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; }; then
12266 ac_header_compiler=yes
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 ac_header_compiler=no
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12276 echo "${ECHO_T}$ac_header_compiler" >&6; }
12278 # Is the header present?
12279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12281 cat >conftest.$ac_ext <<_ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 #include <$ac_header>
12289 if { (ac_try="$ac_cpp conftest.$ac_ext"
12290 case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12297 grep -v '^ *+' conftest.er1 >conftest.err
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } >/dev/null; then
12302 if test -s conftest.err; then
12303 ac_cpp_err=$ac_c_preproc_warn_flag
12304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12311 if test -z "$ac_cpp_err"; then
12312 ac_header_preproc=yes
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_header_preproc=no
12320 rm -f conftest.err conftest.$ac_ext
12321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12322 echo "${ECHO_T}$ac_header_preproc" >&6; }
12324 # So? What about this header?
12325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12331 ac_header_preproc=yes
12334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12347 ## ------------------------------------ ##
12348 ## Report this to http://llvm.org/bugs/ ##
12349 ## ------------------------------------ ##
12351 ) | sed "s/^/$as_me: WARNING: /" >&2
12354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 eval "$as_ac_Header=\$ac_header_preproc"
12361 ac_res=`eval echo '${'$as_ac_Header'}'`
12362 { echo "$as_me:$LINENO: result: $ac_res" >&5
12363 echo "${ECHO_T}$ac_res" >&6; }
12366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12367 cat >>confdefs.h <<_ACEOF
12368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12376 for ac_header in fenv.h
12378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 ac_res=`eval echo '${'$as_ac_Header'}'`
12386 { echo "$as_me:$LINENO: result: $ac_res" >&5
12387 echo "${ECHO_T}$ac_res" >&6; }
12389 # Is the header compilable?
12390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12391 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12399 #include <$ac_header>
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_compile") 2>conftest.er1
12410 grep -v '^ *+' conftest.er1 >conftest.err
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416 { (case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_try") 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest.$ac_objext'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_header_compiler=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 ac_header_compiler=no
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12445 echo "${ECHO_T}$ac_header_compiler" >&6; }
12447 # Is the header present?
12448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 #include <$ac_header>
12458 if { (ac_try="$ac_cpp conftest.$ac_ext"
12459 case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } >/dev/null; then
12471 if test -s conftest.err; then
12472 ac_cpp_err=$ac_c_preproc_warn_flag
12473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12480 if test -z "$ac_cpp_err"; then
12481 ac_header_preproc=yes
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 ac_header_preproc=no
12489 rm -f conftest.err conftest.$ac_ext
12490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12491 echo "${ECHO_T}$ac_header_preproc" >&6; }
12493 # So? What about this header?
12494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12500 ac_header_preproc=yes
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12516 ## ------------------------------------ ##
12517 ## Report this to http://llvm.org/bugs/ ##
12518 ## ------------------------------------ ##
12520 ) | sed "s/^/$as_me: WARNING: /" >&2
12523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 eval "$as_ac_Header=\$ac_header_preproc"
12530 ac_res=`eval echo '${'$as_ac_Header'}'`
12531 { echo "$as_me:$LINENO: result: $ac_res" >&5
12532 echo "${ECHO_T}$ac_res" >&6; }
12535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12544 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12545 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12546 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 cat >conftest.$ac_ext <<_ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12560 #ifndef FE_ALL_EXCEPT
12561 char *p = (char *) FE_ALL_EXCEPT;
12569 rm -f conftest.$ac_objext
12570 if { (ac_try="$ac_compile"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_compile") 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584 { (case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_try") 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest.$ac_objext'
12594 { (case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_try") 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_cv_have_decl_FE_ALL_EXCEPT=no
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12614 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12615 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12617 cat >>confdefs.h <<_ACEOF
12618 #define HAVE_DECL_FE_ALL_EXCEPT 1
12623 cat >>confdefs.h <<_ACEOF
12624 #define HAVE_DECL_FE_ALL_EXCEPT 0
12629 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12630 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12631 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 cat >conftest.$ac_ext <<_ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12646 char *p = (char *) FE_INEXACT;
12654 rm -f conftest.$ac_objext
12655 if { (ac_try="$ac_compile"
12656 case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_compile") 2>conftest.er1
12663 grep -v '^ *+' conftest.er1 >conftest.err
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12669 { (case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_try") 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest.$ac_objext'
12679 { (case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_try") 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_have_decl_FE_INEXACT=yes
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_cv_have_decl_FE_INEXACT=no
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12699 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12700 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12702 cat >>confdefs.h <<_ACEOF
12703 #define HAVE_DECL_FE_INEXACT 1
12708 cat >>confdefs.h <<_ACEOF
12709 #define HAVE_DECL_FE_INEXACT 0
12716 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12718 for ac_header in pthread.h
12720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 ac_res=`eval echo '${'$as_ac_Header'}'`
12728 { echo "$as_me:$LINENO: result: $ac_res" >&5
12729 echo "${ECHO_T}$ac_res" >&6; }
12731 # Is the header compilable?
12732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12740 $ac_includes_default
12741 #include <$ac_header>
12743 rm -f conftest.$ac_objext
12744 if { (ac_try="$ac_compile"
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_compile") 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); } &&
12757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12758 { (case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_try") 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest.$ac_objext'
12768 { (case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_try") 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_header_compiler=yes
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12782 ac_header_compiler=no
12785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12787 echo "${ECHO_T}$ac_header_compiler" >&6; }
12789 # Is the header present?
12790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12792 cat >conftest.$ac_ext <<_ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 #include <$ac_header>
12800 if { (ac_try="$ac_cpp conftest.$ac_ext"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12808 grep -v '^ *+' conftest.er1 >conftest.err
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } >/dev/null; then
12813 if test -s conftest.err; then
12814 ac_cpp_err=$ac_c_preproc_warn_flag
12815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12822 if test -z "$ac_cpp_err"; then
12823 ac_header_preproc=yes
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_header_preproc=no
12831 rm -f conftest.err conftest.$ac_ext
12832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12833 echo "${ECHO_T}$ac_header_preproc" >&6; }
12835 # So? What about this header?
12836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12842 ac_header_preproc=yes
12845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12858 ## ------------------------------------ ##
12859 ## Report this to http://llvm.org/bugs/ ##
12860 ## ------------------------------------ ##
12862 ) | sed "s/^/$as_me: WARNING: /" >&2
12865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 eval "$as_ac_Header=\$ac_header_preproc"
12872 ac_res=`eval echo '${'$as_ac_Header'}'`
12873 { echo "$as_me:$LINENO: result: $ac_res" >&5
12874 echo "${ECHO_T}$ac_res" >&6; }
12877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12878 cat >>confdefs.h <<_ACEOF
12879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12894 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12896 for ac_header in zlib.h
12898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 ac_res=`eval echo '${'$as_ac_Header'}'`
12906 { echo "$as_me:$LINENO: result: $ac_res" >&5
12907 echo "${ECHO_T}$ac_res" >&6; }
12909 # Is the header compilable?
12910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12912 cat >conftest.$ac_ext <<_ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12918 $ac_includes_default
12919 #include <$ac_header>
12921 rm -f conftest.$ac_objext
12922 if { (ac_try="$ac_compile"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_compile") 2>conftest.er1
12930 grep -v '^ *+' conftest.er1 >conftest.err
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12936 { (case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941 (eval "$ac_try") 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try='test -s conftest.$ac_objext'
12946 { (case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_try") 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 ac_header_compiler=yes
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12960 ac_header_compiler=no
12963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12965 echo "${ECHO_T}$ac_header_compiler" >&6; }
12967 # Is the header present?
12968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 #include <$ac_header>
12978 if { (ac_try="$ac_cpp conftest.$ac_ext"
12979 case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12986 grep -v '^ *+' conftest.er1 >conftest.err
12988 cat conftest.err >&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } >/dev/null; then
12991 if test -s conftest.err; then
12992 ac_cpp_err=$ac_c_preproc_warn_flag
12993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13000 if test -z "$ac_cpp_err"; then
13001 ac_header_preproc=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_header_preproc=no
13009 rm -f conftest.err conftest.$ac_ext
13010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13011 echo "${ECHO_T}$ac_header_preproc" >&6; }
13013 # So? What about this header?
13014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13020 ac_header_preproc=yes
13023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13036 ## ------------------------------------ ##
13037 ## Report this to http://llvm.org/bugs/ ##
13038 ## ------------------------------------ ##
13040 ) | sed "s/^/$as_me: WARNING: /" >&2
13043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 eval "$as_ac_Header=\$ac_header_preproc"
13050 ac_res=`eval echo '${'$as_ac_Header'}'`
13051 { echo "$as_me:$LINENO: result: $ac_res" >&5
13052 echo "${ECHO_T}$ac_res" >&6; }
13055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13056 cat >>confdefs.h <<_ACEOF
13057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13073 if test "$llvm_cv_enable_libffi" = "yes" ; then
13076 for ac_header in ffi.h ffi/ffi.h
13078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 ac_res=`eval echo '${'$as_ac_Header'}'`
13086 { echo "$as_me:$LINENO: result: $ac_res" >&5
13087 echo "${ECHO_T}$ac_res" >&6; }
13089 # Is the header compilable?
13090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13092 cat >conftest.$ac_ext <<_ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 $ac_includes_default
13099 #include <$ac_header>
13101 rm -f conftest.$ac_objext
13102 if { (ac_try="$ac_compile"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_compile") 2>conftest.er1
13110 grep -v '^ *+' conftest.er1 >conftest.err
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
13115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13116 { (case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_try") 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; } &&
13125 { ac_try='test -s conftest.$ac_objext'
13126 { (case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_try") 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_header_compiler=yes
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140 ac_header_compiler=no
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13145 echo "${ECHO_T}$ac_header_compiler" >&6; }
13147 # Is the header present?
13148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 #include <$ac_header>
13158 if { (ac_try="$ac_cpp conftest.$ac_ext"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13166 grep -v '^ *+' conftest.er1 >conftest.err
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } >/dev/null; then
13171 if test -s conftest.err; then
13172 ac_cpp_err=$ac_c_preproc_warn_flag
13173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13180 if test -z "$ac_cpp_err"; then
13181 ac_header_preproc=yes
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13186 ac_header_preproc=no
13189 rm -f conftest.err conftest.$ac_ext
13190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13191 echo "${ECHO_T}$ac_header_preproc" >&6; }
13193 # So? What about this header?
13194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13200 ac_header_preproc=yes
13203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13216 ## ------------------------------------ ##
13217 ## Report this to http://llvm.org/bugs/ ##
13218 ## ------------------------------------ ##
13220 ) | sed "s/^/$as_me: WARNING: /" >&2
13223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 eval "$as_ac_Header=\$ac_header_preproc"
13230 ac_res=`eval echo '${'$as_ac_Header'}'`
13231 { echo "$as_me:$LINENO: result: $ac_res" >&5
13232 echo "${ECHO_T}$ac_res" >&6; }
13235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13236 cat >>confdefs.h <<_ACEOF
13237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13247 for ac_header in CrashReporterClient.h
13249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 ac_res=`eval echo '${'$as_ac_Header'}'`
13257 { echo "$as_me:$LINENO: result: $ac_res" >&5
13258 echo "${ECHO_T}$ac_res" >&6; }
13260 # Is the header compilable?
13261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 $ac_includes_default
13270 #include <$ac_header>
13272 rm -f conftest.$ac_objext
13273 if { (ac_try="$ac_compile"
13274 case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_compile") 2>conftest.er1
13281 grep -v '^ *+' conftest.er1 >conftest.err
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
13286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13287 { (case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_try") 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try='test -s conftest.$ac_objext'
13297 { (case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_try") 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13306 ac_header_compiler=yes
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13311 ac_header_compiler=no
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13316 echo "${ECHO_T}$ac_header_compiler" >&6; }
13318 # Is the header present?
13319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 #include <$ac_header>
13329 if { (ac_try="$ac_cpp conftest.$ac_ext"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13337 grep -v '^ *+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_c_preproc_warn_flag
13344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13351 if test -z "$ac_cpp_err"; then
13352 ac_header_preproc=yes
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 ac_header_preproc=no
13360 rm -f conftest.err conftest.$ac_ext
13361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13362 echo "${ECHO_T}$ac_header_preproc" >&6; }
13364 # So? What about this header?
13365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13371 ac_header_preproc=yes
13374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13387 ## ------------------------------------ ##
13388 ## Report this to http://llvm.org/bugs/ ##
13389 ## ------------------------------------ ##
13391 ) | sed "s/^/$as_me: WARNING: /" >&2
13394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 eval "$as_ac_Header=\$ac_header_preproc"
13401 ac_res=`eval echo '${'$as_ac_Header'}'`
13402 { echo "$as_me:$LINENO: result: $ac_res" >&5
13403 echo "${ECHO_T}$ac_res" >&6; }
13406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13407 cat >>confdefs.h <<_ACEOF
13408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13416 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13417 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13418 cat >conftest.$ac_ext <<_ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h. */
13426 extern const char *__crashreporter_info__;
13428 __crashreporter_info__ = "test";
13434 rm -f conftest.$ac_objext conftest$ac_exeext
13435 if { (ac_try="$ac_link"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_link") 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449 { (case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_try") 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest$ac_exeext'
13459 { (case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_try") 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13469 { echo "$as_me:$LINENO: result: yes" >&5
13470 echo "${ECHO_T}yes" >&6; }
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_CRASHREPORTER_INFO 1
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13482 { echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6; }
13485 cat >>confdefs.h <<\_ACEOF
13486 #define HAVE_CRASHREPORTER_INFO 0
13492 rm -f core conftest.err conftest.$ac_objext \
13493 conftest$ac_exeext conftest.$ac_ext
13497 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13498 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13499 if test "${ac_cv_huge_val_sanity+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 ac_cpp='$CXXCPP $CPPFLAGS'
13505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13509 ac_save_CXXFLAGS=$CXXFLAGS
13510 CXXFLAGS="$CXXFLAGS -pedantic"
13511 if test "$cross_compiling" = yes; then
13512 ac_cv_huge_val_sanity=yes
13514 cat >conftest.$ac_ext <<_ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13524 double x = HUGE_VAL; return x != x;
13529 rm -f conftest$ac_exeext
13530 if { (ac_try="$ac_link"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_link") 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13540 { (case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_try") 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_cv_huge_val_sanity=yes
13551 echo "$as_me: program exited with status $ac_status" >&5
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ( exit $ac_status )
13556 ac_cv_huge_val_sanity=no
13558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13562 CXXFLAGS=$ac_save_CXXFLAGS
13564 ac_cpp='$CPP $CPPFLAGS'
13565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13571 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13572 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13573 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13576 { echo "$as_me:$LINENO: checking for pid_t" >&5
13577 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13578 if test "${ac_cv_type_pid_t+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 $ac_includes_default
13588 typedef pid_t ac__type_new_;
13592 if ((ac__type_new_ *) 0)
13594 if (sizeof (ac__type_new_))
13600 rm -f conftest.$ac_objext
13601 if { (ac_try="$ac_compile"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_compile") 2>conftest.er1
13609 grep -v '^ *+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13615 { (case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_try") 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest.$ac_objext'
13625 { (case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_try") 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 ac_cv_type_pid_t=yes
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 ac_cv_type_pid_t=no
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13645 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13646 if test $ac_cv_type_pid_t = yes; then
13650 cat >>confdefs.h <<_ACEOF
13656 { echo "$as_me:$LINENO: checking for size_t" >&5
13657 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13658 if test "${ac_cv_type_size_t+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 $ac_includes_default
13668 typedef size_t ac__type_new_;
13672 if ((ac__type_new_ *) 0)
13674 if (sizeof (ac__type_new_))
13680 rm -f conftest.$ac_objext
13681 if { (ac_try="$ac_compile"
13682 case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_compile") 2>conftest.er1
13689 grep -v '^ *+' conftest.er1 >conftest.err
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13695 { (case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_try") 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest.$ac_objext'
13705 { (case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_try") 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_type_size_t=yes
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ac_cv_type_size_t=no
13722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13725 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13726 if test $ac_cv_type_size_t = yes; then
13730 cat >>confdefs.h <<_ACEOF
13731 #define size_t unsigned int
13737 cat >>confdefs.h <<_ACEOF
13738 #define RETSIGTYPE void
13741 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13742 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13743 if test "${ac_cv_struct_tm+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 cat >conftest.$ac_ext <<_ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 #include <sys/types.h>
13758 struct tm *tp; tp->tm_sec;
13763 rm -f conftest.$ac_objext
13764 if { (ac_try="$ac_compile"
13765 case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_compile") 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest.$ac_objext'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_cv_struct_tm=time.h
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_cv_struct_tm=sys/time.h
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13807 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13808 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13809 if test $ac_cv_struct_tm = sys/time.h; then
13811 cat >>confdefs.h <<\_ACEOF
13812 #define TM_IN_SYS_TIME 1
13817 { echo "$as_me:$LINENO: checking for int64_t" >&5
13818 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13819 if test "${ac_cv_type_int64_t+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 $ac_includes_default
13829 typedef int64_t ac__type_new_;
13833 if ((ac__type_new_ *) 0)
13835 if (sizeof (ac__type_new_))
13841 rm -f conftest.$ac_objext
13842 if { (ac_try="$ac_compile"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_compile") 2>conftest.er1
13850 grep -v '^ *+' conftest.er1 >conftest.err
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest.$ac_objext'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_cv_type_int64_t=yes
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 ac_cv_type_int64_t=no
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13886 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13887 if test $ac_cv_type_int64_t = yes; then
13889 cat >>confdefs.h <<_ACEOF
13890 #define HAVE_INT64_T 1
13895 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13896 echo "$as_me: error: Type int64_t required but not found" >&2;}
13897 { (exit 1); exit 1; }; }
13900 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13901 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13902 if test "${ac_cv_type_uint64_t+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 $ac_includes_default
13912 typedef uint64_t ac__type_new_;
13916 if ((ac__type_new_ *) 0)
13918 if (sizeof (ac__type_new_))
13924 rm -f conftest.$ac_objext
13925 if { (ac_try="$ac_compile"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_compile") 2>conftest.er1
13933 grep -v '^ *+' conftest.er1 >conftest.err
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest.$ac_objext'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_cv_type_uint64_t=yes
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13963 ac_cv_type_uint64_t=no
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13969 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13970 if test $ac_cv_type_uint64_t = yes; then
13972 cat >>confdefs.h <<_ACEOF
13973 #define HAVE_UINT64_T 1
13978 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13979 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13980 if test "${ac_cv_type_u_int64_t+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 $ac_includes_default
13990 typedef u_int64_t ac__type_new_;
13994 if ((ac__type_new_ *) 0)
13996 if (sizeof (ac__type_new_))
14002 rm -f conftest.$ac_objext
14003 if { (ac_try="$ac_compile"
14004 case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_compile") 2>conftest.er1
14011 grep -v '^ *+' conftest.er1 >conftest.err
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14017 { (case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_try") 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; } &&
14026 { ac_try='test -s conftest.$ac_objext'
14027 { (case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_try") 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 ac_cv_type_u_int64_t=yes
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14041 ac_cv_type_u_int64_t=no
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14047 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14048 if test $ac_cv_type_u_int64_t = yes; then
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_U_INT64_T 1
14056 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14057 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14058 { (exit 1); exit 1; }; }
14072 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 cat >conftest.$ac_ext <<_ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14088 #define $ac_func innocuous_$ac_func
14090 /* System header to define __stub macros and hopefully few prototypes,
14091 which can conflict with char $ac_func (); below.
14092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14093 <limits.h> exists even on freestanding compilers. */
14096 # include <limits.h>
14098 # include <assert.h>
14103 /* Override any GCC internal prototype to avoid an error.
14104 Use char because int might match the return type of a GCC
14105 builtin and then its argument prototype would still apply. */
14110 /* The GNU C library defines this for functions which it implements
14111 to always fail with ENOSYS. Some functions are actually named
14112 something starting with __ and the normal name is an alias. */
14113 #if defined __stub_$ac_func || defined __stub___$ac_func
14120 return $ac_func ();
14125 rm -f conftest.$ac_objext conftest$ac_exeext
14126 if { (ac_try="$ac_link"
14127 case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_link") 2>conftest.er1
14134 grep -v '^ *+' conftest.er1 >conftest.err
14136 cat conftest.err >&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } &&
14139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14140 { (case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_try") 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; } &&
14149 { ac_try='test -s conftest$ac_exeext'
14150 { (case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_try") 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 eval "$as_ac_var=yes"
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 eval "$as_ac_var=no"
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14170 ac_res=`eval echo '${'$as_ac_var'}'`
14171 { echo "$as_me:$LINENO: result: $ac_res" >&5
14172 echo "${ECHO_T}$ac_res" >&6; }
14173 if test `eval echo '${'$as_ac_var'}'` = yes; then
14174 cat >>confdefs.h <<_ACEOF
14175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14185 for ac_func in powf fmodf strtof round
14187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 cat >conftest.$ac_ext <<_ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14201 #define $ac_func innocuous_$ac_func
14203 /* System header to define __stub macros and hopefully few prototypes,
14204 which can conflict with char $ac_func (); below.
14205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14206 <limits.h> exists even on freestanding compilers. */
14209 # include <limits.h>
14211 # include <assert.h>
14216 /* Override any GCC internal prototype to avoid an error.
14217 Use char because int might match the return type of a GCC
14218 builtin and then its argument prototype would still apply. */
14223 /* The GNU C library defines this for functions which it implements
14224 to always fail with ENOSYS. Some functions are actually named
14225 something starting with __ and the normal name is an alias. */
14226 #if defined __stub_$ac_func || defined __stub___$ac_func
14233 return $ac_func ();
14238 rm -f conftest.$ac_objext conftest$ac_exeext
14239 if { (ac_try="$ac_link"
14240 case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_link") 2>conftest.er1
14247 grep -v '^ *+' conftest.er1 >conftest.err
14249 cat conftest.err >&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } &&
14252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14253 { (case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_try") 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; } &&
14262 { ac_try='test -s conftest$ac_exeext'
14263 { (case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268 (eval "$ac_try") 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 eval "$as_ac_var=yes"
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 eval "$as_ac_var=no"
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14283 ac_res=`eval echo '${'$as_ac_var'}'`
14284 { echo "$as_me:$LINENO: result: $ac_res" >&5
14285 echo "${ECHO_T}$ac_res" >&6; }
14286 if test `eval echo '${'$as_ac_var'}'` = yes; then
14287 cat >>confdefs.h <<_ACEOF
14288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14299 for ac_func in log log2 log10 exp exp2
14301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 cat >conftest.$ac_ext <<_ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14315 #define $ac_func innocuous_$ac_func
14317 /* System header to define __stub macros and hopefully few prototypes,
14318 which can conflict with char $ac_func (); below.
14319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14320 <limits.h> exists even on freestanding compilers. */
14323 # include <limits.h>
14325 # include <assert.h>
14330 /* Override any GCC internal prototype to avoid an error.
14331 Use char because int might match the return type of a GCC
14332 builtin and then its argument prototype would still apply. */
14337 /* The GNU C library defines this for functions which it implements
14338 to always fail with ENOSYS. Some functions are actually named
14339 something starting with __ and the normal name is an alias. */
14340 #if defined __stub_$ac_func || defined __stub___$ac_func
14347 return $ac_func ();
14352 rm -f conftest.$ac_objext conftest$ac_exeext
14353 if { (ac_try="$ac_link"
14354 case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_link") 2>conftest.er1
14361 grep -v '^ *+' conftest.er1 >conftest.err
14363 cat conftest.err >&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } &&
14366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14367 { (case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_try") 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest$ac_exeext'
14377 { (case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_try") 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 eval "$as_ac_var=yes"
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 eval "$as_ac_var=no"
14394 rm -f core conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext conftest.$ac_ext
14397 ac_res=`eval echo '${'$as_ac_var'}'`
14398 { echo "$as_me:$LINENO: result: $ac_res" >&5
14399 echo "${ECHO_T}$ac_res" >&6; }
14400 if test `eval echo '${'$as_ac_var'}'` = yes; then
14401 cat >>confdefs.h <<_ACEOF
14402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14413 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 cat >conftest.$ac_ext <<_ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14429 #define $ac_func innocuous_$ac_func
14431 /* System header to define __stub macros and hopefully few prototypes,
14432 which can conflict with char $ac_func (); below.
14433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14434 <limits.h> exists even on freestanding compilers. */
14437 # include <limits.h>
14439 # include <assert.h>
14444 /* Override any GCC internal prototype to avoid an error.
14445 Use char because int might match the return type of a GCC
14446 builtin and then its argument prototype would still apply. */
14451 /* The GNU C library defines this for functions which it implements
14452 to always fail with ENOSYS. Some functions are actually named
14453 something starting with __ and the normal name is an alias. */
14454 #if defined __stub_$ac_func || defined __stub___$ac_func
14461 return $ac_func ();
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (ac_try="$ac_link"
14468 case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_link") 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14481 { (case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_try") 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest$ac_exeext'
14491 { (case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_try") 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 eval "$as_ac_var=yes"
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 eval "$as_ac_var=no"
14508 rm -f core conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
14511 ac_res=`eval echo '${'$as_ac_var'}'`
14512 { echo "$as_me:$LINENO: result: $ac_res" >&5
14513 echo "${ECHO_T}$ac_res" >&6; }
14514 if test `eval echo '${'$as_ac_var'}'` = yes; then
14515 cat >>confdefs.h <<_ACEOF
14516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14525 for ac_func in isatty mkdtemp mkstemp
14527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 cat >conftest.$ac_ext <<_ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14541 #define $ac_func innocuous_$ac_func
14543 /* System header to define __stub macros and hopefully few prototypes,
14544 which can conflict with char $ac_func (); below.
14545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14546 <limits.h> exists even on freestanding compilers. */
14549 # include <limits.h>
14551 # include <assert.h>
14556 /* Override any GCC internal prototype to avoid an error.
14557 Use char because int might match the return type of a GCC
14558 builtin and then its argument prototype would still apply. */
14563 /* The GNU C library defines this for functions which it implements
14564 to always fail with ENOSYS. Some functions are actually named
14565 something starting with __ and the normal name is an alias. */
14566 #if defined __stub_$ac_func || defined __stub___$ac_func
14573 return $ac_func ();
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (ac_try="$ac_link"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_link") 2>conftest.er1
14587 grep -v '^ *+' conftest.er1 >conftest.err
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14593 { (case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_try") 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try='test -s conftest$ac_exeext'
14603 { (case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_try") 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 eval "$as_ac_var=yes"
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 eval "$as_ac_var=no"
14620 rm -f core conftest.err conftest.$ac_objext \
14621 conftest$ac_exeext conftest.$ac_ext
14623 ac_res=`eval echo '${'$as_ac_var'}'`
14624 { echo "$as_me:$LINENO: result: $ac_res" >&5
14625 echo "${ECHO_T}$ac_res" >&6; }
14626 if test `eval echo '${'$as_ac_var'}'` = yes; then
14627 cat >>confdefs.h <<_ACEOF
14628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14640 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 cat >conftest.$ac_ext <<_ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14656 #define $ac_func innocuous_$ac_func
14658 /* System header to define __stub macros and hopefully few prototypes,
14659 which can conflict with char $ac_func (); below.
14660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14661 <limits.h> exists even on freestanding compilers. */
14664 # include <limits.h>
14666 # include <assert.h>
14671 /* Override any GCC internal prototype to avoid an error.
14672 Use char because int might match the return type of a GCC
14673 builtin and then its argument prototype would still apply. */
14678 /* The GNU C library defines this for functions which it implements
14679 to always fail with ENOSYS. Some functions are actually named
14680 something starting with __ and the normal name is an alias. */
14681 #if defined __stub_$ac_func || defined __stub___$ac_func
14688 return $ac_func ();
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_link") 2>conftest.er1
14702 grep -v '^ *+' conftest.er1 >conftest.err
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14708 { (case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_try") 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest$ac_exeext'
14718 { (case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_try") 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 eval "$as_ac_var=yes"
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 eval "$as_ac_var=no"
14735 rm -f core conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14738 ac_res=`eval echo '${'$as_ac_var'}'`
14739 { echo "$as_me:$LINENO: result: $ac_res" >&5
14740 echo "${ECHO_T}$ac_res" >&6; }
14741 if test `eval echo '${'$as_ac_var'}'` = yes; then
14742 cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14752 for ac_func in strerror strerror_r setenv
14754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 cat >conftest.$ac_ext <<_ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14768 #define $ac_func innocuous_$ac_func
14770 /* System header to define __stub macros and hopefully few prototypes,
14771 which can conflict with char $ac_func (); below.
14772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14773 <limits.h> exists even on freestanding compilers. */
14776 # include <limits.h>
14778 # include <assert.h>
14783 /* Override any GCC internal prototype to avoid an error.
14784 Use char because int might match the return type of a GCC
14785 builtin and then its argument prototype would still apply. */
14790 /* The GNU C library defines this for functions which it implements
14791 to always fail with ENOSYS. Some functions are actually named
14792 something starting with __ and the normal name is an alias. */
14793 #if defined __stub_$ac_func || defined __stub___$ac_func
14800 return $ac_func ();
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (ac_try="$ac_link"
14807 case "(($ac_try" in
14808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14809 *) ac_try_echo=$ac_try;;
14811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14812 (eval "$ac_link") 2>conftest.er1
14814 grep -v '^ *+' conftest.er1 >conftest.err
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14820 { (case "(($ac_try" in
14821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822 *) ac_try_echo=$ac_try;;
14824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825 (eval "$ac_try") 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try='test -s conftest$ac_exeext'
14830 { (case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_try") 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 eval "$as_ac_var=yes"
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 eval "$as_ac_var=no"
14847 rm -f core conftest.err conftest.$ac_objext \
14848 conftest$ac_exeext conftest.$ac_ext
14850 ac_res=`eval echo '${'$as_ac_var'}'`
14851 { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14853 if test `eval echo '${'$as_ac_var'}'` = yes; then
14854 cat >>confdefs.h <<_ACEOF
14855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14865 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14881 #define $ac_func innocuous_$ac_func
14883 /* System header to define __stub macros and hopefully few prototypes,
14884 which can conflict with char $ac_func (); below.
14885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14886 <limits.h> exists even on freestanding compilers. */
14889 # include <limits.h>
14891 # include <assert.h>
14896 /* Override any GCC internal prototype to avoid an error.
14897 Use char because int might match the return type of a GCC
14898 builtin and then its argument prototype would still apply. */
14903 /* The GNU C library defines this for functions which it implements
14904 to always fail with ENOSYS. Some functions are actually named
14905 something starting with __ and the normal name is an alias. */
14906 #if defined __stub_$ac_func || defined __stub___$ac_func
14913 return $ac_func ();
14918 rm -f conftest.$ac_objext conftest$ac_exeext
14919 if { (ac_try="$ac_link"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_link") 2>conftest.er1
14927 grep -v '^ *+' conftest.er1 >conftest.err
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } &&
14932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14933 { (case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_try") 2>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; } &&
14942 { ac_try='test -s conftest$ac_exeext'
14943 { (case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_try") 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 eval "$as_ac_var=yes"
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14957 eval "$as_ac_var=no"
14960 rm -f core conftest.err conftest.$ac_objext \
14961 conftest$ac_exeext conftest.$ac_ext
14963 ac_res=`eval echo '${'$as_ac_var'}'`
14964 { echo "$as_me:$LINENO: result: $ac_res" >&5
14965 echo "${ECHO_T}$ac_res" >&6; }
14966 if test `eval echo '${'$as_ac_var'}'` = yes; then
14967 cat >>confdefs.h <<_ACEOF
14968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14979 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 cat >conftest.$ac_ext <<_ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h. */
14993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14995 #define $ac_func innocuous_$ac_func
14997 /* System header to define __stub macros and hopefully few prototypes,
14998 which can conflict with char $ac_func (); below.
14999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15000 <limits.h> exists even on freestanding compilers. */
15003 # include <limits.h>
15005 # include <assert.h>
15010 /* Override any GCC internal prototype to avoid an error.
15011 Use char because int might match the return type of a GCC
15012 builtin and then its argument prototype would still apply. */
15017 /* The GNU C library defines this for functions which it implements
15018 to always fail with ENOSYS. Some functions are actually named
15019 something starting with __ and the normal name is an alias. */
15020 #if defined __stub_$ac_func || defined __stub___$ac_func
15027 return $ac_func ();
15032 rm -f conftest.$ac_objext conftest$ac_exeext
15033 if { (ac_try="$ac_link"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_link") 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15047 { (case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_try") 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest$ac_exeext'
15057 { (case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_try") 2>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 eval "$as_ac_var=yes"
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 eval "$as_ac_var=no"
15074 rm -f core conftest.err conftest.$ac_objext \
15075 conftest$ac_exeext conftest.$ac_ext
15077 ac_res=`eval echo '${'$as_ac_var'}'`
15078 { echo "$as_me:$LINENO: result: $ac_res" >&5
15079 echo "${ECHO_T}$ac_res" >&6; }
15080 if test `eval echo '${'$as_ac_var'}'` = yes; then
15081 cat >>confdefs.h <<_ACEOF
15082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15090 for ac_func in futimes futimens
15092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 cat >conftest.$ac_ext <<_ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15106 #define $ac_func innocuous_$ac_func
15108 /* System header to define __stub macros and hopefully few prototypes,
15109 which can conflict with char $ac_func (); below.
15110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15111 <limits.h> exists even on freestanding compilers. */
15114 # include <limits.h>
15116 # include <assert.h>
15121 /* Override any GCC internal prototype to avoid an error.
15122 Use char because int might match the return type of a GCC
15123 builtin and then its argument prototype would still apply. */
15128 /* The GNU C library defines this for functions which it implements
15129 to always fail with ENOSYS. Some functions are actually named
15130 something starting with __ and the normal name is an alias. */
15131 #if defined __stub_$ac_func || defined __stub___$ac_func
15138 return $ac_func ();
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (ac_try="$ac_link"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_link") 2>conftest.er1
15152 grep -v '^ *+' conftest.er1 >conftest.err
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } &&
15157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_try") 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 eval "$as_ac_var=yes"
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15182 eval "$as_ac_var=no"
15185 rm -f core conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
15188 ac_res=`eval echo '${'$as_ac_var'}'`
15189 { echo "$as_me:$LINENO: result: $ac_res" >&5
15190 echo "${ECHO_T}$ac_res" >&6; }
15191 if test `eval echo '${'$as_ac_var'}'` = yes; then
15192 cat >>confdefs.h <<_ACEOF
15193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15199 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15200 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15201 if test "${llvm_cv_c_printf_a+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 ac_cpp='$CPP $CPPFLAGS'
15206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15210 if test "$cross_compiling" = yes; then
15211 llvmac_cv_c_printf_a=no
15213 cat >conftest.$ac_ext <<_ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15222 #include <stdlib.h>
15228 volatile double A, B;
15232 sprintf(Buffer, "%a", A);
15236 if (A != 0x1.999999999999ap-4)
15243 rm -f conftest$ac_exeext
15244 if { (ac_try="$ac_link"
15245 case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_link") 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 llvm_cv_c_printf_a=yes
15265 echo "$as_me: program exited with status $ac_status" >&5
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 ( exit $ac_status )
15270 llvmac_cv_c_printf_a=no
15272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15277 ac_cpp='$CPP $CPPFLAGS'
15278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15283 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15284 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15285 if test "$llvm_cv_c_printf_a" = "yes"; then
15287 cat >>confdefs.h <<\_ACEOF
15288 #define HAVE_PRINTF_A 1
15295 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15296 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15297 if test "${ac_cv_func_rand48+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 ac_cpp='$CXXCPP $CPPFLAGS'
15303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15307 cat >conftest.$ac_ext <<_ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h. */
15313 #include <stdlib.h>
15317 srand48(0);lrand48();drand48();
15322 rm -f conftest.$ac_objext
15323 if { (ac_try="$ac_compile"
15324 case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_compile") 2>conftest.er1
15331 grep -v '^ *+' conftest.er1 >conftest.err
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15337 { (case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_try") 2>&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; } &&
15346 { ac_try='test -s conftest.$ac_objext'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_cv_func_rand48=yes
15358 echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15361 ac_cv_func_rand48=no
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 ac_cpp='$CPP $CPPFLAGS'
15367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15373 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15374 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15376 if test "$ac_cv_func_rand48" = "yes" ; then
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_RAND48 1
15385 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15386 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15387 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 cat >conftest.$ac_ext <<_ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 $ac_includes_default
15401 char *p = (char *) arc4random;
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_compile") 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest.$ac_objext'
15434 { (case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_try") 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 ac_cv_have_decl_arc4random=yes
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 ac_cv_have_decl_arc4random=no
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15454 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15455 if test $ac_cv_have_decl_arc4random = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define HAVE_DECL_ARC4RANDOM 1
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_DECL_ARC4RANDOM 0
15472 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15473 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15474 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 cat >conftest.$ac_ext <<_ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 $ac_includes_default
15488 char *p = (char *) strerror_s;
15496 rm -f conftest.$ac_objext
15497 if { (ac_try="$ac_compile"
15498 case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503 (eval "$ac_compile") 2>conftest.er1
15505 grep -v '^ *+' conftest.er1 >conftest.err
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15511 { (case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_try") 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try='test -s conftest.$ac_objext'
15521 { (case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_try") 2>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 ac_cv_have_decl_strerror_s=yes
15532 echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15535 ac_cv_have_decl_strerror_s=no
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15541 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15542 if test $ac_cv_have_decl_strerror_s = yes; then
15544 cat >>confdefs.h <<_ACEOF
15545 #define HAVE_DECL_STRERROR_S 1
15550 cat >>confdefs.h <<_ACEOF
15551 #define HAVE_DECL_STRERROR_S 0
15559 if test "$llvm_cv_os_type" = "MingW" ; then
15560 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15561 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15562 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15565 ac_check_lib_save_LIBS=$LIBS
15567 cat >conftest.$ac_ext <<_ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15574 /* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_link") 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15604 { (case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_try") 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; } &&
15613 { ac_try='test -s conftest$ac_exeext'
15614 { (case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15619 (eval "$ac_try") 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }; then
15623 ac_cv_lib_gcc__alloca=yes
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15628 ac_cv_lib_gcc__alloca=no
15631 rm -f core conftest.err conftest.$ac_objext \
15632 conftest$ac_exeext conftest.$ac_ext
15633 LIBS=$ac_check_lib_save_LIBS
15635 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15636 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15637 if test $ac_cv_lib_gcc__alloca = yes; then
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAVE__ALLOCA 1
15645 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15646 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15647 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 ac_check_lib_save_LIBS=$LIBS
15652 cat >conftest.$ac_ext <<_ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15659 /* Override any GCC internal prototype to avoid an error.
15660 Use char because int might match the return type of a GCC
15661 builtin and then its argument prototype would still apply. */
15669 return __alloca ();
15674 rm -f conftest.$ac_objext conftest$ac_exeext
15675 if { (ac_try="$ac_link"
15676 case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_link") 2>conftest.er1
15683 grep -v '^ *+' conftest.er1 >conftest.err
15685 cat conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
15688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try='test -s conftest$ac_exeext'
15699 { (case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_try") 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_cv_lib_gcc___alloca=yes
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 ac_cv_lib_gcc___alloca=no
15716 rm -f core conftest.err conftest.$ac_objext \
15717 conftest$ac_exeext conftest.$ac_ext
15718 LIBS=$ac_check_lib_save_LIBS
15720 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15721 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15722 if test $ac_cv_lib_gcc___alloca = yes; then
15724 cat >>confdefs.h <<\_ACEOF
15725 #define HAVE___ALLOCA 1
15730 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15731 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15732 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 ac_check_lib_save_LIBS=$LIBS
15737 cat >conftest.$ac_ext <<_ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15744 /* Override any GCC internal prototype to avoid an error.
15745 Use char because int might match the return type of a GCC
15746 builtin and then its argument prototype would still apply. */
15754 return __chkstk ();
15759 rm -f conftest.$ac_objext conftest$ac_exeext
15760 if { (ac_try="$ac_link"
15761 case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766 (eval "$ac_link") 2>conftest.er1
15768 grep -v '^ *+' conftest.er1 >conftest.err
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15774 { (case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_try") 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest$ac_exeext'
15784 { (case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_try") 2>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_cv_lib_gcc___chkstk=yes
15795 echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 ac_cv_lib_gcc___chkstk=no
15801 rm -f core conftest.err conftest.$ac_objext \
15802 conftest$ac_exeext conftest.$ac_ext
15803 LIBS=$ac_check_lib_save_LIBS
15805 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15806 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15807 if test $ac_cv_lib_gcc___chkstk = yes; then
15809 cat >>confdefs.h <<\_ACEOF
15810 #define HAVE___CHKSTK 1
15815 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15816 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15817 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 ac_check_lib_save_LIBS=$LIBS
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15829 /* Override any GCC internal prototype to avoid an error.
15830 Use char because int might match the return type of a GCC
15831 builtin and then its argument prototype would still apply. */
15839 return ___chkstk ();
15844 rm -f conftest.$ac_objext conftest$ac_exeext
15845 if { (ac_try="$ac_link"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_link") 2>conftest.er1
15853 grep -v '^ *+' conftest.er1 >conftest.err
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15859 { (case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_try") 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } &&
15868 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 ac_cv_lib_gcc____chkstk=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_cv_lib_gcc____chkstk=no
15886 rm -f core conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
15888 LIBS=$ac_check_lib_save_LIBS
15890 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15891 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15892 if test $ac_cv_lib_gcc____chkstk = yes; then
15894 cat >>confdefs.h <<\_ACEOF
15895 #define HAVE____CHKSTK 1
15901 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15902 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15903 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 ac_check_lib_save_LIBS=$LIBS
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15915 /* Override any GCC internal prototype to avoid an error.
15916 Use char because int might match the return type of a GCC
15917 builtin and then its argument prototype would still apply. */
15925 return __ashldi3 ();
15930 rm -f conftest.$ac_objext conftest$ac_exeext
15931 if { (ac_try="$ac_link"
15932 case "(($ac_try" in
15933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934 *) ac_try_echo=$ac_try;;
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937 (eval "$ac_link") 2>conftest.er1
15939 grep -v '^ *+' conftest.er1 >conftest.err
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15945 { (case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_try") 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest$ac_exeext'
15955 { (case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_try") 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_cv_lib_gcc___ashldi3=yes
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15969 ac_cv_lib_gcc___ashldi3=no
15972 rm -f core conftest.err conftest.$ac_objext \
15973 conftest$ac_exeext conftest.$ac_ext
15974 LIBS=$ac_check_lib_save_LIBS
15976 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15977 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15978 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15980 cat >>confdefs.h <<\_ACEOF
15981 #define HAVE___ASHLDI3 1
15986 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15987 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15988 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 ac_check_lib_save_LIBS=$LIBS
15993 cat >conftest.$ac_ext <<_ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
16000 /* Override any GCC internal prototype to avoid an error.
16001 Use char because int might match the return type of a GCC
16002 builtin and then its argument prototype would still apply. */
16010 return __ashrdi3 ();
16015 rm -f conftest.$ac_objext conftest$ac_exeext
16016 if { (ac_try="$ac_link"
16017 case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022 (eval "$ac_link") 2>conftest.er1
16024 grep -v '^ *+' conftest.er1 >conftest.err
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; } &&
16039 { ac_try='test -s conftest$ac_exeext'
16040 { (case "(($ac_try" in
16041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042 *) ac_try_echo=$ac_try;;
16044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16045 (eval "$ac_try") 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 ac_cv_lib_gcc___ashrdi3=yes
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 ac_cv_lib_gcc___ashrdi3=no
16057 rm -f core conftest.err conftest.$ac_objext \
16058 conftest$ac_exeext conftest.$ac_ext
16059 LIBS=$ac_check_lib_save_LIBS
16061 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16062 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16063 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16065 cat >>confdefs.h <<\_ACEOF
16066 #define HAVE___ASHRDI3 1
16071 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16072 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16073 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 ac_check_lib_save_LIBS=$LIBS
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16085 /* Override any GCC internal prototype to avoid an error.
16086 Use char because int might match the return type of a GCC
16087 builtin and then its argument prototype would still apply. */
16095 return __divdi3 ();
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_link") 2>conftest.er1
16109 grep -v '^ *+' conftest.er1 >conftest.err
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
16114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16115 { (case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16120 (eval "$ac_try") 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; } &&
16124 { ac_try='test -s conftest$ac_exeext'
16125 { (case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_try") 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 ac_cv_lib_gcc___divdi3=yes
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 ac_cv_lib_gcc___divdi3=no
16142 rm -f core conftest.err conftest.$ac_objext \
16143 conftest$ac_exeext conftest.$ac_ext
16144 LIBS=$ac_check_lib_save_LIBS
16146 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16147 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16148 if test $ac_cv_lib_gcc___divdi3 = yes; then
16150 cat >>confdefs.h <<\_ACEOF
16151 #define HAVE___DIVDI3 1
16156 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16157 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16158 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16161 ac_check_lib_save_LIBS=$LIBS
16163 cat >conftest.$ac_ext <<_ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16170 /* Override any GCC internal prototype to avoid an error.
16171 Use char because int might match the return type of a GCC
16172 builtin and then its argument prototype would still apply. */
16180 return __fixdfdi ();
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (ac_try="$ac_link"
16187 case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_link") 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try='test -s conftest$ac_exeext'
16210 { (case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_try") 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_lib_gcc___fixdfdi=yes
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 ac_cv_lib_gcc___fixdfdi=no
16227 rm -f core conftest.err conftest.$ac_objext \
16228 conftest$ac_exeext conftest.$ac_ext
16229 LIBS=$ac_check_lib_save_LIBS
16231 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16232 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16233 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16235 cat >>confdefs.h <<\_ACEOF
16236 #define HAVE___FIXDFDI 1
16241 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16242 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16243 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 ac_check_lib_save_LIBS=$LIBS
16248 cat >conftest.$ac_ext <<_ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h. */
16255 /* Override any GCC internal prototype to avoid an error.
16256 Use char because int might match the return type of a GCC
16257 builtin and then its argument prototype would still apply. */
16265 return __fixsfdi ();
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (ac_try="$ac_link"
16272 case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_link") 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16285 { (case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_try") 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest$ac_exeext'
16295 { (case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_try") 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 ac_cv_lib_gcc___fixsfdi=yes
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 ac_cv_lib_gcc___fixsfdi=no
16312 rm -f core conftest.err conftest.$ac_objext \
16313 conftest$ac_exeext conftest.$ac_ext
16314 LIBS=$ac_check_lib_save_LIBS
16316 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16317 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16318 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16320 cat >>confdefs.h <<\_ACEOF
16321 #define HAVE___FIXSFDI 1
16326 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16327 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16328 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16331 ac_check_lib_save_LIBS=$LIBS
16333 cat >conftest.$ac_ext <<_ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h. */
16340 /* Override any GCC internal prototype to avoid an error.
16341 Use char because int might match the return type of a GCC
16342 builtin and then its argument prototype would still apply. */
16346 char __floatdidf ();
16350 return __floatdidf ();
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_link") 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
16369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16370 { (case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_try") 2>&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; } &&
16379 { ac_try='test -s conftest$ac_exeext'
16380 { (case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_try") 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_cv_lib_gcc___floatdidf=yes
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16394 ac_cv_lib_gcc___floatdidf=no
16397 rm -f core conftest.err conftest.$ac_objext \
16398 conftest$ac_exeext conftest.$ac_ext
16399 LIBS=$ac_check_lib_save_LIBS
16401 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16402 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16403 if test $ac_cv_lib_gcc___floatdidf = yes; then
16405 cat >>confdefs.h <<\_ACEOF
16406 #define HAVE___FLOATDIDF 1
16411 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16412 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16413 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16414 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 ac_check_lib_save_LIBS=$LIBS
16418 cat >conftest.$ac_ext <<_ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16425 /* Override any GCC internal prototype to avoid an error.
16426 Use char because int might match the return type of a GCC
16427 builtin and then its argument prototype would still apply. */
16435 return __lshrdi3 ();
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_link") 2>conftest.er1
16449 grep -v '^ *+' conftest.er1 >conftest.err
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455 { (case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_try") 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest$ac_exeext'
16465 { (case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_try") 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_lib_gcc___lshrdi3=yes
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_cv_lib_gcc___lshrdi3=no
16482 rm -f core conftest.err conftest.$ac_objext \
16483 conftest$ac_exeext conftest.$ac_ext
16484 LIBS=$ac_check_lib_save_LIBS
16486 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16487 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16488 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE___LSHRDI3 1
16496 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16497 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16498 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 ac_check_lib_save_LIBS=$LIBS
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16510 /* Override any GCC internal prototype to avoid an error.
16511 Use char because int might match the return type of a GCC
16512 builtin and then its argument prototype would still apply. */
16520 return __moddi3 ();
16525 rm -f conftest.$ac_objext conftest$ac_exeext
16526 if { (ac_try="$ac_link"
16527 case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_link") 2>conftest.er1
16534 grep -v '^ *+' conftest.er1 >conftest.err
16536 cat conftest.err >&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } &&
16539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16540 { (case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_try") 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try='test -s conftest$ac_exeext'
16550 { (case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555 (eval "$ac_try") 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 ac_cv_lib_gcc___moddi3=yes
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ac_cv_lib_gcc___moddi3=no
16567 rm -f core conftest.err conftest.$ac_objext \
16568 conftest$ac_exeext conftest.$ac_ext
16569 LIBS=$ac_check_lib_save_LIBS
16571 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16572 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16573 if test $ac_cv_lib_gcc___moddi3 = yes; then
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE___MODDI3 1
16581 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16582 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16583 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 ac_check_lib_save_LIBS=$LIBS
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16595 /* Override any GCC internal prototype to avoid an error.
16596 Use char because int might match the return type of a GCC
16597 builtin and then its argument prototype would still apply. */
16605 return __udivdi3 ();
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (ac_try="$ac_link"
16612 case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_link") 2>conftest.er1
16619 grep -v '^ *+' conftest.er1 >conftest.err
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16625 { (case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_try") 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest$ac_exeext'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_lib_gcc___udivdi3=yes
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_lib_gcc___udivdi3=no
16652 rm -f core conftest.err conftest.$ac_objext \
16653 conftest$ac_exeext conftest.$ac_ext
16654 LIBS=$ac_check_lib_save_LIBS
16656 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16657 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16658 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16660 cat >>confdefs.h <<\_ACEOF
16661 #define HAVE___UDIVDI3 1
16666 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16667 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16668 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 ac_check_lib_save_LIBS=$LIBS
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16680 /* Override any GCC internal prototype to avoid an error.
16681 Use char because int might match the return type of a GCC
16682 builtin and then its argument prototype would still apply. */
16690 return __umoddi3 ();
16695 rm -f conftest.$ac_objext conftest$ac_exeext
16696 if { (ac_try="$ac_link"
16697 case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_link") 2>conftest.er1
16704 grep -v '^ *+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest$ac_exeext'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_lib_gcc___umoddi3=yes
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_cv_lib_gcc___umoddi3=no
16737 rm -f core conftest.err conftest.$ac_objext \
16738 conftest$ac_exeext conftest.$ac_ext
16739 LIBS=$ac_check_lib_save_LIBS
16741 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16742 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16743 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16745 cat >>confdefs.h <<\_ACEOF
16746 #define HAVE___UMODDI3 1
16752 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16753 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16754 if test "${ac_cv_lib_gcc___main+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 ac_check_lib_save_LIBS=$LIBS
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16766 /* Override any GCC internal prototype to avoid an error.
16767 Use char because int might match the return type of a GCC
16768 builtin and then its argument prototype would still apply. */
16781 rm -f conftest.$ac_objext conftest$ac_exeext
16782 if { (ac_try="$ac_link"
16783 case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_link") 2>conftest.er1
16790 grep -v '^ *+' conftest.er1 >conftest.err
16792 cat conftest.err >&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16796 { (case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_try") 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest$ac_exeext'
16806 { (case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811 (eval "$ac_try") 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_lib_gcc___main=yes
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 ac_cv_lib_gcc___main=no
16823 rm -f core conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext conftest.$ac_ext
16825 LIBS=$ac_check_lib_save_LIBS
16827 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16828 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16829 if test $ac_cv_lib_gcc___main = yes; then
16831 cat >>confdefs.h <<\_ACEOF
16832 #define HAVE___MAIN 1
16837 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16838 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16839 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 ac_check_lib_save_LIBS=$LIBS
16844 cat >conftest.$ac_ext <<_ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16851 /* Override any GCC internal prototype to avoid an error.
16852 Use char because int might match the return type of a GCC
16853 builtin and then its argument prototype would still apply. */
16861 return __cmpdi2 ();
16866 rm -f conftest.$ac_objext conftest$ac_exeext
16867 if { (ac_try="$ac_link"
16868 case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_link") 2>conftest.er1
16875 grep -v '^ *+' conftest.er1 >conftest.err
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try='test -s conftest$ac_exeext'
16891 { (case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_try") 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_cv_lib_gcc___cmpdi2=yes
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 ac_cv_lib_gcc___cmpdi2=no
16908 rm -f core conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16910 LIBS=$ac_check_lib_save_LIBS
16912 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16913 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16914 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16916 cat >>confdefs.h <<\_ACEOF
16917 #define HAVE___CMPDI2 1
16924 if test "$llvm_cv_os_type" = "MingW" ; then
16925 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16926 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16927 cat >conftest.$ac_ext <<_ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16935 #include <windows.h>
16936 #include <imagehlp.h>
16937 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16938 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16942 rm -f conftest.$ac_objext
16943 if { (ac_try="$ac_compile"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_compile") 2>conftest.er1
16951 grep -v '^ *+' conftest.er1 >conftest.err
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
16956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16957 { (case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_try") 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; } &&
16966 { ac_try='test -s conftest.$ac_objext'
16967 { (case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_try") 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16977 { echo "$as_me:$LINENO: result: yes" >&5
16978 echo "${ECHO_T}yes" >&6; }
16979 llvm_cv_win32_elmcb_pcstr="PCSTR"
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16986 { echo "$as_me:$LINENO: result: no" >&5
16987 echo "${ECHO_T}no" >&6; }
16988 llvm_cv_win32_elmcb_pcstr="PSTR"
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16994 cat >>confdefs.h <<_ACEOF
16995 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17002 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17003 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17004 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 ac_cpp='$CXXCPP $CPPFLAGS'
17010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17014 cat >conftest.$ac_ext <<_ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17029 rm -f conftest.$ac_objext
17030 if { (ac_try="$ac_compile"
17031 case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_compile") 2>conftest.er1
17038 grep -v '^ *+' conftest.er1 >conftest.err
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17044 { (case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_try") 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest.$ac_objext'
17054 { (case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_try") 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_cv_func_isnan_in_math_h=yes
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 ac_cv_func_isnan_in_math_h=no
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 ac_cpp='$CPP $CPPFLAGS'
17074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17080 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17081 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17084 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17086 cat >>confdefs.h <<\_ACEOF
17087 #define HAVE_ISNAN_IN_MATH_H 1
17093 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17094 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17095 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 ac_cpp='$CXXCPP $CPPFLAGS'
17101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17120 rm -f conftest.$ac_objext
17121 if { (ac_try="$ac_compile"
17122 case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_compile") 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17135 { (case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_try") 2>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try='test -s conftest.$ac_objext'
17145 { (case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_try") 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_cv_func_isnan_in_cmath=yes
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 ac_cv_func_isnan_in_cmath=no
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17164 ac_cpp='$CPP $CPPFLAGS'
17165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17171 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17172 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17174 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17176 cat >>confdefs.h <<\_ACEOF
17177 #define HAVE_ISNAN_IN_CMATH 1
17183 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17184 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17185 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17190 ac_cpp='$CXXCPP $CPPFLAGS'
17191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17195 cat >conftest.$ac_ext <<_ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17205 float f; std::isnan(f);
17210 rm -f conftest.$ac_objext
17211 if { (ac_try="$ac_compile"
17212 case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_compile") 2>conftest.er1
17219 grep -v '^ *+' conftest.er1 >conftest.err
17221 cat conftest.err >&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17225 { (case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_try") 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_try") 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 ac_cv_func_std_isnan_in_cmath=yes
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ac_cv_func_std_isnan_in_cmath=no
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254 ac_cpp='$CPP $CPPFLAGS'
17255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17261 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17262 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17264 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17266 cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_STD_ISNAN_IN_CMATH 1
17275 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17276 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17277 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 ac_cpp='$CXXCPP $CPPFLAGS'
17283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17287 cat >conftest.$ac_ext <<_ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17302 rm -f conftest.$ac_objext
17303 if { (ac_try="$ac_compile"
17304 case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309 (eval "$ac_compile") 2>conftest.er1
17311 grep -v '^ *+' conftest.er1 >conftest.err
17313 cat conftest.err >&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
17316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17317 { (case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_try") 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try='test -s conftest.$ac_objext'
17327 { (case "(($ac_try" in
17328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329 *) ac_try_echo=$ac_try;;
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332 (eval "$ac_try") 2>&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_func_isinf_in_math_h=yes
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ac_cv_func_isinf_in_math_h=no
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346 ac_cpp='$CPP $CPPFLAGS'
17347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17353 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17354 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17356 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17358 cat >>confdefs.h <<\_ACEOF
17359 #define HAVE_ISINF_IN_MATH_H 1
17365 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17366 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17367 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 ac_cpp='$CXXCPP $CPPFLAGS'
17373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17377 cat >conftest.$ac_ext <<_ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17392 rm -f conftest.$ac_objext
17393 if { (ac_try="$ac_compile"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_compile") 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } &&
17406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest.$ac_objext'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_cv_func_isinf_in_cmath=yes
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ac_cv_func_isinf_in_cmath=no
17434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 ac_cpp='$CPP $CPPFLAGS'
17437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17443 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17444 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17446 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17448 cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_ISINF_IN_CMATH 1
17455 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17456 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17457 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 ac_cpp='$CXXCPP $CPPFLAGS'
17463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17477 float f; std::isinf(f);
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_compile") 2>conftest.er1
17491 grep -v '^ *+' conftest.er1 >conftest.err
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest.$ac_objext'
17507 { (case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_try") 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_cv_func_std_isinf_in_cmath=yes
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 ac_cv_func_std_isinf_in_cmath=no
17524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17526 ac_cpp='$CPP $CPPFLAGS'
17527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17533 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17534 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17536 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17538 cat >>confdefs.h <<\_ACEOF
17539 #define HAVE_STD_ISINF_IN_CMATH 1
17545 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17546 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17547 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17552 ac_cpp='$CXXCPP $CPPFLAGS'
17553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17557 cat >conftest.$ac_ext <<_ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17563 #include <ieeefp.h>
17567 float f; finite(f);
17572 rm -f conftest.$ac_objext
17573 if { (ac_try="$ac_compile"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_compile") 2>conftest.er1
17581 grep -v '^ *+' conftest.er1 >conftest.err
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17587 { (case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_try") 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; } &&
17596 { ac_try='test -s conftest.$ac_objext'
17597 { (case "(($ac_try" in
17598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602 (eval "$ac_try") 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 ac_cv_func_finite_in_ieeefp_h=yes
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ac_cv_func_finite_in_ieeefp_h=no
17614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616 ac_cpp='$CPP $CPPFLAGS'
17617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17623 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17624 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17626 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17628 cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_FINITE_IN_IEEEFP_H 1
17636 if test "$llvm_cv_platform_type" = "Unix" ; then
17639 for ac_header in stdlib.h unistd.h
17641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 ac_res=`eval echo '${'$as_ac_Header'}'`
17649 { echo "$as_me:$LINENO: result: $ac_res" >&5
17650 echo "${ECHO_T}$ac_res" >&6; }
17652 # Is the header compilable?
17653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17655 cat >conftest.$ac_ext <<_ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 $ac_includes_default
17662 #include <$ac_header>
17664 rm -f conftest.$ac_objext
17665 if { (ac_try="$ac_compile"
17666 case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_compile") 2>conftest.er1
17673 grep -v '^ *+' conftest.er1 >conftest.err
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
17678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17679 { (case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_try") 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; } &&
17688 { ac_try='test -s conftest.$ac_objext'
17689 { (case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_try") 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 ac_header_compiler=yes
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 ac_header_compiler=no
17706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17708 echo "${ECHO_T}$ac_header_compiler" >&6; }
17710 # Is the header present?
17711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17713 cat >conftest.$ac_ext <<_ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17719 #include <$ac_header>
17721 if { (ac_try="$ac_cpp conftest.$ac_ext"
17722 case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17729 grep -v '^ *+' conftest.er1 >conftest.err
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } >/dev/null; then
17734 if test -s conftest.err; then
17735 ac_cpp_err=$ac_c_preproc_warn_flag
17736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17743 if test -z "$ac_cpp_err"; then
17744 ac_header_preproc=yes
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 ac_header_preproc=no
17752 rm -f conftest.err conftest.$ac_ext
17753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17754 echo "${ECHO_T}$ac_header_preproc" >&6; }
17756 # So? What about this header?
17757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17763 ac_header_preproc=yes
17766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17779 ## ------------------------------------ ##
17780 ## Report this to http://llvm.org/bugs/ ##
17781 ## ------------------------------------ ##
17783 ) | sed "s/^/$as_me: WARNING: /" >&2
17786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 eval "$as_ac_Header=\$ac_header_preproc"
17793 ac_res=`eval echo '${'$as_ac_Header'}'`
17794 { echo "$as_me:$LINENO: result: $ac_res" >&5
17795 echo "${ECHO_T}$ac_res" >&6; }
17798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17799 cat >>confdefs.h <<_ACEOF
17800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17808 for ac_func in getpagesize
17810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 cat >conftest.$ac_ext <<_ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17824 #define $ac_func innocuous_$ac_func
17826 /* System header to define __stub macros and hopefully few prototypes,
17827 which can conflict with char $ac_func (); below.
17828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17829 <limits.h> exists even on freestanding compilers. */
17832 # include <limits.h>
17834 # include <assert.h>
17839 /* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17846 /* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849 #if defined __stub_$ac_func || defined __stub___$ac_func
17856 return $ac_func ();
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (ac_try="$ac_link"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>conftest.er1
17870 grep -v '^ *+' conftest.er1 >conftest.err
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17876 { (case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_try") 2>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest$ac_exeext'
17886 { (case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_try") 2>&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; }; then
17895 eval "$as_ac_var=yes"
17897 echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17900 eval "$as_ac_var=no"
17903 rm -f core conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17906 ac_res=`eval echo '${'$as_ac_var'}'`
17907 { echo "$as_me:$LINENO: result: $ac_res" >&5
17908 echo "${ECHO_T}$ac_res" >&6; }
17909 if test `eval echo '${'$as_ac_var'}'` = yes; then
17910 cat >>confdefs.h <<_ACEOF
17911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17917 { echo "$as_me:$LINENO: checking for working mmap" >&5
17918 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17919 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 if test "$cross_compiling" = yes; then
17923 ac_cv_func_mmap_fixed_mapped=no
17925 cat >conftest.$ac_ext <<_ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17931 $ac_includes_default
17932 /* malloc might have been renamed as rpl_malloc. */
17935 /* Thanks to Mike Haertel and Jim Avera for this test.
17936 Here is a matrix of mmap possibilities:
17937 mmap private not fixed
17938 mmap private fixed at somewhere currently unmapped
17939 mmap private fixed at somewhere already mapped
17940 mmap shared not fixed
17941 mmap shared fixed at somewhere currently unmapped
17942 mmap shared fixed at somewhere already mapped
17943 For private mappings, we should verify that changes cannot be read()
17944 back from the file, nor mmap's back from the file at a different
17945 address. (There have been systems where private was not correctly
17946 implemented like the infamous i386 svr4.0, and systems where the
17947 VM page cache was not coherent with the file system buffer cache
17948 like early versions of FreeBSD and possibly contemporary NetBSD.)
17949 For shared mappings, we should conversely verify that changes get
17950 propagated back to all the places they're supposed to be.
17952 Grep wants private fixed already mapped.
17953 The main things grep needs to know about mmap are:
17954 * does it exist and is it safe to write into the mmap'd area
17955 * how to use it (BSD variants) */
17958 #include <sys/mman.h>
17960 #if !STDC_HEADERS && !HAVE_STDLIB_H
17964 /* This mess was copied from the GNU getpagesize.h. */
17965 #if !HAVE_GETPAGESIZE
17966 /* Assume that all systems that can run configure have sys/param.h. */
17967 # if !HAVE_SYS_PARAM_H
17968 # define HAVE_SYS_PARAM_H 1
17971 # ifdef _SC_PAGESIZE
17972 # define getpagesize() sysconf(_SC_PAGESIZE)
17973 # else /* no _SC_PAGESIZE */
17974 # if HAVE_SYS_PARAM_H
17975 # include <sys/param.h>
17976 # ifdef EXEC_PAGESIZE
17977 # define getpagesize() EXEC_PAGESIZE
17978 # else /* no EXEC_PAGESIZE */
17980 # define getpagesize() NBPG * CLSIZE
17983 # endif /* no CLSIZE */
17984 # else /* no NBPG */
17986 # define getpagesize() NBPC
17987 # else /* no NBPC */
17989 # define getpagesize() PAGESIZE
17990 # endif /* PAGESIZE */
17991 # endif /* no NBPC */
17992 # endif /* no NBPG */
17993 # endif /* no EXEC_PAGESIZE */
17994 # else /* no HAVE_SYS_PARAM_H */
17995 # define getpagesize() 8192 /* punt totally */
17996 # endif /* no HAVE_SYS_PARAM_H */
17997 # endif /* no _SC_PAGESIZE */
17999 #endif /* no HAVE_GETPAGESIZE */
18004 char *data, *data2, *data3;
18008 pagesize = getpagesize ();
18010 /* First, make a file with some known garbage in it. */
18011 data = (char *) malloc (pagesize);
18014 for (i = 0; i < pagesize; ++i)
18015 *(data + i) = rand ();
18017 fd = creat ("conftest.mmap", 0600);
18020 if (write (fd, data, pagesize) != pagesize)
18024 /* Next, try to mmap the file at a fixed address which already has
18025 something else allocated at it. If we can, also make sure that
18026 we see the same garbage. */
18027 fd = open ("conftest.mmap", O_RDWR);
18030 data2 = (char *) malloc (2 * pagesize);
18033 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18034 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18035 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18037 for (i = 0; i < pagesize; ++i)
18038 if (*(data + i) != *(data2 + i))
18041 /* Finally, make sure that changes to the mapped area do not
18042 percolate back to the file as seen by read(). (This is a bug on
18043 some variants of i386 svr4.0.) */
18044 for (i = 0; i < pagesize; ++i)
18045 *(data2 + i) = *(data2 + i) + 1;
18046 data3 = (char *) malloc (pagesize);
18049 if (read (fd, data3, pagesize) != pagesize)
18051 for (i = 0; i < pagesize; ++i)
18052 if (*(data + i) != *(data3 + i))
18058 rm -f conftest$ac_exeext
18059 if { (ac_try="$ac_link"
18060 case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_link") 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18069 { (case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_try") 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 ac_cv_func_mmap_fixed_mapped=yes
18080 echo "$as_me: program exited with status $ac_status" >&5
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 ( exit $ac_status )
18085 ac_cv_func_mmap_fixed_mapped=no
18087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18092 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18093 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18094 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18096 cat >>confdefs.h <<\_ACEOF
18097 #define HAVE_MMAP 1
18101 rm -f conftest.mmap
18103 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18104 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18105 if test "${ac_cv_func_mmap_file+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 ac_cpp='$CPP $CPPFLAGS'
18110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18114 if test "$cross_compiling" = yes; then
18115 ac_cv_func_mmap_file=no
18117 cat >conftest.$ac_ext <<_ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18125 #include <sys/types.h>
18126 #include <sys/mman.h>
18134 fd = creat ("foo",0777);
18135 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18137 return (fd != (int) MAP_FAILED);
18142 rm -f conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_link") 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18153 { (case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_try") 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
18162 ac_cv_func_mmap_file=yes
18164 echo "$as_me: program exited with status $ac_status" >&5
18165 echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18168 ( exit $ac_status )
18169 ac_cv_func_mmap_file=no
18171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18176 ac_cpp='$CPP $CPPFLAGS'
18177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18183 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18184 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18185 if test "$ac_cv_func_mmap_file" = yes; then
18187 cat >>confdefs.h <<\_ACEOF
18188 #define HAVE_MMAP_FILE
18195 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18196 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18197 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 if test "$llvm_cv_os_type" = "Interix" ; then
18201 ac_cv_need_dev_zero_for_mmap=yes
18203 ac_cv_need_dev_zero_for_mmap=no
18207 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18208 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18209 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18211 cat >>confdefs.h <<\_ACEOF
18212 #define NEED_DEV_ZERO_FOR_MMAP 1
18217 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18219 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18220 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18222 if test "$ac_cv_func_mmap_file" = "no"
18224 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18225 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18229 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18230 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18232 ac_cpp='$CXXCPP $CPPFLAGS'
18233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18237 cat >conftest.$ac_ext <<_ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18246 volatile unsigned long val = 1;
18247 __sync_synchronize();
18248 __sync_val_compare_and_swap(&val, 1, 0);
18249 __sync_add_and_fetch(&val, 1);
18250 __sync_sub_and_fetch(&val, 1);
18256 rm -f conftest.$ac_objext conftest$ac_exeext
18257 if { (ac_try="$ac_link"
18258 case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_link") 2>conftest.er1
18265 grep -v '^ *+' conftest.er1 >conftest.err
18267 cat conftest.err >&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } &&
18270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18271 { (case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_try") 2>&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest$ac_exeext'
18281 { (case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_try") 2>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18291 { echo "$as_me:$LINENO: result: yes" >&5
18292 echo "${ECHO_T}yes" >&6; }
18294 cat >>confdefs.h <<\_ACEOF
18295 #define LLVM_HAS_ATOMICS 1
18300 echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18304 { echo "$as_me:$LINENO: result: no" >&5
18305 echo "${ECHO_T}no" >&6; }
18307 cat >>confdefs.h <<\_ACEOF
18308 #define LLVM_HAS_ATOMICS 0
18311 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18312 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18316 rm -f core conftest.err conftest.$ac_objext \
18317 conftest$ac_exeext conftest.$ac_ext
18319 ac_cpp='$CPP $CPPFLAGS'
18320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18326 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18327 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18328 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18329 if test "${llvm_cv_linux_mixed+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18333 ac_cpp='$CPP $CPPFLAGS'
18334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18345 error: Not x86-64 even if uname says so!
18356 rm -f conftest.$ac_objext
18357 if { (ac_try="$ac_compile"
18358 case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_compile") 2>conftest.er1
18365 grep -v '^ *+' conftest.er1 >conftest.err
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
18370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18371 { (case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_try") 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; } &&
18380 { ac_try='test -s conftest.$ac_objext'
18381 { (case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_try") 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 llvm_cv_linux_mixed=no
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 llvm_cv_linux_mixed=yes
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18400 ac_cpp='$CPP $CPPFLAGS'
18401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18407 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18408 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18410 if test "$llvm_cv_linux_mixed" = "yes"; then
18411 llvm_cv_target_arch="x86"
18417 for ac_func in __dso_handle
18419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18433 #define $ac_func innocuous_$ac_func
18435 /* System header to define __stub macros and hopefully few prototypes,
18436 which can conflict with char $ac_func (); below.
18437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18438 <limits.h> exists even on freestanding compilers. */
18441 # include <limits.h>
18443 # include <assert.h>
18448 /* Override any GCC internal prototype to avoid an error.
18449 Use char because int might match the return type of a GCC
18450 builtin and then its argument prototype would still apply. */
18455 /* The GNU C library defines this for functions which it implements
18456 to always fail with ENOSYS. Some functions are actually named
18457 something starting with __ and the normal name is an alias. */
18458 #if defined __stub_$ac_func || defined __stub___$ac_func
18465 return $ac_func ();
18470 rm -f conftest.$ac_objext conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_link") 2>conftest.er1
18479 grep -v '^ *+' conftest.er1 >conftest.err
18481 cat conftest.err >&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } &&
18484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18485 { (case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_try") 2>&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; } &&
18494 { ac_try='test -s conftest$ac_exeext'
18495 { (case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_try") 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 eval "$as_ac_var=yes"
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 eval "$as_ac_var=no"
18512 rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18515 ac_res=`eval echo '${'$as_ac_var'}'`
18516 { echo "$as_me:$LINENO: result: $ac_res" >&5
18517 echo "${ECHO_T}$ac_res" >&6; }
18518 if test `eval echo '${'$as_ac_var'}'` = yes; then
18519 cat >>confdefs.h <<_ACEOF
18520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18527 SHLIBEXT=$llvm_shlib_ext
18530 if test "${prefix}" = "NONE" ; then
18531 prefix="/usr/local"
18533 eval LLVM_PREFIX="${prefix}";
18534 eval LLVM_BINDIR="${prefix}/bin";
18535 eval LLVM_DATADIR="${prefix}/share/llvm";
18536 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18537 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18538 eval LLVM_INCLUDEDIR="${prefix}/include";
18539 eval LLVM_INFODIR="${prefix}/info";
18540 eval LLVM_MANDIR="${prefix}/man";
18541 LLVM_CONFIGTIME=`date`
18552 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18553 LLVM_CONFIGTIME="(timestamp not enabled)"
18557 cat >>confdefs.h <<_ACEOF
18558 #define LLVM_PREFIX "$LLVM_PREFIX"
18562 cat >>confdefs.h <<_ACEOF
18563 #define LLVM_BINDIR "$LLVM_BINDIR"
18567 cat >>confdefs.h <<_ACEOF
18568 #define LLVM_DATADIR "$LLVM_DATADIR"
18572 cat >>confdefs.h <<_ACEOF
18573 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18577 cat >>confdefs.h <<_ACEOF
18578 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18582 cat >>confdefs.h <<_ACEOF
18583 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18587 cat >>confdefs.h <<_ACEOF
18588 #define LLVM_INFODIR "$LLVM_INFODIR"
18592 cat >>confdefs.h <<_ACEOF
18593 #define LLVM_MANDIR "$LLVM_MANDIR"
18597 cat >>confdefs.h <<_ACEOF
18598 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18602 cat >>confdefs.h <<_ACEOF
18603 #define LLVM_HOST_TRIPLE "$host"
18607 cat >>confdefs.h <<_ACEOF
18608 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18612 if test "$BINDINGS_TO_BUILD" = auto ; then
18613 BINDINGS_TO_BUILD=""
18614 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18615 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18618 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18624 binding_prereqs_failed=0
18625 for a_binding in $BINDINGS_TO_BUILD ; do
18626 case "$a_binding" in
18628 if test "x$OCAMLC" = x ; then
18629 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18630 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18631 binding_prereqs_failed=1
18633 if test "x$OCAMLDEP" = x ; then
18634 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18635 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18636 binding_prereqs_failed=1
18638 if test "x$OCAMLOPT" = x ; then
18639 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18640 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18642 if test "x$with_ocaml_libdir" != xauto ; then
18643 OCAML_LIBDIR=$with_ocaml_libdir
18646 ocaml_stdlib="`"$OCAMLC" -where`"
18647 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18649 # ocaml stdlib is beneath our prefix; use stdlib
18650 OCAML_LIBDIR=$ocaml_stdlib
18653 # ocaml stdlib is outside our prefix; use libdir/ocaml
18654 OCAML_LIBDIR=${prefix}/lib/ocaml
18661 if test "$binding_prereqs_failed" = 1 ; then
18662 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18663 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18664 { (exit 1); exit 1; }; }
18667 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18668 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18669 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 ac_cpp='$CXXCPP $CPPFLAGS'
18674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18678 oldcxxflags="$CXXFLAGS"
18679 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18680 cat >conftest.$ac_ext <<_ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18695 rm -f conftest.$ac_objext
18696 if { (ac_try="$ac_compile"
18697 case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_compile") 2>conftest.er1
18704 grep -v '^ *+' conftest.er1 >conftest.err
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18710 { (case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_try") 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest.$ac_objext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 llvm_cv_cxx_visibility_inlines_hidden=yes
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 llvm_cv_cxx_visibility_inlines_hidden=no
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18738 CXXFLAGS="$oldcxxflags"
18740 ac_cpp='$CPP $CPPFLAGS'
18741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18747 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18748 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18749 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18750 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18753 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18758 if test "$llvm_cv_link_use_r" = "yes" ; then
18765 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18766 RDYNAMIC="-rdynamic"
18773 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18780 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18782 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18784 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18786 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18788 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18791 ac_config_files="$ac_config_files Makefile.config"
18794 ac_config_files="$ac_config_files llvm.spec"
18797 ac_config_files="$ac_config_files docs/doxygen.cfg"
18800 if test "${clang_src_root}" = ""; then
18801 clang_src_root="$srcdir/tools/clang"
18803 if test -f ${clang_src_root}/README.txt; then
18804 configh="include/clang/Config/config.h"
18805 doxy="docs/doxygen.cfg"
18806 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18808 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18812 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18815 test "x$program_prefix" = "xNONE" && program_prefix=""
18819 ac_config_commands="$ac_config_commands setup"
18821 ac_config_commands="$ac_config_commands Makefile"
18824 ac_config_commands="$ac_config_commands Makefile.common"
18827 ac_config_commands="$ac_config_commands examples/Makefile"
18830 ac_config_commands="$ac_config_commands lib/Makefile"
18833 ac_config_commands="$ac_config_commands test/Makefile"
18836 ac_config_commands="$ac_config_commands test/Makefile.tests"
18839 ac_config_commands="$ac_config_commands unittests/Makefile"
18842 ac_config_commands="$ac_config_commands tools/Makefile"
18845 ac_config_commands="$ac_config_commands utils/Makefile"
18848 ac_config_commands="$ac_config_commands projects/Makefile"
18851 ac_config_commands="$ac_config_commands bindings/Makefile"
18854 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18858 cat >confcache <<\_ACEOF
18859 # This file is a shell script that caches the results of configure
18860 # tests run on this system so they can be shared between configure
18861 # scripts and configure runs, see configure's option --config-cache.
18862 # It is not useful on other systems. If it contains results you don't
18863 # want to keep, you may remove or edit it.
18865 # config.status only pays attention to the cache file if you give it
18866 # the --recheck option to rerun configure.
18868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18870 # following values.
18874 # The following way of writing the cache mishandles newlines in values,
18875 # but we know of no workaround that is simple, portable, and efficient.
18876 # So, we kill variables containing newlines.
18877 # Ultrix sh set writes to stderr and can't be redirected directly,
18878 # and sets the high bit in the cache file unless we assign to the vars.
18880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18881 eval ac_val=\$$ac_var
18885 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18886 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18889 _ | IFS | as_nl) ;; #(
18890 *) $as_unset $ac_var ;;
18896 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18897 *${as_nl}ac_space=\ *)
18898 # `set' does not quote correctly, so add quotes (double-quote
18899 # substitution turns \\\\ into \\, and sed turns \\ into \).
18902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18905 # `set' quotes correctly as required by POSIX, so do not add quotes.
18906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18915 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18917 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18919 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18920 if test -w "$cache_file"; then
18921 test "x$cache_file" != "x/dev/null" &&
18922 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18923 echo "$as_me: updating cache $cache_file" >&6;}
18924 cat confcache >$cache_file
18926 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18927 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18933 # Let make expand exec_prefix.
18934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18936 DEFS=-DHAVE_CONFIG_H
18940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18941 # 1. Remove the extension, and $U if already installed.
18942 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18943 ac_i=`echo "$ac_i" | sed "$ac_script"`
18944 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18945 # will be set to the directory where LIBOBJS objects are built.
18946 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18947 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18949 LIBOBJS=$ac_libobjs
18951 LTLIBOBJS=$ac_ltlibobjs
18955 : ${CONFIG_STATUS=./config.status}
18956 ac_clean_files_save=$ac_clean_files
18957 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18958 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18959 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18960 cat >$CONFIG_STATUS <<_ACEOF
18962 # Generated by $as_me.
18963 # Run this file to recreate the current configuration.
18964 # Compiler output produced by configure, useful for debugging
18965 # configure, is in config.log if it exists.
18968 ac_cs_recheck=false
18970 SHELL=\${CONFIG_SHELL-$SHELL}
18973 cat >>$CONFIG_STATUS <<\_ACEOF
18974 ## --------------------- ##
18975 ## M4sh Initialization. ##
18976 ## --------------------- ##
18978 # Be Bourne compatible
18979 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18982 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18983 # is contrary to our usage. Disable this feature.
18984 alias -g '${1+"$@"}'='"$@"'
18985 setopt NO_GLOB_SUBST
18987 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18989 BIN_SH=xpg4; export BIN_SH # for Tru64
18990 DUALCASE=1; export DUALCASE # for MKS sh
18994 # Avoid depending upon Character Ranges.
18995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18998 as_cr_digits='0123456789'
18999 as_cr_alnum=$as_cr_Letters$as_cr_digits
19001 # The user is always right.
19002 if test "${PATH_SEPARATOR+set}" != set; then
19003 echo "#! /bin/sh" >conf$$.sh
19004 echo "exit 0" >>conf$$.sh
19006 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19014 # Support unset when possible.
19015 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19023 # We need space, tab and new line, in precisely that order. Quoting is
19024 # there to prevent editors from complaining about space-tab.
19025 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19026 # splitting by setting IFS to empty value.)
19031 # Find who we are. Look in the path if we contain no directory separator.
19033 *[\\/]* ) as_myself=$0 ;;
19034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19035 for as_dir in $PATH
19038 test -z "$as_dir" && as_dir=.
19039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19045 # We did not find ourselves, most probably we were run as `sh COMMAND'
19046 # in which case we are not to be found in the path.
19047 if test "x$as_myself" = x; then
19050 if test ! -f "$as_myself"; then
19051 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19052 { (exit 1); exit 1; }
19055 # Work around bugs in pre-3.0 UWIN ksh.
19056 for as_var in ENV MAIL MAILPATH
19057 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19065 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19066 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19067 LC_TELEPHONE LC_TIME
19069 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19070 eval $as_var=C; export $as_var
19072 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19076 # Required to use basename.
19077 if expr a : '\(a\)' >/dev/null 2>&1 &&
19078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19084 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19085 as_basename=basename
19091 # Name of the executable.
19092 as_me=`$as_basename -- "$0" ||
19093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19094 X"$0" : 'X\(//\)$' \| \
19095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19097 sed '/^.*\/\([^/][^/]*\)\/*$/{
19116 as_lineno_1=$LINENO
19117 as_lineno_2=$LINENO
19118 test "x$as_lineno_1" != "x$as_lineno_2" &&
19119 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19121 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19122 # uniformly replaced by the line number. The first 'sed' inserts a
19123 # line-number line after each line using $LINENO; the second 'sed'
19124 # does the real work. The second script uses 'N' to pair each
19125 # line-number line with the line containing $LINENO, and appends
19126 # trailing '-' during substitution so that $LINENO is not a special
19127 # case at line end.
19128 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19129 # scripts with optimization help from Paolo Bonzini. Blame Lee
19130 # E. McMahon (1931-1989) for sed's syntax. :-)
19142 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19145 ' >$as_me.lineno &&
19146 chmod +x "$as_me.lineno" ||
19147 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19148 { (exit 1); exit 1; }; }
19150 # Don't try to exec as it changes $[0], causing all sort of problems
19151 # (the dirname of $[0] is not the place where we might find the
19152 # original and so on. Autoconf is especially sensitive to this).
19153 . "./$as_me.lineno"
19154 # Exit status is that of the last command.
19159 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19165 ECHO_C= ECHO_N= ECHO_T=
19166 case `echo -n x` in
19168 case `echo 'x\c'` in
19169 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19176 if expr a : '\(a\)' >/dev/null 2>&1 &&
19177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19183 rm -f conf$$ conf$$.exe conf$$.file
19184 if test -d conf$$.dir; then
19185 rm -f conf$$.dir/conf$$.file
19191 if ln -s conf$$.file conf$$ 2>/dev/null; then
19193 # ... but there are two gotchas:
19194 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19195 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19196 # In both cases, we have to default to `cp -p'.
19197 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19199 elif ln conf$$.file conf$$ 2>/dev/null; then
19204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19205 rmdir conf$$.dir 2>/dev/null
19207 if mkdir -p . 2>/dev/null; then
19210 test -d ./-p && rmdir ./-p
19214 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19215 # systems may use methods other than mode bits to determine executability.
19216 cat >conf$$.file <<_ASEOF
19220 chmod +x conf$$.file
19221 if test -x conf$$.file >/dev/null 2>&1; then
19222 as_executable_p="test -x"
19228 # Sed expression to map a string onto a valid CPP name.
19229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19231 # Sed expression to map a string onto a valid variable name.
19232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19237 # Save the log message, to keep $[0] and so on meaningful, and to
19238 # report actual input values of CONFIG_FILES etc. instead of their
19239 # values after options handling.
19241 This file was extended by LLVM $as_me 3.6.0svn, which was
19242 generated by GNU Autoconf 2.60. Invocation command line was
19244 CONFIG_FILES = $CONFIG_FILES
19245 CONFIG_HEADERS = $CONFIG_HEADERS
19246 CONFIG_LINKS = $CONFIG_LINKS
19247 CONFIG_COMMANDS = $CONFIG_COMMANDS
19250 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19255 cat >>$CONFIG_STATUS <<_ACEOF
19256 # Files that config.status was made for.
19257 config_files="$ac_config_files"
19258 config_headers="$ac_config_headers"
19259 config_commands="$ac_config_commands"
19263 cat >>$CONFIG_STATUS <<\_ACEOF
19265 \`$as_me' instantiates files from templates according to the
19266 current configuration.
19268 Usage: $0 [OPTIONS] [FILE]...
19270 -h, --help print this help, then exit
19271 -V, --version print version number, then exit
19272 -q, --quiet do not print progress messages
19273 -d, --debug don't remove temporary files
19274 --recheck update $as_me by reconfiguring in the same conditions
19275 --file=FILE[:TEMPLATE]
19276 instantiate the configuration file FILE
19277 --header=FILE[:TEMPLATE]
19278 instantiate the configuration header FILE
19280 Configuration files:
19283 Configuration headers:
19286 Configuration commands:
19289 Report bugs to <bug-autoconf@gnu.org>."
19292 cat >>$CONFIG_STATUS <<_ACEOF
19294 LLVM config.status 3.6.0svn
19295 configured by $0, generated by GNU Autoconf 2.60,
19296 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19298 Copyright (C) 2006 Free Software Foundation, Inc.
19299 This config.status script is free software; the Free Software Foundation
19300 gives unlimited permission to copy, distribute and modify it."
19307 cat >>$CONFIG_STATUS <<\_ACEOF
19308 # If no file are specified by the user, then we need to provide default
19309 # value. By we need to know if files were specified by the user.
19315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19327 # Handling of the options.
19328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19331 echo "$ac_cs_version"; exit ;;
19332 --debug | --debu | --deb | --de | --d | -d )
19334 --file | --fil | --fi | --f )
19336 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19337 ac_need_defaults=false;;
19338 --header | --heade | --head | --hea )
19340 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19341 ac_need_defaults=false;;
19343 # Conflict between --help and --header
19344 { echo "$as_me: error: ambiguous option: $1
19345 Try \`$0 --help' for more information." >&2
19346 { (exit 1); exit 1; }; };;
19347 --help | --hel | -h )
19348 echo "$ac_cs_usage"; exit ;;
19349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19350 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19353 # This is an error.
19354 -*) { echo "$as_me: error: unrecognized option: $1
19355 Try \`$0 --help' for more information." >&2
19356 { (exit 1); exit 1; }; } ;;
19358 *) ac_config_targets="$ac_config_targets $1"
19359 ac_need_defaults=false ;;
19365 ac_configure_extra_args=
19367 if $ac_cs_silent; then
19369 ac_configure_extra_args="$ac_configure_extra_args --silent"
19373 cat >>$CONFIG_STATUS <<_ACEOF
19374 if \$ac_cs_recheck; then
19375 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19376 CONFIG_SHELL=$SHELL
19377 export CONFIG_SHELL
19378 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19382 cat >>$CONFIG_STATUS <<\_ACEOF
19386 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19387 ## Running $as_me. ##
19393 cat >>$CONFIG_STATUS <<_ACEOF
19397 llvm_src="${srcdir}"
19401 cat >>$CONFIG_STATUS <<\_ACEOF
19403 # Handling of arguments.
19404 for ac_config_target in $ac_config_targets
19406 case $ac_config_target in
19407 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19408 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19409 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19410 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19411 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19412 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19413 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19414 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19415 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19416 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19417 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19418 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19419 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19420 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19421 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19422 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19423 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19424 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19425 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19426 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19427 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19428 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19429 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19430 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19431 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19432 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19434 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19435 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19436 { (exit 1); exit 1; }; };;
19441 # If the user did not use the arguments to specify the items to instantiate,
19442 # then the envvar interface is used. Set only those that are not.
19443 # We use the long form for the default assignment because of an extremely
19444 # bizarre bug on SunOS 4.1.3.
19445 if $ac_need_defaults; then
19446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19451 # Have a temporary directory for convenience. Make it in the build tree
19452 # simply because there is no reason against having it here, and in addition,
19453 # creating and moving files from /tmp can sometimes cause problems.
19454 # Hook for its removal unless debugging.
19455 # Note that there is a small window in which the directory will not be cleaned:
19456 # after its creation but before its name has been assigned to `$tmp'.
19460 trap 'exit_status=$?
19461 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19463 trap '{ (exit 1); exit 1; }' 1 2 13 15
19465 # Create a (secure) tmp directory for tmp files.
19468 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19469 test -n "$tmp" && test -d "$tmp"
19472 tmp=./conf$$-$RANDOM
19473 (umask 077 && mkdir "$tmp")
19476 echo "$me: cannot create a temporary directory in ." >&2
19477 { (exit 1); exit 1; }
19481 # Set up the sed scripts for CONFIG_FILES section.
19484 # No need to generate the scripts if there are no CONFIG_FILES.
19485 # This happens for instance when ./config.status config.h
19486 if test -n "$CONFIG_FILES"; then
19493 for ac_last_try in false false false false false :; do
19494 cat >conf$$subs.sed <<_ACEOF
19495 SHELL!$SHELL$ac_delim
19496 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19497 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19498 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19499 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19500 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19501 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19502 exec_prefix!$exec_prefix$ac_delim
19503 prefix!$prefix$ac_delim
19504 program_transform_name!$program_transform_name$ac_delim
19505 bindir!$bindir$ac_delim
19506 sbindir!$sbindir$ac_delim
19507 libexecdir!$libexecdir$ac_delim
19508 datarootdir!$datarootdir$ac_delim
19509 datadir!$datadir$ac_delim
19510 sysconfdir!$sysconfdir$ac_delim
19511 sharedstatedir!$sharedstatedir$ac_delim
19512 localstatedir!$localstatedir$ac_delim
19513 includedir!$includedir$ac_delim
19514 oldincludedir!$oldincludedir$ac_delim
19515 docdir!$docdir$ac_delim
19516 infodir!$infodir$ac_delim
19517 htmldir!$htmldir$ac_delim
19518 dvidir!$dvidir$ac_delim
19519 pdfdir!$pdfdir$ac_delim
19520 psdir!$psdir$ac_delim
19521 libdir!$libdir$ac_delim
19522 localedir!$localedir$ac_delim
19523 mandir!$mandir$ac_delim
19524 DEFS!$DEFS$ac_delim
19525 ECHO_C!$ECHO_C$ac_delim
19526 ECHO_N!$ECHO_N$ac_delim
19527 ECHO_T!$ECHO_T$ac_delim
19528 LIBS!$LIBS$ac_delim
19529 build_alias!$build_alias$ac_delim
19530 host_alias!$host_alias$ac_delim
19531 target_alias!$target_alias$ac_delim
19532 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19533 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19534 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19535 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19536 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19538 CFLAGS!$CFLAGS$ac_delim
19539 LDFLAGS!$LDFLAGS$ac_delim
19540 CPPFLAGS!$CPPFLAGS$ac_delim
19541 ac_ct_CC!$ac_ct_CC$ac_delim
19542 EXEEXT!$EXEEXT$ac_delim
19543 OBJEXT!$OBJEXT$ac_delim
19545 CXXFLAGS!$CXXFLAGS$ac_delim
19546 ac_ct_CXX!$ac_ct_CXX$ac_delim
19548 subdirs!$subdirs$ac_delim
19549 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19550 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19551 build!$build$ac_delim
19552 build_cpu!$build_cpu$ac_delim
19553 build_vendor!$build_vendor$ac_delim
19554 build_os!$build_os$ac_delim
19555 host!$host$ac_delim
19556 host_cpu!$host_cpu$ac_delim
19557 host_vendor!$host_vendor$ac_delim
19558 host_os!$host_os$ac_delim
19559 target!$target$ac_delim
19560 target_cpu!$target_cpu$ac_delim
19561 target_vendor!$target_vendor$ac_delim
19562 target_os!$target_os$ac_delim
19564 HOST_OS!$HOST_OS$ac_delim
19565 TARGET_OS!$TARGET_OS$ac_delim
19566 LINKALL!$LINKALL$ac_delim
19567 NOLINKALL!$NOLINKALL$ac_delim
19568 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19569 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19570 ARCH!$ARCH$ac_delim
19571 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19572 HOST_ARCH!$HOST_ARCH$ac_delim
19573 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19574 BUILD_CC!$BUILD_CC$ac_delim
19575 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19576 BUILD_CXX!$BUILD_CXX$ac_delim
19577 CVSBUILD!$CVSBUILD$ac_delim
19578 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19579 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19580 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19581 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19582 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19583 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19584 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19585 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19586 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19587 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19588 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19589 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19590 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19591 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19594 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19596 elif $ac_last_try; then
19597 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19598 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19599 { (exit 1); exit 1; }; }
19601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19605 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19606 if test -n "$ac_eof"; then
19607 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19608 ac_eof=`expr $ac_eof + 1`
19611 cat >>$CONFIG_STATUS <<_ACEOF
19612 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19616 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19617 s/^/s,@/; s/!/@,|#_!!_#|/
19620 s/'"$ac_delim"'$/,g/; t
19622 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19623 ' >>$CONFIG_STATUS <conf$$subs.sed
19624 rm -f conf$$subs.sed
19625 cat >>$CONFIG_STATUS <<_ACEOF
19631 for ac_last_try in false false false false false :; do
19632 cat >conf$$subs.sed <<_ACEOF
19633 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19635 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19636 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19637 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19638 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19639 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19640 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19641 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19642 ENABLE_PIC!$ENABLE_PIC$ac_delim
19643 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19644 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19645 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19646 ALL_TARGETS!$ALL_TARGETS$ac_delim
19647 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19648 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19649 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19650 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19651 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19652 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19653 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19654 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19655 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19656 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19657 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19658 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19659 ifGNUmake!$ifGNUmake$ac_delim
19660 LN_S!$LN_S$ac_delim
19664 DATE!$DATE$ac_delim
19665 FIND!$FIND$ac_delim
19666 GREP!$GREP$ac_delim
19667 MKDIR!$MKDIR$ac_delim
19669 RANLIB!$RANLIB$ac_delim
19674 BINPWD!$BINPWD$ac_delim
19676 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19677 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19678 INSTALL_DATA!$INSTALL_DATA$ac_delim
19679 BZIP2!$BZIP2$ac_delim
19681 DOXYGEN!$DOXYGEN$ac_delim
19682 GROFF!$GROFF$ac_delim
19683 GZIPBIN!$GZIPBIN$ac_delim
19684 PDFROFF!$PDFROFF$ac_delim
19686 OCAMLC!$OCAMLC$ac_delim
19687 OCAMLOPT!$OCAMLOPT$ac_delim
19688 OCAMLDEP!$OCAMLDEP$ac_delim
19689 OCAMLDOC!$OCAMLDOC$ac_delim
19691 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19692 EGREP!$EGREP$ac_delim
19693 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19694 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19695 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19696 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19697 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19698 PYTHON!$PYTHON$ac_delim
19699 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19700 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19701 USE_OPROFILE!$USE_OPROFILE$ac_delim
19702 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19703 XML2CONFIG!$XML2CONFIG$ac_delim
19704 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19705 LIBXML2_INC!$LIBXML2_INC$ac_delim
19706 CXXCPP!$CXXCPP$ac_delim
19707 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19708 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19709 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19710 MMAP_FILE!$MMAP_FILE$ac_delim
19711 SHLIBEXT!$SHLIBEXT$ac_delim
19712 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19713 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19714 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19715 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19716 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19717 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19718 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19719 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19720 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19721 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19722 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
19723 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19724 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19725 RPATH!$RPATH$ac_delim
19726 RDYNAMIC!$RDYNAMIC$ac_delim
19727 program_prefix!$program_prefix$ac_delim
19728 LIBOBJS!$LIBOBJS$ac_delim
19729 LTLIBOBJS!$LTLIBOBJS$ac_delim
19732 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19734 elif $ac_last_try; then
19735 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19736 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19737 { (exit 1); exit 1; }; }
19739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19743 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19744 if test -n "$ac_eof"; then
19745 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19746 ac_eof=`expr $ac_eof + 1`
19749 cat >>$CONFIG_STATUS <<_ACEOF
19750 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19754 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19755 s/^/s,@/; s/!/@,|#_!!_#|/
19758 s/'"$ac_delim"'$/,g/; t
19760 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19761 ' >>$CONFIG_STATUS <conf$$subs.sed
19762 rm -f conf$$subs.sed
19763 cat >>$CONFIG_STATUS <<_ACEOF
19768 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19769 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19770 # trailing colons and then remove the whole line if VPATH becomes empty
19771 # (actually we leave an empty line to preserve line numbers).
19772 if test "x$srcdir" = x.; then
19773 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19774 s/:*\$(srcdir):*/:/
19775 s/:*\${srcdir}:*/:/
19777 s/^\([^=]*=[ ]*\):*/\1/
19783 cat >>$CONFIG_STATUS <<\_ACEOF
19784 fi # test -n "$CONFIG_FILES"
19787 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19790 :[FHLC]) ac_mode=$ac_tag; continue;;
19792 case $ac_mode$ac_tag in
19794 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19795 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19796 { (exit 1); exit 1; }; };;
19797 :[FH]-) ac_tag=-:-;;
19798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19815 -) ac_f="$tmp/stdin";;
19816 *) # Look for the file first in the build tree, then in the source tree
19817 # (if the path is not absolute). The absolute path cannot be DOS-style,
19818 # because $ac_f cannot contain `:'.
19822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19824 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19825 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19826 { (exit 1); exit 1; }; };;
19828 ac_file_inputs="$ac_file_inputs $ac_f"
19831 # Let's still pretend it is `configure' which instantiates (i.e., don't
19832 # use $as_me), people would be surprised to read:
19833 # /* config.h. Generated by config.status. */
19834 configure_input="Generated from "`IFS=:
19835 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19836 if test x"$ac_file" != x-; then
19837 configure_input="$ac_file. $configure_input"
19838 { echo "$as_me:$LINENO: creating $ac_file" >&5
19839 echo "$as_me: creating $ac_file" >&6;}
19843 *:-:* | *:-) cat >"$tmp/stdin";;
19848 ac_dir=`$as_dirname -- "$ac_file" ||
19849 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19850 X"$ac_file" : 'X\(//\)[^/]' \| \
19851 X"$ac_file" : 'X\(//\)$' \| \
19852 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19858 /^X\(\/\/\)[^/].*/{
19873 -*) as_dir=./$as_dir;;
19875 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19879 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19880 *) as_qdir=$as_dir;;
19882 as_dirs="'$as_qdir' $as_dirs"
19883 as_dir=`$as_dirname -- "$as_dir" ||
19884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19885 X"$as_dir" : 'X\(//\)[^/]' \| \
19886 X"$as_dir" : 'X\(//\)$' \| \
19887 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19893 /^X\(\/\/\)[^/].*/{
19906 test -d "$as_dir" && break
19908 test -z "$as_dirs" || eval "mkdir $as_dirs"
19909 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19910 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19911 { (exit 1); exit 1; }; }; }
19915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19918 # A ".." for each directory in $ac_dir_suffix.
19919 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19920 case $ac_top_builddir_sub in
19921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19925 ac_abs_top_builddir=$ac_pwd
19926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19927 # for backward compatibility:
19928 ac_top_builddir=$ac_top_build_prefix
19931 .) # We are building in place.
19933 ac_top_srcdir=$ac_top_builddir_sub
19934 ac_abs_top_srcdir=$ac_pwd ;;
19935 [\\/]* | ?:[\\/]* ) # Absolute name.
19936 ac_srcdir=$srcdir$ac_dir_suffix;
19937 ac_top_srcdir=$srcdir
19938 ac_abs_top_srcdir=$srcdir ;;
19939 *) # Relative name.
19940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19941 ac_top_srcdir=$ac_top_build_prefix$srcdir
19942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19959 cat >>$CONFIG_STATUS <<\_ACEOF
19960 # If the template does not know about datarootdir, expand it.
19961 # FIXME: This hack should be removed a few years after 2.60.
19962 ac_datarootdir_hack=; ac_datarootdir_seen=
19964 case `sed -n '/datarootdir/ {
19973 ' $ac_file_inputs` in
19974 *datarootdir*) ac_datarootdir_seen=yes;;
19975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19976 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19977 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19979 cat >>$CONFIG_STATUS <<_ACEOF
19980 ac_datarootdir_hack='
19981 s&@datadir@&$datadir&g
19982 s&@docdir@&$docdir&g
19983 s&@infodir@&$infodir&g
19984 s&@localedir@&$localedir&g
19985 s&@mandir@&$mandir&g
19986 s&\\\${datarootdir}&$datarootdir&g' ;;
19990 # Neutralize VPATH when `$srcdir' = `.'.
19991 # Shell code in configure.ac might set extrasub.
19992 # FIXME: do we really want to maintain this feature?
19993 cat >>$CONFIG_STATUS <<_ACEOF
19997 cat >>$CONFIG_STATUS <<\_ACEOF
19999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20000 s&@configure_input@&$configure_input&;t t
20001 s&@top_builddir@&$ac_top_builddir_sub&;t t
20002 s&@srcdir@&$ac_srcdir&;t t
20003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20004 s&@top_srcdir@&$ac_top_srcdir&;t t
20005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20006 s&@builddir@&$ac_builddir&;t t
20007 s&@abs_builddir@&$ac_abs_builddir&;t t
20008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20009 s&@INSTALL@&$ac_INSTALL&;t t
20010 $ac_datarootdir_hack
20011 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
20013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20014 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20016 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20017 which seems to be undefined. Please make sure it is defined." >&5
20018 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20019 which seems to be undefined. Please make sure it is defined." >&2;}
20023 -) cat "$tmp/out"; rm -f "$tmp/out";;
20024 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20033 # Transform confdefs.h into a sed script `conftest.defines', that
20034 # substitutes the proper values into config.h.in to produce config.h.
20035 rm -f conftest.defines conftest.tail
20036 # First, append a space to every undef/define line, to ease matching.
20037 echo 's/$/ /' >conftest.defines
20038 # Then, protect against being on the right side of a sed subst, or in
20039 # an unquoted here document, in config.status. If some macros were
20040 # called several times there might be several #defines for the same
20041 # symbol, which is useless. But do not sort them, since the last
20042 # AC_DEFINE must be honored.
20043 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20044 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20045 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20046 # PARAMS is the parameter list in the macro definition--in most cases, it's
20047 # just an empty string.
20048 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20049 ac_dB='\\)[ (].*,\\1define\\2'
20057 s/^[ ]*#[ ]*define[ ][ ]*//
20062 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20063 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20064 ' >>conftest.defines
20066 # Remove the space that was appended to ease matching.
20067 # Then replace #undef with comments. This is necessary, for
20068 # example, in the case of _POSIX_SOURCE, which is predefined and required
20069 # on some systems where configure will not decide to define it.
20070 # (The regexp can be short, since the line contains either #define or #undef.)
20072 s,^[ #]*u.*,/* & */,' >>conftest.defines
20074 # Break up conftest.defines:
20075 ac_max_sed_lines=50
20077 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20078 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20079 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20081 ac_in='$ac_file_inputs'
20082 ac_out='"$tmp/out1"'
20083 ac_nxt='"$tmp/out2"'
20087 # Write a here document:
20088 cat >>$CONFIG_STATUS <<_ACEOF
20089 # First, check the format of the line:
20090 cat >"\$tmp/defines.sed" <<\\CEOF
20091 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20092 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20096 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20098 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20099 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20100 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20101 grep . conftest.tail >/dev/null || break
20102 rm -f conftest.defines
20103 mv conftest.tail conftest.defines
20105 rm -f conftest.defines conftest.tail
20107 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20108 cat >>$CONFIG_STATUS <<\_ACEOF
20109 if test x"$ac_file" != x-; then
20110 echo "/* $configure_input */" >"$tmp/config.h"
20111 cat "$ac_result" >>"$tmp/config.h"
20112 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20113 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20114 echo "$as_me: $ac_file is unchanged" >&6;}
20117 mv "$tmp/config.h" $ac_file
20120 echo "/* $configure_input */"
20126 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20127 echo "$as_me: executing $ac_file commands" >&6;}
20132 case $ac_file$ac_mode in
20133 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20134 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20135 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20136 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20137 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20138 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20139 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20140 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20141 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20142 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20143 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20144 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20145 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20146 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20147 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20148 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20149 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20150 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20151 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20152 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20153 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20154 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20155 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20156 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20162 { (exit 0); exit 0; }
20164 chmod +x $CONFIG_STATUS
20165 ac_clean_files=$ac_clean_files_save
20168 # configure is writing to config.log, and then calls config.status.
20169 # config.status does its own redirection, appending to config.log.
20170 # Unfortunately, on DOS this fails, as config.log is still kept open
20171 # by configure, so config.status won't be able to write to it; its
20172 # output is simply discarded. So we exec the FD to /dev/null,
20173 # effectively closing config.log, so it can be properly (re)opened and
20174 # appended to by config.status. When coming back to configure, we
20175 # need to make the FD available again.
20176 if test "$no_create" != yes; then
20178 ac_config_status_args=
20179 test "$silent" = yes &&
20180 ac_config_status_args="$ac_config_status_args --quiet"
20182 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20184 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20185 # would make configure fail if this is the last instruction.
20186 $ac_cs_success || { (exit 1); exit 1; }
20190 # CONFIG_SUBDIRS section.
20192 if test "$no_recursion" != yes; then
20194 # Remove --cache-file and --srcdir arguments so they do not pile up.
20195 ac_sub_configure_args=
20197 eval "set x $ac_configure_args"
20201 if test -n "$ac_prev"; then
20206 -cache-file | --cache-file | --cache-fil | --cache-fi \
20207 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20208 ac_prev=cache_file ;;
20209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20213 --config-cache | -C)
20215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20225 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20227 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20231 # Always prepend --prefix to ensure using the same prefix
20232 # in subdir configurations.
20233 ac_arg="--prefix=$prefix"
20235 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20237 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20240 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20242 # Do not complain, so a configure script can configure whichever
20243 # parts of a large source tree are present.
20244 test -d "$srcdir/$ac_dir" || continue
20246 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20247 echo "$as_me:$LINENO: $ac_msg" >&5
20251 -*) as_dir=./$as_dir;;
20253 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20257 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20258 *) as_qdir=$as_dir;;
20260 as_dirs="'$as_qdir' $as_dirs"
20261 as_dir=`$as_dirname -- "$as_dir" ||
20262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20263 X"$as_dir" : 'X\(//\)[^/]' \| \
20264 X"$as_dir" : 'X\(//\)$' \| \
20265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20271 /^X\(\/\/\)[^/].*/{
20284 test -d "$as_dir" && break
20286 test -z "$as_dirs" || eval "mkdir $as_dirs"
20287 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20288 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20289 { (exit 1); exit 1; }; }; }
20293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20295 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20296 # A ".." for each directory in $ac_dir_suffix.
20297 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20298 case $ac_top_builddir_sub in
20299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20303 ac_abs_top_builddir=$ac_pwd
20304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20305 # for backward compatibility:
20306 ac_top_builddir=$ac_top_build_prefix
20309 .) # We are building in place.
20311 ac_top_srcdir=$ac_top_builddir_sub
20312 ac_abs_top_srcdir=$ac_pwd ;;
20313 [\\/]* | ?:[\\/]* ) # Absolute name.
20314 ac_srcdir=$srcdir$ac_dir_suffix;
20315 ac_top_srcdir=$srcdir
20316 ac_abs_top_srcdir=$srcdir ;;
20317 *) # Relative name.
20318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20319 ac_top_srcdir=$ac_top_build_prefix$srcdir
20320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20327 # Check for guested configure; otherwise get Cygnus style configure.
20328 if test -f "$ac_srcdir/configure.gnu"; then
20329 ac_sub_configure=$ac_srcdir/configure.gnu
20330 elif test -f "$ac_srcdir/configure"; then
20331 ac_sub_configure=$ac_srcdir/configure
20332 elif test -f "$ac_srcdir/configure.in"; then
20333 # This should be Cygnus configure.
20334 ac_sub_configure=$ac_aux_dir/configure
20336 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20337 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20341 # The recursion is here.
20342 if test -n "$ac_sub_configure"; then
20343 # Make the cache file name correct relative to the subdirectory.
20344 case $cache_file in
20345 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20346 *) # Relative name.
20347 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20350 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20351 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20352 # The eval makes quoting arguments work.
20353 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20354 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20355 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20356 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20357 { (exit 1); exit 1; }; }