2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.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-2015 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.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.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
709 enable_external_search
710 enable_server_based_search
712 extra_search_mappings
714 llvm_doxygen_generate_qhp
715 llvm_doxygen_qch_filename
716 llvm_doxygen_qhp_namespace
717 llvm_doxygen_qhelpgenerator_path
718 llvm_doxygen_qhp_cust_filter_name
719 llvm_doxygen_qhp_cust_filter_attrs
720 clang_doxygen_generate_qhp
721 clang_doxygen_qch_filename
722 clang_doxygen_qhp_namespace
723 clang_doxygen_qhelpgenerator_path
724 clang_doxygen_qhp_cust_filter_name
725 clang_doxygen_qhp_cust_filter_attrs
736 LLVM_ENUM_ASM_PRINTERS
737 LLVM_ENUM_ASM_PARSERS
738 LLVM_ENUM_DISASSEMBLERS
776 HAVE_LINK_VERSION_SCRIPT
779 NO_MISSING_FIELD_INITIALIZERS
780 COVERED_SWITCH_DEFAULT
781 NO_MAYBE_UNINITIALIZED
810 ENABLE_VISIBILITY_INLINES_HIDDEN
817 ac_precious_vars='build_alias
828 ac_subdirs_all='projects/test-suite
831 projects/llvm-poolalloc
835 # Initialize some variables set by options.
837 ac_init_version=false
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
847 program_transform_name=s,x,x,
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 # Accept the important Cygnus configure options, so we can diagnose typos.
899 case $ac_dashdash$ac_option in
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
921 cache_file=config.cache ;;
923 -datadir | --datadir | --datadi | --datad)
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
935 -disable-* | --disable-*)
936 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940 { (exit 1); exit 1; }; }
941 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942 eval enable_$ac_feature=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 -enable-* | --enable-*)
955 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959 { (exit 1); exit 1; }; }
960 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961 eval enable_$ac_feature=\$ac_optarg ;;
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
976 -help | --help | --hel | --he | -h)
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 htmldir=$ac_optarg ;;
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1006 -libdir | --libdir | --libdi | --libd)
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1097 -psdir | --psdir | --psdi | --psd | --ps)
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 sbindir=$ac_optarg ;;
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 sharedstatedir=$ac_optarg ;;
1123 -site | --site | --sit)
1125 -site=* | --site=* | --sit=*)
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1152 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid package name: $ac_package" >&2
1156 { (exit 1); exit 1; }; }
1157 ac_package=`echo $ac_package| sed 's/-/_/g'`
1158 eval with_$ac_package=\$ac_optarg ;;
1160 -without-* | --without-*)
1161 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid package name: $ac_package" >&2
1165 { (exit 1); exit 1; }; }
1166 ac_package=`echo $ac_package | sed 's/-/_/g'`
1167 eval with_$ac_package=no ;;
1170 # Obsolete; use --with-x.
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1187 -*) { echo "$as_me: error: unrecognized option: $ac_option
1188 Try \`$0 --help' for more information." >&2
1189 { (exit 1); exit 1; }; }
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1196 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1197 { (exit 1); exit 1; }; }
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1202 # FIXME: should be removed in autoconf 3.0.
1203 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 { echo "$as_me: error: missing argument to $ac_option" >&2
1215 { (exit 1); exit 1; }; }
1218 # Be sure to have absolute directory names.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1224 eval ac_val=\$$ac_var
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1230 { (exit 1); exit 1; }; }
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1238 target=$target_alias
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245 If a cross compiler is detected then cross compile mode will be used." >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254 test "$silent" = yes && exec 6>/dev/null
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 { echo "$as_me: error: Working directory cannot be determined" >&2
1261 { (exit 1); exit 1; }; }
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 { echo "$as_me: error: pwd does not report name of working directory" >&2
1264 { (exit 1); exit 1; }; }
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$0" ||
1272 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$0" : 'X\(//\)[^/]' \| \
1274 X"$0" : 'X\(//\)$' \| \
1275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1299 ac_srcdir_defaulted=no
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1304 { (exit 1); exit 1; }; }
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1309 { (exit 1); exit 1; }; }
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-polly Use polly if available (default is YES)
1409 --enable-libcpp Use libc++ if available (default is NO)
1410 --enable-compiler-version-checks
1411 Check the version of the host compiler (default is
1413 --enable-cxx1y Use c++1y if available (default is NO)
1414 --enable-split-dwarf Use split-dwarf if available (default is NO)
1415 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1416 --enable-clang-plugin-support
1417 Enable plugin support in clang (default is YES)
1418 --enable-clang-static-analyzer
1419 Enable building of clang Static Analyzer (default is
1421 --enable-optimized Compile with optimizations enabled (default is NO)
1422 --enable-profiling Compile with profiling enabled (default is NO)
1423 --enable-assertions Compile with assertion checks enabled (default is
1425 --enable-werror Compile with -Werror enabled (default is NO)
1426 --enable-expensive-checks
1427 Compile with expensive debug checks enabled (default
1429 --enable-abi-breaking-checks
1430 Compile with abi-breaking asserts support (default
1432 --enable-debug-runtime Build runtime libs with debug symbols (default is
1434 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1435 optimization is on and YES if it's off)
1436 --enable-keep-symbols Do not strip installed executables)
1437 --enable-jit Enable Just In Time Compiling (default is YES)
1438 --enable-docs Build documents (default is YES)
1439 --enable-doxygen Build doxygen documentation (default is NO)
1440 --enable-doxygen-search Enable doxygen search support (default is NO)
1441 --enable-doxygen-external-search
1442 Enable doxygen exteranl search (default is NO)
1443 --enable-doxygen-qt-help
1444 Build Qt help files (default is NO)
1445 --enable-threads Use threads if available (default is YES)
1446 --enable-pthreads Use pthreads if available (default is YES)
1447 --enable-zlib Use zlib for compression/decompression if available
1449 --enable-pic Build LLVM with Position Independent Code (default
1451 --enable-shared Build a shared library and link tools against it
1453 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1454 Win32 DLL (default is NO)
1455 --enable-timestamps Enable embedding timestamp information in build
1457 --enable-backtraces Enable embedding backtraces on crash (default is
1459 --enable-crash-overrides
1460 Enable crash handling overrides (default is YES)
1461 --enable-targets Build specific host targets: all or
1462 target1,target2,... Valid targets are: host, x86,
1463 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1464 hexagon, xcore, msp430, nvptx, systemz, r600, and
1466 --enable-experimental-targets
1467 Build experimental host targets: disable or
1468 target1,target2,... (default=disable)
1469 --enable-bindings Build specific language bindings:
1470 all,auto,none,{binding-name} (default=auto)
1471 --enable-terminfo Query the terminfo database if available (default is
1473 --enable-libedit Use libedit if available (default is YES)
1474 --enable-libffi Check for the presence of libffi (default is NO)
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-doxygen-search-engine-url
1480 Specify the external search engine for doxygen
1481 --with-doxygen-search-mappings
1482 Specify the extra search mapping for doxygen
1483 --with-optimize-option Select the compiler options to use for optimized
1485 --with-extra-options Specify additional options to compile LLVM with
1486 --with-extra-ld-options Specify additional options to link LLVM with
1487 --with-ocaml-libdir Specify install location for ocaml bindings (default
1489 --with-clang-srcdir Directory to the out-of-tree Clang source
1490 --with-clang-resource-dir
1491 Relative directory from the Clang binary for
1493 --with-c-include-dirs Colon separated list of directories clang will
1495 --with-gcc-toolchain Directory where gcc is installed.
1496 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1497 --with-binutils-include Specify path to binutils/include/ containing
1498 plugin-api.h file for gold plugin.
1499 --with-bug-report-url Specify the URL where bug reports should be
1500 submitted (default=http://llvm.org/bugs/)
1501 --with-internal-prefix Installation directory for internal files
1502 --with-python path to python
1503 --with-oprofile=<prefix>
1504 Tell OProfile >= 0.9.4 how to symbolize JIT output
1505 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1515 CXX C++ compiler command
1516 CXXFLAGS C++ compiler flags
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1522 Report bugs to <http://llvm.org/bugs/>.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1583 LLVM configure 3.7.0svn
1584 generated by GNU Autoconf 2.60
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1591 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1595 cat >config.log <<_ACEOF
1596 This file contains any messages produced by compilers while
1597 running configure, to aid debugging if configure makes a mistake.
1599 It was created by LLVM $as_me 3.7.0svn, which was
1600 generated by GNU Autoconf 2.60. Invocation command line was
1612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1619 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1621 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1622 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1624 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1625 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1626 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1627 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 test -z "$as_dir" && as_dir=.
1636 echo "PATH: $as_dir"
1652 # Keep a trace of the command line.
1653 # Strip out --no-create and --no-recursion so they do not pile up.
1654 # Strip out --silent because we don't want to record it for future runs.
1655 # Also quote any args containing shell meta-characters.
1656 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_must_keep_next=false
1666 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1668 | -silent | --silent | --silen | --sile | --sil)
1671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1674 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1677 if test $ac_must_keep_next = true; then
1678 ac_must_keep_next=false # Got value, back to normal.
1681 *=* | --config-cache | -C | -disable-* | --disable-* \
1682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1684 | -with-* | --with-* | -without-* | --without-* | --x)
1685 case "$ac_configure_args0 " in
1686 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1689 -* ) ac_must_keep_next=true ;;
1692 ac_configure_args="$ac_configure_args '$ac_arg'"
1697 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1698 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700 # When interrupted or exit'd, cleanup temporary files, and complete
1701 # config.log. We remove comments because anyway the quotes in there
1702 # would cause problems or look ugly.
1703 # WARNING: Use '\'' to represent an apostrophe within the trap.
1704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1705 trap 'exit_status=$?
1706 # Save into config.log some information that might help in debugging.
1711 ## ---------------- ##
1712 ## Cache variables. ##
1713 ## ---------------- ##
1716 # The following way of writing the cache mishandles newlines in values,
1718 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1719 eval ac_val=\$$ac_var
1723 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1727 _ | IFS | as_nl) ;; #(
1728 *) $as_unset $ac_var ;;
1733 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1734 *${as_nl}ac_space=\ *)
1736 "s/'\''/'\''\\\\'\'''\''/g;
1737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748 ## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##
1753 for ac_var in $ac_subst_vars
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1763 if test -n "$ac_subst_files"; then
1765 ## ------------------- ##
1766 ## File substitutions. ##
1767 ## ------------------- ##
1770 for ac_var in $ac_subst_files
1772 eval ac_val=\$$ac_var
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 echo "$ac_var='\''$ac_val'\''"
1781 if test -s confdefs.h; then
1791 test "$ac_signal" != 0 &&
1792 echo "$as_me: caught signal $ac_signal"
1793 echo "$as_me: exit $exit_status"
1795 rm -f core *.core core.conftest.* &&
1796 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1799 for ac_signal in 1 2 13 15; do
1800 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1805 rm -f -r conftest* confdefs.h
1807 # Predefined preprocessor variables.
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 # Let the site file select an alternate cache file if it wants to.
1835 # Prefer explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837 set x "$CONFIG_SITE"
1838 elif test "x$prefix" != xNONE; then
1839 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1841 set x "$ac_default_prefix/share/config.site" \
1842 "$ac_default_prefix/etc/config.site"
1847 if test -r "$ac_site_file"; then
1848 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 echo "$as_me: loading site script $ac_site_file" >&6;}
1850 sed 's/^/| /' "$ac_site_file" >&5
1855 if test -r "$cache_file"; then
1856 # Some versions of bash will fail to source /dev/null (special
1857 # files actually), so we avoid doing that.
1858 if test -f "$cache_file"; then
1859 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 echo "$as_me: loading cache $cache_file" >&6;}
1862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863 *) . "./$cache_file";;
1867 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 echo "$as_me: creating cache $cache_file" >&6;}
1872 # Check that the precious variables saved in the cache have kept the same
1874 ac_cache_corrupted=false
1875 for ac_var in $ac_precious_vars; do
1876 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877 eval ac_new_set=\$ac_env_${ac_var}_set
1878 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879 eval ac_new_val=\$ac_env_${ac_var}_value
1880 case $ac_old_set,$ac_new_set in
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1891 if test "x$ac_old_val" != "x$ac_new_val"; then
1892 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1893 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1894 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1895 echo "$as_me: former value: $ac_old_val" >&2;}
1896 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1897 echo "$as_me: current value: $ac_new_val" >&2;}
1898 ac_cache_corrupted=:
1901 # Pass precious variables to config.status.
1902 if test "$ac_new_set" = set; then
1904 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 *) ac_arg=$ac_var=$ac_new_val ;;
1907 case " $ac_configure_args " in
1908 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1909 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913 if $ac_cache_corrupted; then
1914 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1915 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1916 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1917 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1918 { (exit 1); exit 1; }; }
1946 ac_cpp='$CPP $CPPFLAGS'
1947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 LLVM_VERSION_MAJOR=3
1954 LLVM_VERSION_MINOR=7
1955 LLVM_VERSION_PATCH=0
1956 LLVM_VERSION_SUFFIX=svn
1959 cat >>confdefs.h <<_ACEOF
1960 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1964 cat >>confdefs.h <<_ACEOF
1965 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1969 cat >>confdefs.h <<_ACEOF
1970 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1974 cat >>confdefs.h <<_ACEOF
1975 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1984 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1993 for ac_dir in autoconf "$srcdir"/autoconf; do
1994 if test -f "$ac_dir/install-sh"; then
1996 ac_install_sh="$ac_aux_dir/install-sh -c"
1998 elif test -f "$ac_dir/install.sh"; then
2000 ac_install_sh="$ac_aux_dir/install.sh -c"
2002 elif test -f "$ac_dir/shtool"; then
2004 ac_install_sh="$ac_aux_dir/shtool install -c"
2008 if test -z "$ac_aux_dir"; then
2009 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2010 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2011 { (exit 1); exit 1; }; }
2014 # These three variables are undocumented and unsupported,
2015 # and are intended to be withdrawn in a future Autoconf release.
2016 # They can cause serious problems if a builder's source tree is in a directory
2017 # whose full name contains unusual characters.
2018 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2019 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2020 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2024 if test ${srcdir} != "." ; then
2025 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2026 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2027 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2028 { (exit 1); exit 1; }; }
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 if test -n "$ac_tool_prefix"; then
2041 for ac_prog in clang gcc
2043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 if test -n "$CC"; then
2072 { echo "$as_me:$LINENO: result: $CC" >&5
2073 echo "${ECHO_T}$CC" >&6; }
2075 { echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6; }
2080 test -n "$CC" && break
2083 if test -z "$CC"; then
2085 for ac_prog in clang gcc
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2104 ac_cv_prog_ac_ct_CC="$ac_prog"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6; }
2119 { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2124 test -n "$ac_ct_CC" && break
2127 if test "x$ac_ct_CC" = x; then
2130 case $cross_compiling:$ac_tool_warned in
2132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2133 whose name does not start with the host triplet. If you think this
2134 configuration is useful to you, please write to autoconf@gnu.org." >&5
2135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2136 whose name does not start with the host triplet. If you think this
2137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2138 ac_tool_warned=yes ;;
2145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&2;}
2149 { (exit 1); exit 1; }; }
2151 # Provide some information about the compiler.
2152 echo "$as_me:$LINENO: checking for C compiler version" >&5
2153 ac_compiler=`set X $ac_compile; echo $2`
2154 { (ac_try="$ac_compiler --version >&5"
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_compiler --version >&5") 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2164 { (ac_try="$ac_compiler -v >&5"
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170 (eval "$ac_compiler -v >&5") 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }
2174 { (ac_try="$ac_compiler -V >&5"
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2180 (eval "$ac_compiler -V >&5") 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }
2185 cat >conftest.$ac_ext <<_ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h. */
2200 ac_clean_files_save=$ac_clean_files
2201 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2202 # Try to create an executable without -o first, disregard a.out.
2203 # It will help us diagnose broken compilers, and finding out an intuition
2205 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2206 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2207 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2209 # List of possible output files, starting from the most likely.
2210 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2211 # only as a last resort. b.out is created by i960 compilers.
2212 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2214 # The IRIX 6 linker writes into existing files which may not be
2215 # executable, retaining their permissions. Remove them first so a
2216 # subsequent execution test works.
2218 for ac_file in $ac_files
2221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2222 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2227 if { (ac_try="$ac_link_default"
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2233 (eval "$ac_link_default") 2>&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; then
2237 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2238 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2239 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2240 # so that the user can short-circuit this test for compilers unknown to
2242 for ac_file in $ac_files
2244 test -f "$ac_file" || continue
2246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2249 # We found the default executable, but exeext='' is most
2253 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2255 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 # We set ac_cv_exeext here because the later test for it is not
2258 # safe: cross compilers may not add the suffix if given an `-o'
2259 # argument, so we may need to know it at that point already.
2260 # Even if this section looks crufty: it has the advantage of
2267 test "$ac_cv_exeext" = no && ac_cv_exeext=
2270 echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2273 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: C compiler cannot create executables
2276 See \`config.log' for more details." >&2;}
2277 { (exit 77); exit 77; }; }
2280 ac_exeext=$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_file" >&5
2282 echo "${ECHO_T}$ac_file" >&6; }
2284 # Check that the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2287 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2288 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2289 # If not cross compiling, check that we can run a simple program.
2290 if test "$cross_compiling" != yes; then
2291 if { ac_try='./$ac_file'
2292 { (case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2297 (eval "$ac_try") 2>&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2303 if test "$cross_compiling" = maybe; then
2306 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&5
2309 echo "$as_me: error: cannot run C compiled programs.
2310 If you meant to cross compile, use \`--host'.
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2316 { echo "$as_me:$LINENO: result: yes" >&5
2317 echo "${ECHO_T}yes" >&6; }
2319 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2320 ac_clean_files=$ac_clean_files_save
2321 # Check that the compiler produces executables we can run. If not, either
2322 # the compiler is broken, or we cross compile.
2323 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2324 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2325 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2326 echo "${ECHO_T}$cross_compiling" >&6; }
2328 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2329 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2330 if { (ac_try="$ac_link"
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336 (eval "$ac_link") 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2341 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2342 # work properly (i.e., refer to `conftest.exe'), while it won't with
2344 for ac_file in conftest.exe conftest conftest.*; do
2345 test -f "$ac_file" || continue
2347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2354 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2355 See \`config.log' for more details." >&5
2356 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2357 See \`config.log' for more details." >&2;}
2358 { (exit 1); exit 1; }; }
2361 rm -f conftest$ac_cv_exeext
2362 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2363 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2365 rm -f conftest.$ac_ext
2366 EXEEXT=$ac_cv_exeext
2368 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2369 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2370 if test "${ac_cv_objext+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 cat >conftest.$ac_ext <<_ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2388 rm -f conftest.o conftest.obj
2389 if { (ac_try="$ac_compile"
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compile") 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 for ac_file in conftest.o conftest.obj conftest.*; do
2400 test -f "$ac_file" || continue;
2402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2411 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2414 See \`config.log' for more details." >&2;}
2415 { (exit 1); exit 1; }; }
2418 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2420 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2421 echo "${ECHO_T}$ac_cv_objext" >&6; }
2422 OBJEXT=$ac_cv_objext
2424 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2425 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2426 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 cat >conftest.$ac_ext <<_ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2447 rm -f conftest.$ac_objext
2448 if { (ac_try="$ac_compile"
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compile") 2>conftest.er1
2456 grep -v '^ *+' conftest.er1 >conftest.err
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2493 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2494 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2495 GCC=`test $ac_compiler_gnu = yes && echo yes`
2496 ac_test_CFLAGS=${CFLAGS+set}
2497 ac_save_CFLAGS=$CFLAGS
2498 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2499 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_cc_g+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 ac_save_c_werror_flag=$ac_c_werror_flag
2504 ac_c_werror_flag=yes
2507 cat >conftest.$ac_ext <<_ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2522 rm -f conftest.$ac_objext
2523 if { (ac_try="$ac_compile"
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_compile") 2>conftest.er1
2531 grep -v '^ *+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; } &&
2546 { ac_try='test -s conftest.$ac_objext'
2547 { (case "(($ac_try" in
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_try") 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_try") 2>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2616 ac_c_werror_flag=$ac_save_c_werror_flag
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2633 rm -f conftest.$ac_objext
2634 if { (ac_try="$ac_compile"
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640 (eval "$ac_compile") 2>conftest.er1
2642 grep -v '^ *+' conftest.er1 >conftest.err
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2648 { (case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_try") 2>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_try") 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 ac_c_werror_flag=$ac_save_c_werror_flag
2684 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2685 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2686 if test "$ac_test_CFLAGS" = set; then
2687 CFLAGS=$ac_save_CFLAGS
2688 elif test $ac_cv_prog_cc_g = yes; then
2689 if test "$GCC" = yes; then
2695 if test "$GCC" = yes; then
2701 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2702 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_cc_c89+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 ac_cv_prog_cc_c89=no
2708 cat >conftest.$ac_ext <<_ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2716 #include <sys/types.h>
2717 #include <sys/stat.h>
2718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2719 struct buf { int x; };
2720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2721 static char *e (p, i)
2727 static char *f (char * (*g) (char **, int), char **p, ...)
2732 s = g (p, va_arg (v,int));
2737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2738 function prototypes and stuff, but not '\xHH' hex character constants.
2739 These don't provoke an error unfortunately, instead are silently treated
2740 as 'x'. The following induces an error, until -std is added to get
2741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2742 array size at least. It's necessary to write '\x00'==0 to get something
2743 that's true only with -std. */
2744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2746 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2747 inside strings and character constants. */
2749 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2751 int test (int i, double x);
2752 struct s1 {int (*f) (int a);};
2753 struct s2 {int (*f) (double a);};
2754 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2765 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2766 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2768 CC="$ac_save_CC $ac_arg"
2769 rm -f conftest.$ac_objext
2770 if { (ac_try="$ac_compile"
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_compile") 2>conftest.er1
2778 grep -v '^ *+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2784 { (case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_try") 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_try") 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_cv_prog_cc_c89=$ac_arg
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2811 rm -f core conftest.err conftest.$ac_objext
2812 test "x$ac_cv_prog_cc_c89" != "xno" && break
2814 rm -f conftest.$ac_ext
2819 case "x$ac_cv_prog_cc_c89" in
2821 { echo "$as_me:$LINENO: result: none needed" >&5
2822 echo "${ECHO_T}none needed" >&6; } ;;
2824 { echo "$as_me:$LINENO: result: unsupported" >&5
2825 echo "${ECHO_T}unsupported" >&6; } ;;
2827 CC="$CC $ac_cv_prog_cc_c89"
2828 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840 ac_cpp='$CXXCPP $CPPFLAGS'
2841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2844 if test -z "$CXX"; then
2845 if test -n "$CCC"; then
2848 if test -n "$ac_tool_prefix"; then
2849 for ac_prog in clang++ g++
2851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2855 if test "${ac_cv_prog_CXX+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$CXX"; then
2859 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 if test -n "$CXX"; then
2880 { echo "$as_me:$LINENO: result: $CXX" >&5
2881 echo "${ECHO_T}$CXX" >&6; }
2883 { echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6; }
2888 test -n "$CXX" && break
2891 if test -z "$CXX"; then
2893 for ac_prog in clang++ g++
2895 # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy $ac_prog; ac_word=$2
2897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2899 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -n "$ac_ct_CXX"; then
2903 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_ac_ct_CXX="$ac_prog"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2923 if test -n "$ac_ct_CXX"; then
2924 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2925 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2927 { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2932 test -n "$ac_ct_CXX" && break
2935 if test "x$ac_ct_CXX" = x; then
2938 case $cross_compiling:$ac_tool_warned in
2940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2941 whose name does not start with the host triplet. If you think this
2942 configuration is useful to you, please write to autoconf@gnu.org." >&5
2943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2944 whose name does not start with the host triplet. If you think this
2945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2946 ac_tool_warned=yes ;;
2954 # Provide some information about the compiler.
2955 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2956 ac_compiler=`set X $ac_compile; echo $2`
2957 { (ac_try="$ac_compiler --version >&5"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compiler --version >&5") 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }
2967 { (ac_try="$ac_compiler -v >&5"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compiler -v >&5") 2>&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }
2977 { (ac_try="$ac_compiler -V >&5"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compiler -V >&5") 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }
2988 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2989 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2990 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 cat >conftest.$ac_ext <<_ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3057 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3058 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3059 GXX=`test $ac_compiler_gnu = yes && echo yes`
3060 ac_test_CXXFLAGS=${CXXFLAGS+set}
3061 ac_save_CXXFLAGS=$CXXFLAGS
3062 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3063 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_cxx_g+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3068 ac_cxx_werror_flag=yes
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
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_try") 2>&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 ac_cv_prog_cxx_g=yes
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 cat >conftest.$ac_ext <<_ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3206 grep -v '^ *+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 ac_cv_prog_cxx_g=yes
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3250 if test "$ac_test_CXXFLAGS" = set; then
3251 CXXFLAGS=$ac_save_CXXFLAGS
3252 elif test $ac_cv_prog_cxx_g = yes; then
3253 if test "$GXX" = yes; then
3259 if test "$GXX" = yes; then
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3277 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3278 # On Suns, sometimes $CPP names a directory.
3279 if test -n "$CPP" && test -d "$CPP"; then
3282 if test -z "$CPP"; then
3283 if test "${ac_cv_prog_CPP+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 # Double quotes because CPP needs to be expanded
3287 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3290 for ac_c_preproc_warn_flag in '' yes
3292 # Use a header file that comes with gcc, so configuring glibc
3293 # with a fresh cross-compiler works.
3294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3295 # <limits.h> exists even on freestanding compilers.
3296 # On the NeXT, cc -E runs the code through the compiler's parser,
3297 # not just through cpp. "Syntax error" is here to catch this case.
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3305 # include <limits.h>
3307 # include <assert.h>
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null; then
3324 if test -s conftest.err; then
3325 ac_cpp_err=$ac_c_preproc_warn_flag
3326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3333 if test -z "$ac_cpp_err"; then
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 # Broken: fails on valid input.
3343 rm -f conftest.err conftest.$ac_ext
3345 # OK, works on sane cases. Now check whether nonexistent headers
3346 # can be detected and how.
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #include <ac_nonexistent.h>
3355 if { (ac_try="$ac_cpp conftest.$ac_ext"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377 if test -z "$ac_cpp_err"; then
3378 # Broken: success on invalid input.
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 # Passes both tests.
3389 rm -f conftest.err conftest.$ac_ext
3392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3393 rm -f conftest.err conftest.$ac_ext
3394 if $ac_preproc_ok; then
3406 { echo "$as_me:$LINENO: result: $CPP" >&5
3407 echo "${ECHO_T}$CPP" >&6; }
3409 for ac_c_preproc_warn_flag in '' yes
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error" is here to catch this case.
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3424 # include <limits.h>
3426 # include <assert.h>
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null; then
3443 if test -s conftest.err; then
3444 ac_cpp_err=$ac_c_preproc_warn_flag
3445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452 if test -z "$ac_cpp_err"; then
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 # Broken: fails on valid input.
3462 rm -f conftest.err conftest.$ac_ext
3464 # OK, works on sane cases. Now check whether nonexistent headers
3465 # can be detected and how.
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #include <ac_nonexistent.h>
3474 if { (ac_try="$ac_cpp conftest.$ac_ext"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } >/dev/null; then
3487 if test -s conftest.err; then
3488 ac_cpp_err=$ac_c_preproc_warn_flag
3489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3496 if test -z "$ac_cpp_err"; then
3497 # Broken: success on invalid input.
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Passes both tests.
3508 rm -f conftest.err conftest.$ac_ext
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3516 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details." >&5
3518 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3519 See \`config.log' for more details." >&2;}
3520 { (exit 1); exit 1; }; }
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 if test "$CXX" = "clang++" ; then
3531 { echo "$as_me:$LINENO: checking whether clang works" >&5
3532 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3534 ac_cpp='$CXXCPP $CPPFLAGS'
3535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3547 #if __has_include (<cxxabi.h>)
3550 #if __has_include (<unwind.h>)
3562 rm -f conftest.$ac_objext
3563 if { (ac_try="$ac_compile"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compile") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3577 { (case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_try") 2>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_try") 2>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3597 { echo "$as_me:$LINENO: result: yes" >&5
3598 echo "${ECHO_T}yes" >&6; }
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3605 { echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6; }
3607 { { 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
3608 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;}
3609 { (exit 1); exit 1; }; }
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3623 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3625 ac_cpp='$CXXCPP $CPPFLAGS'
3626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3630 llvm_cv_cxx_compiler=unknown
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3642 rm -f conftest.$ac_objext
3643 if { (ac_try="$ac_compile"
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_compile") 2>conftest.er1
3651 grep -v '^ *+' conftest.er1 >conftest.err
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } &&
3656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3657 { (case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_try") 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_try") 2>&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 llvm_cv_cxx_compiler=clang
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_compile") 2>conftest.er1
3701 grep -v '^ *+' conftest.er1 >conftest.err
3703 cat conftest.err >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3707 { (case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712 (eval "$ac_try") 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_try") 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 llvm_cv_cxx_compiler=gcc
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3745 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3749 if test -d ${srcdir}/projects/test-suite ; then
3750 subdirs="$subdirs projects/test-suite"
3754 if test -d ${srcdir}/projects/llvm-test ; then
3755 subdirs="$subdirs projects/llvm-test"
3759 if test -d ${srcdir}/projects/poolalloc ; then
3760 subdirs="$subdirs projects/poolalloc"
3764 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3765 subdirs="$subdirs projects/llvm-poolalloc"
3769 for i in `ls ${srcdir}/projects`
3771 if test -d ${srcdir}/projects/${i} ; then
3773 safecode) subdirs="$subdirs projects/safecode"
3781 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3782 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3788 # Check whether --enable-polly was given.
3789 if test "${enable_polly+set}" = set; then
3790 enableval=$enable_polly;
3795 case "$enableval" in
3800 default) ENABLE_POLLY=1
3802 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3803 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3804 { (exit 1); exit 1; }; } ;;
3808 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3811 subdirs="$subdirs tools/polly"
3816 # Make sure we can run config.sub.
3817 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3818 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3819 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3820 { (exit 1); exit 1; }; }
3822 { echo "$as_me:$LINENO: checking build system type" >&5
3823 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3824 if test "${ac_cv_build+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_build_alias=$build_alias
3828 test "x$ac_build_alias" = x &&
3829 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3830 test "x$ac_build_alias" = x &&
3831 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3832 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3833 { (exit 1); exit 1; }; }
3834 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3835 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3836 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3837 { (exit 1); exit 1; }; }
3840 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3841 echo "${ECHO_T}$ac_cv_build" >&6; }
3842 case $ac_cv_build in
3844 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3845 echo "$as_me: error: invalid value of canonical build" >&2;}
3846 { (exit 1); exit 1; }; };;
3849 ac_save_IFS=$IFS; IFS='-'
3855 # Remember, the first character of IFS is used to create $*,
3856 # except with old shells:
3859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3862 { echo "$as_me:$LINENO: checking host system type" >&5
3863 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3864 if test "${ac_cv_host+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 if test "x$host_alias" = x; then
3868 ac_cv_host=$ac_cv_build
3870 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3871 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3872 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3873 { (exit 1); exit 1; }; }
3877 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3878 echo "${ECHO_T}$ac_cv_host" >&6; }
3881 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3882 echo "$as_me: error: invalid value of canonical host" >&2;}
3883 { (exit 1); exit 1; }; };;
3886 ac_save_IFS=$IFS; IFS='-'
3892 # Remember, the first character of IFS is used to create $*,
3893 # except with old shells:
3896 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3899 { echo "$as_me:$LINENO: checking target system type" >&5
3900 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3901 if test "${ac_cv_target+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 if test "x$target_alias" = x; then
3905 ac_cv_target=$ac_cv_host
3907 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3908 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3909 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3910 { (exit 1); exit 1; }; }
3914 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3915 echo "${ECHO_T}$ac_cv_target" >&6; }
3916 case $ac_cv_target in
3918 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3919 echo "$as_me: error: invalid value of canonical target" >&2;}
3920 { (exit 1); exit 1; }; };;
3922 target=$ac_cv_target
3923 ac_save_IFS=$IFS; IFS='-'
3929 # Remember, the first character of IFS is used to create $*,
3930 # except with old shells:
3933 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3936 # The aliases save the names the user supplied, while $host etc.
3937 # will get canonicalized.
3938 test -n "$target_alias" &&
3939 test "$program_prefix$program_suffix$program_transform_name" = \
3941 program_prefix=${target_alias}-
3943 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3944 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3945 if test "${llvm_cv_os_type+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 llvm_cv_link_all_option="-Wl,--whole-archive"
3951 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952 llvm_cv_os_type="AIX"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="IRIX"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="Cygwin"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,-all_load"
3966 llvm_cv_no_link_all_option="-Wl,-noall_load"
3967 llvm_cv_os_type="Darwin"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,-all_load"
3971 llvm_cv_no_link_all_option="-Wl,-noall_load"
3972 llvm_cv_os_type="Minix"
3973 llvm_cv_platform_type="Unix" ;;
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="FreeBSD"
3978 llvm_cv_platform_type="Unix" ;;
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="GNU/kFreeBSD"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="OpenBSD"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="NetBSD"
3993 llvm_cv_platform_type="Unix" ;;
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="DragonFly"
3998 llvm_cv_platform_type="Unix" ;;
4000 llvm_cv_link_all_option="-Wl,--whole-archive"
4001 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002 llvm_cv_os_type="Bitrig"
4003 llvm_cv_platform_type="Unix" ;;
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="HP-UX"
4008 llvm_cv_platform_type="Unix" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Interix"
4013 llvm_cv_platform_type="Unix" ;;
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="Linux"
4018 llvm_cv_platform_type="Unix" ;;
4020 llvm_cv_link_all_option="-Wl,--whole-archive"
4021 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022 llvm_cv_os_type="GNU"
4023 llvm_cv_platform_type="Unix" ;;
4025 llvm_cv_link_all_option="-Wl,-z,allextract"
4026 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4027 llvm_cv_os_type="SunOS"
4028 llvm_cv_platform_type="Unix" ;;
4030 llvm_cv_link_all_option="-Wl,--whole-archive"
4031 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032 llvm_cv_os_type="Win32"
4033 llvm_cv_platform_type="Win32" ;;
4035 llvm_cv_link_all_option="-Wl,--whole-archive"
4036 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4037 llvm_cv_os_type="MingW"
4038 llvm_cv_platform_type="Win32" ;;
4040 llvm_cv_link_all_option="-Wl,--whole-archive"
4041 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4042 llvm_cv_os_type="Haiku"
4043 llvm_cv_platform_type="Unix" ;;
4045 llvm_cv_link_all_option="-Wl,--whole-archive"
4046 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4047 llvm_cv_os_type="Freestanding"
4048 llvm_cv_platform_type="Unix" ;;
4050 llvm_cv_link_all_option="-Wl,--whole-archive"
4051 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4052 llvm_cv_os_type="Freestanding"
4053 llvm_cv_platform_type="Unix" ;;
4055 llvm_cv_link_all_option=""
4056 llvm_cv_no_link_all_option=""
4057 llvm_cv_os_type="Unknown"
4058 llvm_cv_platform_type="Unknown" ;;
4061 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4062 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4064 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4065 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4066 if test "${llvm_cv_target_os_type+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 llvm_cv_target_os_type="AIX" ;;
4073 llvm_cv_target_os_type="IRIX" ;;
4075 llvm_cv_target_os_type="Cygwin" ;;
4077 llvm_cv_target_os_type="Darwin" ;;
4079 llvm_cv_target_os_type="Minix" ;;
4081 llvm_cv_target_os_type="FreeBSD" ;;
4083 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4085 llvm_cv_target_os_type="OpenBSD" ;;
4087 llvm_cv_target_os_type="NetBSD" ;;
4089 llvm_cv_target_os_type="DragonFly" ;;
4091 llvm_cv_target_os_type="Bitrig" ;;
4093 llvm_cv_target_os_type="HP-UX" ;;
4095 llvm_cv_target_os_type="Interix" ;;
4097 llvm_cv_target_os_type="Linux" ;;
4099 llvm_cv_target_os_type="GNU" ;;
4101 llvm_cv_target_os_type="SunOS" ;;
4103 llvm_cv_target_os_type="Win32" ;;
4105 llvm_cv_target_os_type="MingW" ;;
4107 llvm_cv_target_os_type="Haiku" ;;
4109 llvm_cv_target_os_type="RTEMS" ;;
4111 llvm_cv_target_os_type="NativeClient" ;;
4113 llvm_cv_target_os_type="Freestanding" ;;
4115 llvm_cv_target_os_type="PS4" ;;
4117 llvm_cv_target_os_type="Unknown" ;;
4120 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4121 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4123 if test "$llvm_cv_os_type" = "Unknown" ; then
4124 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4125 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4126 { (exit 1); exit 1; }; }
4131 HOST_OS=$llvm_cv_os_type
4133 TARGET_OS=$llvm_cv_target_os_type
4136 LINKALL=$llvm_cv_link_all_option
4138 NOLINKALL=$llvm_cv_no_link_all_option
4141 case $llvm_cv_platform_type in
4144 cat >>confdefs.h <<\_ACEOF
4145 #define LLVM_ON_UNIX 1
4155 cat >>confdefs.h <<\_ACEOF
4156 #define LLVM_ON_WIN32 1
4166 { echo "$as_me:$LINENO: checking target architecture" >&5
4167 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4168 if test "${llvm_cv_target_arch+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 i?86-*) llvm_cv_target_arch="x86" ;;
4173 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4174 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4175 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4176 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4177 arm*-*) llvm_cv_target_arch="ARM" ;;
4178 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4179 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4180 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4181 xcore-*) llvm_cv_target_arch="XCore" ;;
4182 msp430-*) llvm_cv_target_arch="MSP430" ;;
4183 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4184 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4185 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4186 *) llvm_cv_target_arch="Unknown" ;;
4189 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4190 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4192 if test "$llvm_cv_target_arch" = "Unknown" ; then
4193 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4194 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4197 case "$llvm_cv_target_arch" in
4198 x86) LLVM_NATIVE_ARCH="X86" ;;
4199 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4200 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4203 ARCH=$llvm_cv_target_arch
4205 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4209 i?86-*) host_arch="x86" ;;
4210 amd64-* | x86_64-*) host_arch="x86_64" ;;
4211 sparc*-*) host_arch="Sparc" ;;
4212 powerpc*-*) host_arch="PowerPC" ;;
4213 arm64*-*) host_arch="AArch64" ;;
4214 arm*-*) host_arch="ARM" ;;
4215 aarch64*-*) host_arch="AArch64" ;;
4216 mips-* | mips64-*) host_arch="Mips" ;;
4217 mipsel-* | mips64el-*) host_arch="Mips" ;;
4218 xcore-*) host_arch="XCore" ;;
4219 msp430-*) host_arch="MSP430" ;;
4220 hexagon-*) host_arch="Hexagon" ;;
4221 s390x-*) host_arch="SystemZ" ;;
4222 *) host_arch="Unknown" ;;
4225 if test "$host_arch" = "Unknown" ; then
4226 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4227 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4230 HOST_ARCH=$host_arch
4233 if test "$cross_compiling" = yes; then
4234 LLVM_CROSS_COMPILING=1
4237 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4238 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4239 if test "${ac_cv_build_exeext+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4243 ac_cv_build_exeext=.exe
4245 ac_build_prefix=${build_alias}-
4247 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4248 set dummy ${ac_build_prefix}gcc; ac_word=$2
4249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4251 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$BUILD_CC"; then
4255 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 BUILD_CC=$ac_cv_prog_BUILD_CC
4275 if test -n "$BUILD_CC"; then
4276 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4277 echo "${ECHO_T}$BUILD_CC" >&6; }
4279 { echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6; }
4284 if test -z "$BUILD_CC"; then
4285 # Extract the first word of "gcc", so it can be a program name with args.
4286 set dummy gcc; ac_word=$2
4287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4289 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 if test -n "$BUILD_CC"; then
4293 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_BUILD_CC="gcc"
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 BUILD_CC=$ac_cv_prog_BUILD_CC
4313 if test -n "$BUILD_CC"; then
4314 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4315 echo "${ECHO_T}$BUILD_CC" >&6; }
4317 { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4322 if test -z "$BUILD_CC"; then
4323 # Extract the first word of "cc", so it can be a program name with args.
4324 set dummy cc; ac_word=$2
4325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4327 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 if test -n "$BUILD_CC"; then
4331 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4342 ac_prog_rejected=yes
4345 ac_cv_prog_BUILD_CC="cc"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 if test $ac_prog_rejected = yes; then
4354 # We found a bogon in the path, so make sure we never use it.
4355 set dummy $ac_cv_prog_BUILD_CC
4357 if test $# != 0; then
4358 # We chose a different compiler from the bogus one.
4359 # However, it has the same basename, so the bogon will be chosen
4360 # first if we set BUILD_CC to just the basename; use the full file name.
4362 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4367 BUILD_CC=$ac_cv_prog_BUILD_CC
4368 if test -n "$BUILD_CC"; then
4369 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4370 echo "${ECHO_T}$BUILD_CC" >&6; }
4372 { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4379 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4380 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4381 { (exit 1); exit 1; }; }
4382 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4384 echo 'int main () { return 0; }' > conftest.$ac_ext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4387 (eval $ac_build_link) 2>&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; then
4391 for file in conftest.*; do
4393 *.c | *.o | *.obj | *.dSYM) ;;
4394 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4398 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4399 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4400 { (exit 1); exit 1; }; }
4403 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4408 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4409 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4410 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4411 ac_build_exeext=$BUILD_EXEEXT
4413 ac_build_prefix=${build_alias}-
4414 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4415 set dummy ${ac_build_prefix}g++; ac_word=$2
4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 if test -n "$BUILD_CXX"; then
4422 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4442 if test -n "$BUILD_CXX"; then
4443 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4444 echo "${ECHO_T}$BUILD_CXX" >&6; }
4446 { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4451 if test -z "$BUILD_CXX"; then
4452 # Extract the first word of "g++", so it can be a program name with args.
4453 set dummy g++; ac_word=$2
4454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test -n "$BUILD_CXX"; then
4460 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_BUILD_CXX="g++"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4480 if test -n "$BUILD_CXX"; then
4481 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4482 echo "${ECHO_T}$BUILD_CXX" >&6; }
4484 { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4489 if test -z "$BUILD_CXX"; then
4490 # Extract the first word of "c++", so it can be a program name with args.
4491 set dummy c++; ac_word=$2
4492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 if test -n "$BUILD_CXX"; then
4498 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4509 ac_prog_rejected=yes
4512 ac_cv_prog_BUILD_CXX="c++"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 if test $ac_prog_rejected = yes; then
4521 # We found a bogon in the path, so make sure we never use it.
4522 set dummy $ac_cv_prog_BUILD_CXX
4524 if test $# != 0; then
4525 # We chose a different compiler from the bogus one.
4526 # However, it has the same basename, so the bogon will be chosen
4527 # first if we set BUILD_CXX to just the basename; use the full file name.
4529 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4534 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4535 if test -n "$BUILD_CXX"; then
4536 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4537 echo "${ECHO_T}$BUILD_CXX" >&6; }
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4547 LLVM_CROSS_COMPILING=0
4551 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4562 # Check whether --enable-libcpp was given.
4563 if test "${enable_libcpp+set}" = set; then
4564 enableval=$enable_libcpp;
4569 case "$enableval" in
4570 yes) ENABLE_LIBCPP=1
4574 default) ENABLE_LIBCPP=0
4576 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4577 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4578 { (exit 1); exit 1; }; } ;;
4581 # Check whether --enable-compiler-version-checks was given.
4582 if test "${enable_compiler_version_checks+set}" = set; then
4583 enableval=$enable_compiler_version_checks;
4588 case "$enableval" in
4593 ac_cpp='$CXXCPP $CPPFLAGS'
4594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4598 case "$llvm_cv_cxx_compiler" in
4600 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4601 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4602 cat >conftest.$ac_ext <<_ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4609 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4610 #error This version of Clang is too old to build LLVM
4614 rm -f conftest.$ac_objext
4615 if { (ac_try="$ac_compile"
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621 (eval "$ac_compile") 2>conftest.er1
4623 grep -v '^ *+' conftest.er1 >conftest.err
4625 cat conftest.err >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } &&
4628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4629 { (case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 (eval "$ac_try") 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_try") 2>&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 { echo "$as_me:$LINENO: result: yes" >&5
4649 echo "${ECHO_T}yes" >&6; }
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4656 { { echo "$as_me:$LINENO: error:
4657 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4658 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4659 bypass these sanity checks." >&5
4660 echo "$as_me: error:
4661 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4662 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4663 bypass these sanity checks." >&2;}
4664 { (exit 1); exit 1; }; }
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 if test "$ENABLE_LIBCPP" -eq 0 ; then
4670 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4671 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4672 llvm_cv_old_cxxflags="$CXXFLAGS"
4673 CXXFLAGS="$CXXFLAGS -std=c++0x"
4674 cat >conftest.$ac_ext <<_ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4682 std::atomic<float> x(0.0f);
4683 int main() { return (float)x; }
4686 rm -f conftest.$ac_objext conftest$ac_exeext
4687 if { (ac_try="$ac_link"
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_link") 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4701 { (case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4706 (eval "$ac_try") 2>&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; } &&
4710 { ac_try='test -s conftest$ac_exeext'
4711 { (case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716 (eval "$ac_try") 2>&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 { echo "$as_me:$LINENO: result: yes" >&5
4721 echo "${ECHO_T}yes" >&6; }
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 { { echo "$as_me:$LINENO: error:
4729 We detected a missing feature in the standard C++ library that was known to be
4730 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4731 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4732 than 4.7. You will need to update your system and ensure Clang uses the newer
4735 If this error is incorrect or you need to force things to work, you may pass
4736 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4737 echo "$as_me: error:
4738 We detected a missing feature in the standard C++ library that was known to be
4739 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4740 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4741 than 4.7. You will need to update your system and ensure Clang uses the newer
4744 If this error is incorrect or you need to force things to work, you may pass
4745 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4746 { (exit 1); exit 1; }; }
4749 rm -f core conftest.err conftest.$ac_objext \
4750 conftest$ac_exeext conftest.$ac_ext
4751 CXXFLAGS="$llvm_cv_old_cxxflags"
4755 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4756 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4757 cat >conftest.$ac_ext <<_ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4764 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4765 #error This version of GCC is too old to build LLVM
4769 rm -f conftest.$ac_objext
4770 if { (ac_try="$ac_compile"
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776 (eval "$ac_compile") 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4784 { (case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_try") 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; } &&
4793 { ac_try='test -s conftest.$ac_objext'
4794 { (case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_try") 2>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 { echo "$as_me:$LINENO: result: yes" >&5
4804 echo "${ECHO_T}yes" >&6; }
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 { echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6; }
4811 { { echo "$as_me:$LINENO: error:
4812 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4813 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4814 bypass these sanity checks." >&5
4815 echo "$as_me: error:
4816 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4817 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4818 bypass these sanity checks." >&2;}
4819 { (exit 1); exit 1; }; }
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4836 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4837 { (exit 1); exit 1; }; }
4841 # Check whether --enable-cxx1y was given.
4842 if test "${enable_cxx1y+set}" = set; then
4843 enableval=$enable_cxx1y;
4848 case "$enableval" in
4853 default) ENABLE_CXX1Y=0
4855 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4856 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4860 # Check whether --enable-split-dwarf was given.
4861 if test "${enable_split_dwarf+set}" = set; then
4862 enableval=$enable_split_dwarf;
4867 case "$enableval" in
4868 yes) ENABLE_SPLIT_DWARF=1
4870 no) ENABLE_SPLIT_DWARF=0
4872 default) ENABLE_SPLIT_DWARF=0
4874 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4875 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4876 { (exit 1); exit 1; }; } ;;
4880 # Check whether --enable-clang-arcmt was given.
4881 if test "${enable_clang_arcmt+set}" = set; then
4882 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4887 case "$enableval" in
4888 yes) ENABLE_CLANG_ARCMT=1
4890 no) ENABLE_CLANG_ARCMT=0
4892 default) ENABLE_CLANG_ARCMT=1
4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4899 clang_plugin_support="yes"
4900 # Check whether --enable-clang-plugin-support was given.
4901 if test "${enable_clang_plugin_support+set}" = set; then
4902 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4907 case "$enableval" in
4908 yes) CLANG_PLUGIN_SUPPORT=1
4910 no) CLANG_PLUGIN_SUPPORT=0
4912 default) CLANG_PLUGIN_SUPPORT=1
4914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4919 clang_static_analyzer="yes"
4920 # Check whether --enable-clang-static-analyzer was given.
4921 if test "${enable_clang_static_analyzer+set}" = set; then
4922 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4927 case "$enableval" in
4928 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4931 if test ${clang_arcmt} != "no" ; then
4932 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4933 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4934 { (exit 1); exit 1; }; }
4936 ENABLE_CLANG_STATIC_ANALYZER=0
4939 default) ENABLE_CLANG_STATIC_ANALYZER=1
4941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4942 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4943 { (exit 1); exit 1; }; } ;;
4946 # Check whether --enable-optimized was given.
4947 if test "${enable_optimized+set}" = set; then
4948 enableval=$enable_optimized;
4953 if test ${enableval} = "no" ; then
4957 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4961 # Check whether --enable-profiling was given.
4962 if test "${enable_profiling+set}" = set; then
4963 enableval=$enable_profiling;
4968 if test ${enableval} = "no" ; then
4972 ENABLE_PROFILING=ENABLE_PROFILING=1
4976 # Check whether --enable-assertions was given.
4977 if test "${enable_assertions+set}" = set; then
4978 enableval=$enable_assertions;
4983 if test ${enableval} = "yes" ; then
4986 assertions_enabled="yes"
4988 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4990 assertions_enabled="no"
4993 # Check whether --enable-werror was given.
4994 if test "${enable_werror+set}" = set; then
4995 enableval=$enable_werror;
5000 case "$enableval" in
5001 yes) ENABLE_WERROR=1
5005 default) ENABLE_WERROR=0
5007 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5008 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5009 { (exit 1); exit 1; }; } ;;
5012 # Check whether --enable-expensive-checks was given.
5013 if test "${enable_expensive_checks+set}" = set; then
5014 enableval=$enable_expensive_checks;
5019 if test ${enableval} = "yes" ; then
5020 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5022 EXPENSIVE_CHECKS=yes
5025 ENABLE_EXPENSIVE_CHECKS=
5031 # Check whether --enable-abi-breaking-checks was given.
5032 if test "${enable_abi_breaking_checks+set}" = set; then
5033 enableval=$enable_abi_breaking_checks;
5035 enableval="with-asserts"
5038 case "$enableval" in
5039 with-asserts) if test ${assertions_enabled} = "yes" ; then
5041 cat >>confdefs.h <<\_ACEOF
5042 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5047 cat >>confdefs.h <<\_ACEOF
5048 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5052 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5053 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5054 { (exit 1); exit 1; }; }
5057 # Check whether --enable-debug-runtime was given.
5058 if test "${enable_debug_runtime+set}" = set; then
5059 enableval=$enable_debug_runtime;
5064 if test ${enableval} = "no" ; then
5068 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5072 # Check whether --enable-debug-symbols was given.
5073 if test "${enable_debug_symbols+set}" = set; then
5074 enableval=$enable_debug_symbols;
5079 if test ${enableval} = "no" ; then
5083 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5087 # Check whether --enable-keep-symbols was given.
5088 if test "${enable_keep_symbols+set}" = set; then
5089 enableval=$enable_keep_symbols;
5094 if test ${enableval} = "no" ; then
5098 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5102 # Check whether --enable-jit was given.
5103 if test "${enable_jit+set}" = set; then
5104 enableval=$enable_jit;
5109 if test ${enableval} = "no"
5114 case "$llvm_cv_target_arch" in
5115 x86) TARGET_HAS_JIT=1
5117 Sparc) TARGET_HAS_JIT=0
5119 PowerPC) TARGET_HAS_JIT=1
5121 x86_64) TARGET_HAS_JIT=1
5123 ARM) TARGET_HAS_JIT=1
5125 Mips) TARGET_HAS_JIT=1
5127 XCore) TARGET_HAS_JIT=0
5129 MSP430) TARGET_HAS_JIT=0
5131 Hexagon) TARGET_HAS_JIT=0
5133 NVPTX) TARGET_HAS_JIT=0
5135 SystemZ) TARGET_HAS_JIT=1
5142 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5143 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5146 # Check whether --enable-docs was given.
5147 if test "${enable_docs+set}" = set; then
5148 enableval=$enable_docs;
5153 case "$enableval" in
5158 default) ENABLE_DOCS=1
5160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5162 { (exit 1); exit 1; }; } ;;
5165 # Check whether --enable-doxygen was given.
5166 if test "${enable_doxygen+set}" = set; then
5167 enableval=$enable_doxygen;
5172 case "$enableval" in
5173 yes) ENABLE_DOXYGEN=1
5175 no|default) ENABLE_DOXYGEN=0
5177 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5178 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5179 { (exit 1); exit 1; }; } ;;
5182 # Check whether --enable-doxygen-search was given.
5183 if test "${enable_doxygen_search+set}" = set; then
5184 enableval=$enable_doxygen_search;
5189 ENABLE_DOXYGEN_SEARCH="$enableval"
5191 case "$enableval" in
5193 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5195 { (exit 1); exit 1; }; } ;;
5198 # Check whether --enable-doxygen-external-search was given.
5199 if test "${enable_doxygen_external_search+set}" = set; then
5200 enableval=$enable_doxygen_external_search;
5205 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5207 case "$enableval" in
5209 case "$ENABLE_DOXYGEN_SEARCH" in
5210 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5211 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5212 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5219 { (exit 1); exit 1; }; } ;;
5223 # Check whether --with-doxygen-search-engine-url was given.
5224 if test "${with_doxygen_search_engine_url+set}" = set; then
5225 withval=$with_doxygen_search_engine_url;
5228 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5231 # Check whether --with-doxygen-search-mappings was given.
5232 if test "${with_doxygen_search_mappings+set}" = set; then
5233 withval=$with_doxygen_search_mappings;
5236 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5238 case "$ENABLE_DOXYGEN_SEARCH" in
5240 if test "$ENABLE_DOXYGEN" = "0" ; then
5241 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5242 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5243 { (exit 1); exit 1; }; }
5246 enable_searchengine=YES
5249 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5251 enable_external_search=YES
5253 enable_server_based_search=YES
5255 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5257 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5262 enable_external_search=NO
5264 enable_server_based_search=NO
5273 enable_searchengine=NO
5276 enable_server_based_search=NO
5278 enable_external_search=NO
5284 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; }
5290 # Check whether --enable-doxygen-qt-help was given.
5291 if test "${enable_doxygen_qt_help+set}" = set; then
5292 enableval=$enable_doxygen_qt_help;
5297 case "$enableval" in
5299 if test "$ENABLE_DOXYGEN" = "0" ; then
5300 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5301 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5302 { (exit 1); exit 1; }; }
5305 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5306 set dummy qhelpgenerator; ac_word=$2
5307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5309 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 case $QHELPGENERATOR in
5314 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5324 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5336 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5337 if test -n "$QHELPGENERATOR"; then
5338 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5339 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5341 { echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6; }
5347 llvm_doxygen_generate_qhp=YES
5349 llvm_doxygen_qch_filename=org.llvm.qch
5351 llvm_doxygen_qhp_namespace=org.llvm
5353 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5355 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5357 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5360 clang_doxygen_generate_qhp=YES
5362 clang_doxygen_qch_filename=org.llvm.clang.qch
5364 clang_doxygen_qhp_namespace=org.llvm.clang
5366 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5368 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5370 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5375 llvm_doxygen_generate_qhp=NO
5383 clang_doxygen_generate_qhp=NO
5388 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5390 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5395 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5396 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5397 { (exit 1); exit 1; }; } ;;
5400 # Check whether --enable-threads was given.
5401 if test "${enable_threads+set}" = set; then
5402 enableval=$enable_threads;
5407 case "$enableval" in
5408 yes) LLVM_ENABLE_THREADS=1
5410 no) LLVM_ENABLE_THREADS=0
5412 default) LLVM_ENABLE_THREADS=1
5414 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5415 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5416 { (exit 1); exit 1; }; } ;;
5419 cat >>confdefs.h <<_ACEOF
5420 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5424 # Check whether --enable-pthreads was given.
5425 if test "${enable_pthreads+set}" = set; then
5426 enableval=$enable_pthreads;
5431 case "$enableval" in
5432 yes) ENABLE_PTHREADS=1
5434 no) ENABLE_PTHREADS=0
5436 default) ENABLE_PTHREADS=1
5438 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5439 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5440 { (exit 1); exit 1; }; } ;;
5443 # Check whether --enable-zlib was given.
5444 if test "${enable_zlib+set}" = set; then
5445 enableval=$enable_zlib;
5450 case "$enableval" in
5451 yes) LLVM_ENABLE_ZLIB=1
5453 no) LLVM_ENABLE_ZLIB=0
5455 default) LLVM_ENABLE_ZLIB=1
5457 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5458 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5459 { (exit 1); exit 1; }; } ;;
5462 cat >>confdefs.h <<_ACEOF
5463 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5467 # Check whether --enable-pic was given.
5468 if test "${enable_pic+set}" = set; then
5469 enableval=$enable_pic;
5474 case "$enableval" in
5479 default) ENABLE_PIC=1
5481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5482 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5483 { (exit 1); exit 1; }; } ;;
5486 cat >>confdefs.h <<_ACEOF
5487 #define ENABLE_PIC $ENABLE_PIC
5491 # Check whether --enable-shared was given.
5492 if test "${enable_shared+set}" = set; then
5493 enableval=$enable_shared;
5498 case "$enableval" in
5499 yes) ENABLE_SHARED=1
5503 default) ENABLE_SHARED=0
5505 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5506 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5507 { (exit 1); exit 1; }; } ;;
5510 # Check whether --enable-embed-stdcxx was given.
5511 if test "${enable_embed_stdcxx+set}" = set; then
5512 enableval=$enable_embed_stdcxx;
5517 case "$enableval" in
5518 yes) ENABLE_EMBED_STDCXX=1
5520 no) ENABLE_EMBED_STDCXX=0
5522 default) ENABLE_EMBED_STDCXX=0
5524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5525 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5526 { (exit 1); exit 1; }; } ;;
5529 # Check whether --enable-timestamps was given.
5530 if test "${enable_timestamps+set}" = set; then
5531 enableval=$enable_timestamps;
5536 case "$enableval" in
5537 yes) ENABLE_TIMESTAMPS=1
5539 no) ENABLE_TIMESTAMPS=0
5541 default) ENABLE_TIMESTAMPS=1
5543 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5544 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5545 { (exit 1); exit 1; }; } ;;
5548 cat >>confdefs.h <<_ACEOF
5549 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5553 # Check whether --enable-backtraces was given.
5554 if test "${enable_backtraces+set}" = set; then
5555 enableval=$enable_backtraces; case "$enableval" in
5556 yes) llvm_cv_enable_backtraces="yes" ;;
5557 no) llvm_cv_enable_backtraces="no" ;;
5558 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5559 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5563 llvm_cv_enable_backtraces="yes"
5566 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5568 cat >>confdefs.h <<\_ACEOF
5569 #define ENABLE_BACKTRACES 1
5574 # Check whether --enable-crash-overrides was given.
5575 if test "${enable_crash_overrides+set}" = set; then
5576 enableval=$enable_crash_overrides; case "$enableval" in
5577 yes) llvm_cv_enable_crash_overrides="yes" ;;
5578 no) llvm_cv_enable_crash_overrides="no" ;;
5579 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5581 { (exit 1); exit 1; }; } ;;
5584 llvm_cv_enable_crash_overrides="yes"
5587 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5589 cat >>confdefs.h <<\_ACEOF
5590 #define ENABLE_CRASH_OVERRIDES 1
5595 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5596 ALL_TARGETS=$ALL_TARGETS
5600 # Check whether --enable-targets was given.
5601 if test "${enable_targets+set}" = set; then
5602 enableval=$enable_targets;
5607 if test "$enableval" = host-only ; then
5610 case "$enableval" in
5611 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5612 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5614 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5615 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5616 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5617 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5618 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5619 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5620 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5621 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5622 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5623 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5624 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5625 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5626 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5627 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5628 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5629 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5630 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5631 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5632 host) case "$llvm_cv_target_arch" in
5633 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5634 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5635 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5636 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5637 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5638 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5639 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5640 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5641 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5642 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5643 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5644 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5645 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5646 echo "$as_me: error: Can not set target to build" >&2;}
5647 { (exit 1); exit 1; }; } ;;
5649 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5650 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5651 { (exit 1); exit 1; }; } ;;
5657 # Check whether --enable-experimental-targets was given.
5658 if test "${enable_experimental_targets+set}" = set; then
5659 enableval=$enable_experimental_targets;
5665 if test ${enableval} != "disable"
5667 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5670 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5673 for a_target in $TARGETS_TO_BUILD; do
5674 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5676 cat >>confdefs.h <<_ACEOF
5677 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5680 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5681 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5682 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5683 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5684 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5685 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5687 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5688 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5691 cat >>confdefs.h <<_ACEOF
5692 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5696 cat >>confdefs.h <<_ACEOF
5697 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5701 cat >>confdefs.h <<_ACEOF
5702 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5706 cat >>confdefs.h <<_ACEOF
5707 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5710 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5712 cat >>confdefs.h <<_ACEOF
5713 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5717 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5719 cat >>confdefs.h <<_ACEOF
5720 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5727 LLVM_ENUM_TARGETS=""
5728 LLVM_ENUM_ASM_PRINTERS=""
5729 LLVM_ENUM_ASM_PARSERS=""
5730 LLVM_ENUM_DISASSEMBLERS=""
5731 for target_to_build in $TARGETS_TO_BUILD; do
5732 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5733 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5734 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5736 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5737 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5739 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5740 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5749 # Check whether --with-optimize-option was given.
5750 if test "${with_optimize_option+set}" = set; then
5751 withval=$with_optimize_option;
5756 { echo "$as_me:$LINENO: checking optimization flags" >&5
5757 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5760 case "$llvm_cv_os_type" in
5761 FreeBSD) optimize_option=-O2 ;;
5762 MingW) optimize_option=-O2 ;;
5763 *) optimize_option=-O3 ;;
5765 *) optimize_option="$withval" ;;
5767 OPTIMIZE_OPTION=$optimize_option
5769 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5770 echo "${ECHO_T}$optimize_option" >&6; }
5773 # Check whether --with-extra-options was given.
5774 if test "${with_extra_options+set}" = set; then
5775 withval=$with_extra_options;
5781 default) EXTRA_OPTIONS= ;;
5782 *) EXTRA_OPTIONS=$withval ;;
5784 EXTRA_OPTIONS=$EXTRA_OPTIONS
5788 # Check whether --with-extra-ld-options was given.
5789 if test "${with_extra_ld_options+set}" = set; then
5790 withval=$with_extra_ld_options;
5796 default) EXTRA_LD_OPTIONS= ;;
5797 *) EXTRA_LD_OPTIONS=$withval ;;
5799 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5802 # Check whether --enable-bindings was given.
5803 if test "${enable_bindings+set}" = set; then
5804 enableval=$enable_bindings;
5809 BINDINGS_TO_BUILD=""
5810 case "$enableval" in
5811 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5812 all ) BINDINGS_TO_BUILD="ocaml" ;;
5813 none | no) BINDINGS_TO_BUILD="" ;;
5814 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5815 case "$a_binding" in
5816 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5817 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5818 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5819 { (exit 1); exit 1; }; } ;;
5826 # Check whether --with-ocaml-libdir was given.
5827 if test "${with_ocaml_libdir+set}" = set; then
5828 withval=$with_ocaml_libdir;
5834 auto) with_ocaml_libdir="$withval" ;;
5835 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5836 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5837 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5838 { (exit 1); exit 1; }; } ;;
5842 # Check whether --with-clang-srcdir was given.
5843 if test "${with_clang_srcdir+set}" = set; then
5844 withval=$with_clang_srcdir;
5850 -) clang_src_root="" ;;
5851 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5852 *) clang_src_root="$ac_pwd/$withval" ;;
5854 CLANG_SRC_ROOT=$clang_src_root
5858 # Check whether --with-clang-resource-dir was given.
5859 if test "${with_clang_resource_dir+set}" = set; then
5860 withval=$with_clang_resource_dir;
5866 cat >>confdefs.h <<_ACEOF
5867 #define CLANG_RESOURCE_DIR "$withval"
5872 # Check whether --with-c-include-dirs was given.
5873 if test "${with_c_include_dirs+set}" = set; then
5874 withval=$with_c_include_dirs;
5880 cat >>confdefs.h <<_ACEOF
5881 #define C_INCLUDE_DIRS "$withval"
5885 # Clang normally uses the system c++ headers and libraries. With this option,
5886 # clang will use the ones provided by a gcc installation instead. This option should
5887 # be passed the same value that was used with --prefix when configuring gcc.
5889 # Check whether --with-gcc-toolchain was given.
5890 if test "${with_gcc_toolchain+set}" = set; then
5891 withval=$with_gcc_toolchain;
5897 cat >>confdefs.h <<_ACEOF
5898 #define GCC_INSTALL_PREFIX "$withval"
5903 # Check whether --with-default-sysroot was given.
5904 if test "${with_default_sysroot+set}" = set; then
5905 withval=$with_default_sysroot;
5911 cat >>confdefs.h <<_ACEOF
5912 #define DEFAULT_SYSROOT "$withval"
5917 # Check whether --with-binutils-include was given.
5918 if test "${with_binutils_include+set}" = set; then
5919 withval=$with_binutils_include;
5925 default) WITH_BINUTILS_INCDIR=default ;;
5926 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5927 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5928 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5929 { (exit 1); exit 1; }; } ;;
5931 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5932 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5934 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5935 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5936 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5937 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5938 { (exit 1); exit 1; }; };
5943 # Check whether --with-bug-report-url was given.
5944 if test "${with_bug_report_url+set}" = set; then
5945 withval=$with_bug_report_url;
5947 withval="http://llvm.org/bugs/"
5951 cat >>confdefs.h <<_ACEOF
5952 #define BUG_REPORT_URL "$withval"
5956 # Check whether --enable-terminfo was given.
5957 if test "${enable_terminfo+set}" = set; then
5958 enableval=$enable_terminfo; case "$enableval" in
5959 yes) llvm_cv_enable_terminfo="yes" ;;
5960 no) llvm_cv_enable_terminfo="no" ;;
5961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5962 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5963 { (exit 1); exit 1; }; } ;;
5966 llvm_cv_enable_terminfo="yes"
5969 case "$llvm_cv_enable_terminfo" in
5970 yes) ENABLE_TERMINFO=1
5972 no) ENABLE_TERMINFO=0
5976 # Check whether --enable-libedit was given.
5977 if test "${enable_libedit+set}" = set; then
5978 enableval=$enable_libedit; case "$enableval" in
5979 yes) llvm_cv_enable_libedit="yes" ;;
5980 no) llvm_cv_enable_libedit="no" ;;
5981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5982 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5983 { (exit 1); exit 1; }; } ;;
5986 llvm_cv_enable_libedit="yes"
5990 # Check whether --enable-libffi was given.
5991 if test "${enable_libffi+set}" = set; then
5992 enableval=$enable_libffi; case "$enableval" in
5993 yes) llvm_cv_enable_libffi="yes" ;;
5994 no) llvm_cv_enable_libffi="no" ;;
5995 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5996 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5997 { (exit 1); exit 1; }; } ;;
6000 llvm_cv_enable_libffi=no
6005 # Check whether --with-internal-prefix was given.
6006 if test "${with_internal_prefix+set}" = set; then
6007 withval=$with_internal_prefix;
6012 INTERNAL_PREFIX=$withval
6016 { echo "$as_me:$LINENO: checking for GNU make" >&5
6017 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6018 if test "${llvm_cv_gnu_make_command+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 llvm_cv_gnu_make_command=''
6022 for a in "$MAKE" make gmake gnumake ; do
6023 if test -z "$a" ; then continue ; fi ;
6024 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6026 llvm_cv_gnu_make_command=$a ;
6031 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6032 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6033 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6037 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6038 echo "${ECHO_T}\"Not found\"" >&6; };
6042 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6043 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6045 if test "$LN_S" = "ln -s"; then
6046 { echo "$as_me:$LINENO: result: yes" >&5
6047 echo "${ECHO_T}yes" >&6; }
6049 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6050 echo "${ECHO_T}no, using $LN_S" >&6; }
6053 # Extract the first word of "nm", so it can be a program name with args.
6054 set dummy nm; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_path_NM+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6085 if test -n "$NM"; then
6086 { echo "$as_me:$LINENO: result: $NM" >&5
6087 echo "${ECHO_T}$NM" >&6; }
6089 { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6094 # Extract the first word of "cmp", so it can be a program name with args.
6095 set dummy cmp; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_path_CMP+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6113 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6126 if test -n "$CMP"; then
6127 { echo "$as_me:$LINENO: result: $CMP" >&5
6128 echo "${ECHO_T}$CMP" >&6; }
6130 { echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6; }
6135 # Extract the first word of "cp", so it can be a program name with args.
6136 set dummy cp; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_path_CP+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 ac_cv_path_CP="$CP" # Let the user override the test with a path.
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_path_CP="$as_dir/$ac_word$ac_exec_ext"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6167 if test -n "$CP"; then
6168 { echo "$as_me:$LINENO: result: $CP" >&5
6169 echo "${ECHO_T}$CP" >&6; }
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6176 # Extract the first word of "date", so it can be a program name with args.
6177 set dummy date; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_path_DATE+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6207 DATE=$ac_cv_path_DATE
6208 if test -n "$DATE"; then
6209 { echo "$as_me:$LINENO: result: $DATE" >&5
6210 echo "${ECHO_T}$DATE" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6217 # Extract the first word of "find", so it can be a program name with args.
6218 set dummy find; ac_word=$2
6219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6221 if test "${ac_cv_path_FIND+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6248 FIND=$ac_cv_path_FIND
6249 if test -n "$FIND"; then
6250 { echo "$as_me:$LINENO: result: $FIND" >&5
6251 echo "${ECHO_T}$FIND" >&6; }
6253 { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6258 # Extract the first word of "grep", so it can be a program name with args.
6259 set dummy grep; ac_word=$2
6260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262 if test "${ac_cv_path_GREP+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6277 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6289 GREP=$ac_cv_path_GREP
6290 if test -n "$GREP"; then
6291 { echo "$as_me:$LINENO: result: $GREP" >&5
6292 echo "${ECHO_T}$GREP" >&6; }
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6299 # Extract the first word of "mkdir", so it can be a program name with args.
6300 set dummy mkdir; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_MKDIR+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6330 MKDIR=$ac_cv_path_MKDIR
6331 if test -n "$MKDIR"; then
6332 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6333 echo "${ECHO_T}$MKDIR" >&6; }
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6340 # Extract the first word of "mv", so it can be a program name with args.
6341 set dummy mv; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_path_MV+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6372 if test -n "$MV"; then
6373 { echo "$as_me:$LINENO: result: $MV" >&5
6374 echo "${ECHO_T}$MV" >&6; }
6376 { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6381 if test -n "$ac_tool_prefix"; then
6382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_prog_RANLIB+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 if test -n "$RANLIB"; then
6390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 RANLIB=$ac_cv_prog_RANLIB
6410 if test -n "$RANLIB"; then
6411 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6412 echo "${ECHO_T}$RANLIB" >&6; }
6414 { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6420 if test -z "$ac_cv_prog_RANLIB"; then
6421 ac_ct_RANLIB=$RANLIB
6422 # Extract the first word of "ranlib", so it can be a program name with args.
6423 set dummy ranlib; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 if test -n "$ac_ct_RANLIB"; then
6430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6439 ac_cv_prog_ac_ct_RANLIB="ranlib"
6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6450 if test -n "$ac_ct_RANLIB"; then
6451 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6452 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6454 { echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6; }
6458 if test "x$ac_ct_RANLIB" = x; then
6461 case $cross_compiling:$ac_tool_warned in
6463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6464 whose name does not start with the host triplet. If you think this
6465 configuration is useful to you, please write to autoconf@gnu.org." >&5
6466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6467 whose name does not start with the host triplet. If you think this
6468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6469 ac_tool_warned=yes ;;
6471 RANLIB=$ac_ct_RANLIB
6474 RANLIB="$ac_cv_prog_RANLIB"
6477 if test -n "$ac_tool_prefix"; then
6478 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6479 set dummy ${ac_tool_prefix}ar; ac_word=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_prog_AR+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 if test -n "$AR"; then
6486 ac_cv_prog_AR="$AR" # Let the user override the test.
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_AR="${ac_tool_prefix}ar"
6496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 if test -n "$AR"; then
6507 { echo "$as_me:$LINENO: result: $AR" >&5
6508 echo "${ECHO_T}$AR" >&6; }
6510 { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6516 if test -z "$ac_cv_prog_AR"; then
6518 # Extract the first word of "ar", so it can be a program name with args.
6519 set dummy ar; ac_word=$2
6520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6522 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 if test -n "$ac_ct_AR"; then
6526 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_prog_ac_ct_AR="ar"
6536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6546 if test -n "$ac_ct_AR"; then
6547 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6548 echo "${ECHO_T}$ac_ct_AR" >&6; }
6550 { echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6; }
6554 if test "x$ac_ct_AR" = x; then
6557 case $cross_compiling:$ac_tool_warned in
6559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6560 whose name does not start with the host triplet. If you think this
6561 configuration is useful to you, please write to autoconf@gnu.org." >&5
6562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6563 whose name does not start with the host triplet. If you think this
6564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6565 ac_tool_warned=yes ;;
6573 # Extract the first word of "rm", so it can be a program name with args.
6574 set dummy rm; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_RM+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6605 if test -n "$RM"; then
6606 { echo "$as_me:$LINENO: result: $RM" >&5
6607 echo "${ECHO_T}$RM" >&6; }
6609 { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6614 # Extract the first word of "sed", so it can be a program name with args.
6615 set dummy sed; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_SED+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6646 if test -n "$SED"; then
6647 { echo "$as_me:$LINENO: result: $SED" >&5
6648 echo "${ECHO_T}$SED" >&6; }
6650 { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6655 # Extract the first word of "tar", so it can be a program name with args.
6656 set dummy tar; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_TAR+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6687 if test -n "$TAR"; then
6688 { echo "$as_me:$LINENO: result: $TAR" >&5
6689 echo "${ECHO_T}$TAR" >&6; }
6691 { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6696 # Extract the first word of "pwd", so it can be a program name with args.
6697 set dummy pwd; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_BINPWD+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6727 BINPWD=$ac_cv_path_BINPWD
6728 if test -n "$BINPWD"; then
6729 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6730 echo "${ECHO_T}$BINPWD" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6738 # Extract the first word of "dot", so it can be a program name with args.
6739 set dummy dot; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_DOT+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6770 if test -n "$DOT"; then
6771 { echo "$as_me:$LINENO: result: $DOT" >&5
6772 echo "${ECHO_T}$DOT" >&6; }
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6779 if test "$DOT" != "echo dot" ; then
6781 cat >>confdefs.h <<\_ACEOF
6785 if test "$llvm_cv_os_type" = "MingW" ; then
6786 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6789 cat >>confdefs.h <<_ACEOF
6790 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6795 # Find a good install program. We prefer a C program (faster),
6796 # so one script is as good as another. But avoid the broken or
6797 # incompatible versions:
6798 # SysV /etc/install, /usr/sbin/install
6799 # SunOS /usr/etc/install
6800 # IRIX /sbin/install
6802 # AmigaOS /C/install, which installs bootblocks on floppy discs
6803 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6804 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6805 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6806 # OS/2's system install, which has a completely different semantic
6807 # ./install, which can be erroneously created by make from ./install.sh.
6808 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6809 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6810 if test -z "$INSTALL"; then
6811 if test "${ac_cv_path_install+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 # Account for people who put trailing slashes in PATH elements.
6821 ./ | .// | /cC/* | \
6822 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6823 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6826 # OSF1 and SCO ODT 3.0 have their own names for install.
6827 # Don't use installbsd from OSF since it installs stuff as root
6829 for ac_prog in ginstall scoinst install; do
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6832 if test $ac_prog = install &&
6833 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6834 # AIX install. It has an incompatible calling convention.
6836 elif test $ac_prog = install &&
6837 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6838 # program-specific install script used by HP pwplus--don't use.
6841 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6854 if test "${ac_cv_path_install+set}" = set; then
6855 INSTALL=$ac_cv_path_install
6857 # As a last resort, use the slow shell script. Don't cache a
6858 # value for INSTALL within a source directory, because that will
6859 # break other packages using the cache if that directory is
6860 # removed, or if the value is a relative name.
6861 INSTALL=$ac_install_sh
6864 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6865 echo "${ECHO_T}$INSTALL" >&6; }
6867 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6868 # It thinks the first close brace ends the variable substitution.
6869 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6871 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6873 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6876 [\\/$]* | ?:[\\/]* ) ;;
6877 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6880 # Extract the first word of "bzip2", so it can be a program name with args.
6881 set dummy bzip2; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_BZIP2+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 BZIP2=$ac_cv_path_BZIP2
6911 if test -n "$BZIP2"; then
6912 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6913 echo "${ECHO_T}$BZIP2" >&6; }
6915 { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6920 # Extract the first word of "cat", so it can be a program name with args.
6921 set dummy cat; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_path_CAT+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 if test -n "$CAT"; then
6952 { echo "$as_me:$LINENO: result: $CAT" >&5
6953 echo "${ECHO_T}$CAT" >&6; }
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6960 # Extract the first word of "doxygen", so it can be a program name with args.
6961 set dummy doxygen; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 DOXYGEN=$ac_cv_path_DOXYGEN
6991 if test -n "$DOXYGEN"; then
6992 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6993 echo "${ECHO_T}$DOXYGEN" >&6; }
6995 { echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6; }
7000 # Extract the first word of "groff", so it can be a program name with args.
7001 set dummy groff; ac_word=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_path_GROFF+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 GROFF=$ac_cv_path_GROFF
7031 if test -n "$GROFF"; then
7032 { echo "$as_me:$LINENO: result: $GROFF" >&5
7033 echo "${ECHO_T}$GROFF" >&6; }
7035 { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7040 # Extract the first word of "gzip", so it can be a program name with args.
7041 set dummy gzip; ac_word=$2
7042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 GZIPBIN=$ac_cv_path_GZIPBIN
7071 if test -n "$GZIPBIN"; then
7072 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7073 echo "${ECHO_T}$GZIPBIN" >&6; }
7075 { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7080 # Extract the first word of "pdfroff", so it can be a program name with args.
7081 set dummy pdfroff; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_PDFROFF+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 PDFROFF=$ac_cv_path_PDFROFF
7111 if test -n "$PDFROFF"; then
7112 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7113 echo "${ECHO_T}$PDFROFF" >&6; }
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7120 # Extract the first word of "zip", so it can be a program name with args.
7121 set dummy zip; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_ZIP+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 if test -n "$ZIP"; then
7152 { echo "$as_me:$LINENO: result: $ZIP" >&5
7153 echo "${ECHO_T}$ZIP" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7160 # Extract the first word of "go", so it can be a program name with args.
7161 set dummy go; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_GO+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 if test -n "$GO"; then
7192 { echo "$as_me:$LINENO: result: $GO" >&5
7193 echo "${ECHO_T}$GO" >&6; }
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 for ac_prog in ocamlfind
7202 # Extract the first word of "$ac_prog", so it can be a program name with args.
7203 set dummy $ac_prog; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 OCAMLFIND=$ac_cv_path_OCAMLFIND
7233 if test -n "$OCAMLFIND"; then
7234 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7235 echo "${ECHO_T}$OCAMLFIND" >&6; }
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7242 test -n "$OCAMLFIND" && break
7245 for ac_prog in gas as
7247 # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_GAS+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 if test -n "$GAS"; then
7279 { echo "$as_me:$LINENO: result: $GAS" >&5
7280 echo "${ECHO_T}$GAS" >&6; }
7282 { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7287 test -n "$GAS" && break
7291 { echo "$as_me:$LINENO: checking for linker version" >&5
7292 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7293 if test "${llvm_cv_link_version+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7300 if (echo "$version_string" | grep -q "ld64"); then
7301 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7303 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7307 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7308 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7310 cat >>confdefs.h <<_ACEOF
7311 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7317 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7318 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7319 if test "${llvm_cv_link_use_r+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329 CFLAGS="$CFLAGS -Wl,-R."
7330 cat >conftest.$ac_ext <<_ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (ac_try="$ac_link"
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352 (eval "$ac_link") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1 >conftest.err
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7360 { (case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_try") 2>&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest$ac_exeext'
7370 { (case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_try") 2>&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 llvm_cv_link_use_r=yes
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 llvm_cv_link_use_r=no
7387 rm -f core conftest.err conftest.$ac_objext \
7388 conftest$ac_exeext conftest.$ac_ext
7391 ac_cpp='$CPP $CPPFLAGS'
7392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7398 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7399 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7400 if test "$llvm_cv_link_use_r" = yes ; then
7402 cat >>confdefs.h <<\_ACEOF
7403 #define HAVE_LINK_R 1
7409 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7410 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7411 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 ac_cpp='$CPP $CPPFLAGS'
7416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7421 CFLAGS="$CFLAGS -rdynamic"
7422 cat >conftest.$ac_ext <<_ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (ac_try="$ac_link"
7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7444 (eval "$ac_link") 2>conftest.er1
7446 grep -v '^ *+' conftest.er1 >conftest.err
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7452 { (case "(($ac_try" in
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 (eval "$ac_try") 2>&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; } &&
7461 { ac_try='test -s conftest$ac_exeext'
7462 { (case "(($ac_try" in
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_try") 2>&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; }; then
7471 llvm_cv_link_use_export_dynamic=yes
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 llvm_cv_link_use_export_dynamic=no
7479 rm -f core conftest.err conftest.$ac_objext \
7480 conftest$ac_exeext conftest.$ac_ext
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7491 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7492 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7494 cat >>confdefs.h <<\_ACEOF
7495 #define HAVE_LINK_EXPORT_DYNAMIC 1
7501 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7502 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7503 if test "${llvm_cv_link_use_version_script+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 ac_cpp='$CPP $CPPFLAGS'
7508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7514 # The following code is from the autoconf manual,
7515 # "11.13: Limitations of Usual Tools".
7516 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7517 # Use mktemp if possible; otherwise fall back on mkdir,
7518 # with $RANDOM to make collisions less likely.
7522 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7524 test -n "$tmp" && test -d "$tmp"
7526 tmp=$TMPDIR/foo$$-$RANDOM
7527 (umask 077 && mkdir "$tmp")
7530 echo "{" > "$tmp/export.map"
7531 echo " global: main;" >> "$tmp/export.map"
7532 echo " local: *;" >> "$tmp/export.map"
7533 echo "};" >> "$tmp/export.map"
7535 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7536 cat >conftest.$ac_ext <<_ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (ac_try="$ac_link"
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_link") 2>conftest.er1
7560 grep -v '^ *+' conftest.er1 >conftest.err
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7566 { (case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_try") 2>&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; } &&
7575 { ac_try='test -s conftest$ac_exeext'
7576 { (case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_try") 2>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7585 llvm_cv_link_use_version_script=yes
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 llvm_cv_link_use_version_script=no
7593 rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595 rm "$tmp/export.map"
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7606 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7607 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7608 if test "$llvm_cv_link_use_version_script" = yes ; then
7609 HAVE_LINK_VERSION_SCRIPT=1
7615 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7616 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7617 if test "${ac_cv_path_GREP+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 # Extract the first word of "grep ggrep" to use in msg output
7621 if test -z "$GREP"; then
7622 set dummy grep ggrep; ac_prog_name=$2
7623 if test "${ac_cv_path_GREP+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 ac_path_GREP_found=false
7627 # Loop through the user's path and test for each of PROGNAME-LIST
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7632 test -z "$as_dir" && as_dir=.
7633 for ac_prog in grep ggrep; do
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7636 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7637 # Check for GNU ac_path_GREP and select it if it is found.
7638 # Check for GNU $ac_path_GREP
7639 case `"$ac_path_GREP" --version 2>&1` in
7641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7644 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7647 cat "conftest.in" "conftest.in" >"conftest.tmp"
7648 mv "conftest.tmp" "conftest.in"
7649 cp "conftest.in" "conftest.nl"
7650 echo 'GREP' >> "conftest.nl"
7651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7653 ac_count=`expr $ac_count + 1`
7654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7655 # Best one so far, save it but keep looking for a better one
7656 ac_cv_path_GREP="$ac_path_GREP"
7657 ac_path_GREP_max=$ac_count
7659 # 10*(2^10) chars as input seems more than enough
7660 test $ac_count -gt 10 && break
7662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7666 $ac_path_GREP_found && break 3
7676 GREP="$ac_cv_path_GREP"
7677 if test -z "$GREP"; then
7678 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7679 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7680 { (exit 1); exit 1; }; }
7684 ac_cv_path_GREP=$GREP
7689 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7690 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7691 GREP="$ac_cv_path_GREP"
7694 { echo "$as_me:$LINENO: checking for egrep" >&5
7695 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7696 if test "${ac_cv_path_EGREP+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7700 then ac_cv_path_EGREP="$GREP -E"
7702 # Extract the first word of "egrep" to use in msg output
7703 if test -z "$EGREP"; then
7704 set dummy egrep; ac_prog_name=$2
7705 if test "${ac_cv_path_EGREP+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 ac_path_EGREP_found=false
7709 # Loop through the user's path and test for each of PROGNAME-LIST
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7714 test -z "$as_dir" && as_dir=.
7715 for ac_prog in egrep; do
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7718 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7719 # Check for GNU ac_path_EGREP and select it if it is found.
7720 # Check for GNU $ac_path_EGREP
7721 case `"$ac_path_EGREP" --version 2>&1` in
7723 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7726 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7729 cat "conftest.in" "conftest.in" >"conftest.tmp"
7730 mv "conftest.tmp" "conftest.in"
7731 cp "conftest.in" "conftest.nl"
7732 echo 'EGREP' >> "conftest.nl"
7733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7735 ac_count=`expr $ac_count + 1`
7736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7737 # Best one so far, save it but keep looking for a better one
7738 ac_cv_path_EGREP="$ac_path_EGREP"
7739 ac_path_EGREP_max=$ac_count
7741 # 10*(2^10) chars as input seems more than enough
7742 test $ac_count -gt 10 && break
7744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7748 $ac_path_EGREP_found && break 3
7758 EGREP="$ac_cv_path_EGREP"
7759 if test -z "$EGREP"; then
7760 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7761 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7762 { (exit 1); exit 1; }; }
7766 ac_cv_path_EGREP=$EGREP
7772 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7773 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7774 EGREP="$ac_cv_path_EGREP"
7777 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7779 if test "${ac_cv_header_stdc+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 cat >conftest.$ac_ext <<_ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7801 rm -f conftest.$ac_objext
7802 if { (ac_try="$ac_compile"
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7810 grep -v '^ *+' conftest.er1 >conftest.err
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } &&
7815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7816 { (case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_try") 2>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; } &&
7825 { ac_try='test -s conftest.$ac_objext'
7826 { (case "(($ac_try" in
7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831 (eval "$ac_try") 2>&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 ac_cv_header_stdc=yes
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7840 ac_cv_header_stdc=no
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 if test $ac_cv_header_stdc = yes; then
7846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7857 $EGREP "memchr" >/dev/null 2>&1; then
7860 ac_cv_header_stdc=no
7866 if test $ac_cv_header_stdc = yes; then
7867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878 $EGREP "free" >/dev/null 2>&1; then
7881 ac_cv_header_stdc=no
7887 if test $ac_cv_header_stdc = yes; then
7888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7889 if test "$cross_compiling" = yes; then
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7900 #if ((' ' & 0x0FF) == 0x020)
7901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7904 # define ISLOWER(c) \
7905 (('a' <= (c) && (c) <= 'i') \
7906 || ('j' <= (c) && (c) <= 'r') \
7907 || ('s' <= (c) && (c) <= 'z'))
7908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7916 for (i = 0; i < 256; i++)
7917 if (XOR (islower (i), ISLOWER (i))
7918 || toupper (i) != TOUPPER (i))
7923 rm -f conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_link") 2>&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7934 { (case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_try") 2>&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; }; then
7945 echo "$as_me: program exited with status $ac_status" >&5
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7950 ac_cv_header_stdc=no
7952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7958 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7959 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7960 if test $ac_cv_header_stdc = yes; then
7962 cat >>confdefs.h <<\_ACEOF
7963 #define STDC_HEADERS 1
7968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7979 inttypes.h stdint.h unistd.h
7981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 $ac_includes_default
7995 #include <$ac_header>
7997 rm -f conftest.$ac_objext
7998 if { (ac_try="$ac_compile"
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_compile") 2>conftest.er1
8006 grep -v '^ *+' conftest.er1 >conftest.err
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8012 { (case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_try") 2>&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_try") 2>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 eval "$as_ac_Header=yes"
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8036 eval "$as_ac_Header=no"
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 ac_res=`eval echo '${'$as_ac_Header'}'`
8042 { echo "$as_me:$LINENO: result: $ac_res" >&5
8043 echo "${ECHO_T}$ac_res" >&6; }
8044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8045 cat >>confdefs.h <<_ACEOF
8046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8055 for ac_header in errno.h
8057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 ac_res=`eval echo '${'$as_ac_Header'}'`
8065 { echo "$as_me:$LINENO: result: $ac_res" >&5
8066 echo "${ECHO_T}$ac_res" >&6; }
8068 # Is the header compilable?
8069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8071 cat >conftest.$ac_ext <<_ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 $ac_includes_default
8078 #include <$ac_header>
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8089 grep -v '^ *+' conftest.er1 >conftest.err
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8095 { (case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_try") 2>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; } &&
8104 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8114 ac_header_compiler=yes
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_header_compiler=no
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8124 echo "${ECHO_T}$ac_header_compiler" >&6; }
8126 # Is the header present?
8127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 #include <$ac_header>
8137 if { (ac_try="$ac_cpp conftest.$ac_ext"
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8145 grep -v '^ *+' conftest.er1 >conftest.err
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } >/dev/null; then
8150 if test -s conftest.err; then
8151 ac_cpp_err=$ac_c_preproc_warn_flag
8152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8159 if test -z "$ac_cpp_err"; then
8160 ac_header_preproc=yes
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_header_preproc=no
8168 rm -f conftest.err conftest.$ac_ext
8169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170 echo "${ECHO_T}$ac_header_preproc" >&6; }
8172 # So? What about this header?
8173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8179 ac_header_preproc=yes
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8195 ## ------------------------------------ ##
8196 ## Report this to http://llvm.org/bugs/ ##
8197 ## ------------------------------------ ##
8199 ) | sed "s/^/$as_me: WARNING: /" >&2
8202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 eval "$as_ac_Header=\$ac_header_preproc"
8209 ac_res=`eval echo '${'$as_ac_Header'}'`
8210 { echo "$as_me:$LINENO: result: $ac_res" >&5
8211 echo "${ECHO_T}$ac_res" >&6; }
8214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8215 cat >>confdefs.h <<_ACEOF
8216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8224 case "$llvm_cv_os_type" in
8225 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8226 Darwin) llvm_shlib_ext=.dylib ;;
8227 *) llvm_shlib_ext=.so ;;
8231 cat >>confdefs.h <<_ACEOF
8232 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8236 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8237 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8250 if test "$GCC" != "yes" && test "$ICC" != "yes"
8252 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8253 echo "$as_me: error: gcc|icc required but not found" >&2;}
8254 { (exit 1); exit 1; }; }
8257 if test "$GXX" != "yes" && test "$IXX" != "yes"
8259 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8260 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8261 { (exit 1); exit 1; }; }
8264 if test "$GCC" = "yes"
8266 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8274 #if !defined(__GNUC__) || __GNUC__ < 3
8275 #error Unsupported GCC version
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_try") 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest.$ac_objext'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8320 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8321 { (exit 1); exit 1; }; }
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 if test -z "$llvm_cv_gnu_make_command"
8329 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8330 echo "$as_me: error: GNU Make required but not found" >&2;}
8331 { (exit 1); exit 1; }; }
8334 { echo "$as_me:$LINENO: result: ok" >&5
8335 echo "${ECHO_T}ok" >&6; }
8337 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8338 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8339 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8341 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8343 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8347 NO_MAYBE_UNINITIALIZED=
8348 if test "$GXX" = "yes"
8350 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8352 if test -z "$NO_MAYBE_UNINITIALIZED"
8354 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8360 llvm_cv_old_cxxflags="$CXXFLAGS"
8361 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8362 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8371 int main() { return 0; }
8375 rm -f conftest.$ac_objext
8376 if { (ac_try="$ac_compile"
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_compile") 2>conftest.er1
8384 grep -v '^ *+' conftest.er1 >conftest.err
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8390 { (case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_try") 2>&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest.$ac_objext'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8410 no_comment=-Wno-comment
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 NO_COMMENT=$no_comment
8422 CXXFLAGS="$llvm_cv_old_cxxflags"
8424 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8425 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8428 # Check whether --with-python was given.
8429 if test "${with_python+set}" = set; then
8430 withval=$with_python; PYTHON="$withval"
8434 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8435 { echo "$as_me:$LINENO: checking for python" >&5
8436 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8437 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8438 echo "${ECHO_T}user defined: $with_python" >&6; }
8440 if test -n "$PYTHON" ; then
8441 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8442 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8445 # Extract the first word of "python python2 python27", so it can be a program name with args.
8446 set dummy python python2 python27; ac_word=$2
8447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8449 if test "${ac_cv_path_PYTHON+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8464 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8473 echo "${ECHO_T}not found" >&6; }
8474 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8475 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8476 { (exit 1); exit 1; }; }"
8480 PYTHON=$ac_cv_path_PYTHON
8481 if test -n "$PYTHON"; then
8482 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8483 echo "${ECHO_T}$PYTHON" >&6; }
8485 { echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6; }
8492 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8493 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8494 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8495 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8496 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8497 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8498 if test "$ac_python_version_major" -gt "2" || \
8499 (test "$ac_python_version_major" -eq "2" && \
8500 test "$ac_python_version_minor" -ge "7") ; then
8501 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8502 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8504 { echo "$as_me:$LINENO: result: not found" >&5
8505 echo "${ECHO_T}not found" >&6; }
8506 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8507 See \`config.log' for more details." >&5
8508 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8509 See \`config.log' for more details." >&2;}
8510 { (exit 1); exit 1; }; }
8515 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8516 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8517 if test "${ac_cv_lib_m_sin+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 ac_check_lib_save_LIBS=$LIBS
8522 cat >conftest.$ac_ext <<_ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any GCC internal prototype to avoid an error.
8530 Use char because int might match the return type of a GCC
8531 builtin and then its argument prototype would still apply. */
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (ac_try="$ac_link"
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551 (eval "$ac_link") 2>conftest.er1
8553 grep -v '^ *+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8559 { (case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_try") 2>&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try='test -s conftest$ac_exeext'
8569 { (case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_try") 2>&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8586 rm -f core conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
8588 LIBS=$ac_check_lib_save_LIBS
8590 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8591 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8592 if test $ac_cv_lib_m_sin = yes; then
8593 cat >>confdefs.h <<_ACEOF
8601 if test "$llvm_cv_os_type" = "MingW" ; then
8603 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8604 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8605 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 ac_check_lib_save_LIBS=$LIBS
8609 LIBS="-limagehlp $LIBS"
8610 cat >conftest.$ac_ext <<_ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
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_lib_imagehlp_main=yes
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ac_cv_lib_imagehlp_main=no
8668 rm -f core conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8670 LIBS=$ac_check_lib_save_LIBS
8672 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8673 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8674 if test $ac_cv_lib_imagehlp_main = yes; then
8675 cat >>confdefs.h <<_ACEOF
8676 #define HAVE_LIBIMAGEHLP 1
8679 LIBS="-limagehlp $LIBS"
8684 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8685 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8686 if test "${ac_cv_lib_psapi_main+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lpsapi $LIBS"
8691 cat >conftest.$ac_ext <<_ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (ac_try="$ac_link"
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_link") 2>conftest.er1
8716 grep -v '^ *+' conftest.er1 >conftest.err
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8722 { (case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_try") 2>&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest$ac_exeext'
8732 { (case "(($ac_try" in
8733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734 *) ac_try_echo=$ac_try;;
8736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8737 (eval "$ac_try") 2>&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 ac_cv_lib_psapi_main=yes
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 ac_cv_lib_psapi_main=no
8749 rm -f core conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8751 LIBS=$ac_check_lib_save_LIBS
8753 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8754 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8755 if test $ac_cv_lib_psapi_main = yes; then
8756 cat >>confdefs.h <<_ACEOF
8757 #define HAVE_LIBPSAPI 1
8760 LIBS="-lpsapi $LIBS"
8765 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8766 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8767 if test "${ac_cv_lib_shell32_main+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lshell32 $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (ac_try="$ac_link"
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_link") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803 { (case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest$ac_exeext'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_cv_lib_shell32_main=yes
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_cv_lib_shell32_main=no
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 LIBS=$ac_check_lib_save_LIBS
8834 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8835 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8836 if test $ac_cv_lib_shell32_main = yes; then
8837 cat >>confdefs.h <<_ACEOF
8838 #define HAVE_LIBSHELL32 1
8841 LIBS="-lshell32 $LIBS"
8847 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8848 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8849 if test "${ac_cv_search_dlopen+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 ac_func_search_save_LIBS=$LIBS
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8860 /* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8875 for ac_lib in '' dl; do
8876 if test -z "$ac_lib"; then
8877 ac_res="none required"
8880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_link") 2>conftest.er1
8891 grep -v '^ *+' conftest.er1 >conftest.err
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } &&
8896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8897 { (case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_try") 2>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; } &&
8906 { ac_try='test -s conftest$ac_exeext'
8907 { (case "(($ac_try" in
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_try") 2>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_cv_search_dlopen=$ac_res
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8924 rm -f core conftest.err conftest.$ac_objext \
8926 if test "${ac_cv_search_dlopen+set}" = set; then
8930 if test "${ac_cv_search_dlopen+set}" = set; then
8933 ac_cv_search_dlopen=no
8936 LIBS=$ac_func_search_save_LIBS
8938 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8939 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8940 ac_res=$ac_cv_search_dlopen
8941 if test "$ac_res" != no; then
8942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8945 cat >>confdefs.h <<\_ACEOF
8946 #define HAVE_DLOPEN 1
8953 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8954 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8958 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8959 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8960 if test "${ac_cv_search_clock_gettime+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 ac_func_search_save_LIBS=$LIBS
8964 cat >conftest.$ac_ext <<_ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8971 /* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
8977 char clock_gettime ();
8981 return clock_gettime ();
8986 for ac_lib in '' rt; do
8987 if test -z "$ac_lib"; then
8988 ac_res="none required"
8991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (ac_try="$ac_link"
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_link") 2>conftest.er1
9002 grep -v '^ *+' conftest.er1 >conftest.err
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_try") 2>&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_search_clock_gettime=$ac_res
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9035 rm -f core conftest.err conftest.$ac_objext \
9037 if test "${ac_cv_search_clock_gettime+set}" = set; then
9041 if test "${ac_cv_search_clock_gettime+set}" = set; then
9044 ac_cv_search_clock_gettime=no
9047 LIBS=$ac_func_search_save_LIBS
9049 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9050 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9051 ac_res=$ac_cv_search_clock_gettime
9052 if test "$ac_res" != no; then
9053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9058 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9059 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9060 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9061 if test "${ac_cv_search_setupterm+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 ac_func_search_save_LIBS=$LIBS
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9072 /* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
9082 return setupterm ();
9087 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9088 if test -z "$ac_lib"; then
9089 ac_res="none required"
9092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9094 rm -f conftest.$ac_objext conftest$ac_exeext
9095 if { (ac_try="$ac_link"
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_link") 2>conftest.er1
9103 grep -v '^ *+' conftest.er1 >conftest.err
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9109 { (case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_try") 2>&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest$ac_exeext'
9119 { (case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_try") 2>&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_search_setupterm=$ac_res
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9136 rm -f core conftest.err conftest.$ac_objext \
9138 if test "${ac_cv_search_setupterm+set}" = set; then
9142 if test "${ac_cv_search_setupterm+set}" = set; then
9145 ac_cv_search_setupterm=no
9148 LIBS=$ac_func_search_save_LIBS
9150 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9151 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9152 ac_res=$ac_cv_search_setupterm
9153 if test "$ac_res" != no; then
9154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9157 cat >>confdefs.h <<\_ACEOF
9158 #define HAVE_TERMINFO 1
9168 if test "$llvm_cv_enable_libedit" = "yes" ; then
9169 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9170 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9171 if test "${ac_cv_search_el_init+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 ac_func_search_save_LIBS=$LIBS
9175 cat >conftest.$ac_ext <<_ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9182 /* Override any GCC internal prototype to avoid an error.
9183 Use char because int might match the return type of a GCC
9184 builtin and then its argument prototype would still apply. */
9197 for ac_lib in '' edit; do
9198 if test -z "$ac_lib"; then
9199 ac_res="none required"
9202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9204 rm -f conftest.$ac_objext conftest$ac_exeext
9205 if { (ac_try="$ac_link"
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_link") 2>conftest.er1
9213 grep -v '^ *+' conftest.er1 >conftest.err
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9219 { (case "(($ac_try" in
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_try") 2>&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; } &&
9228 { ac_try='test -s conftest$ac_exeext'
9229 { (case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_try") 2>&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_cv_search_el_init=$ac_res
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9246 rm -f core conftest.err conftest.$ac_objext \
9248 if test "${ac_cv_search_el_init+set}" = set; then
9252 if test "${ac_cv_search_el_init+set}" = set; then
9255 ac_cv_search_el_init=no
9258 LIBS=$ac_func_search_save_LIBS
9260 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9261 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9262 ac_res=$ac_cv_search_el_init
9263 if test "$ac_res" != no; then
9264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9266 cat >>confdefs.h <<\_ACEOF
9267 #define HAVE_LIBEDIT 1
9274 if test "$llvm_cv_enable_libffi" = "yes" ; then
9275 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9276 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9277 if test "${ac_cv_search_ffi_call+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 ac_func_search_save_LIBS=$LIBS
9281 cat >conftest.$ac_ext <<_ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9288 /* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9303 for ac_lib in '' ffi; do
9304 if test -z "$ac_lib"; then
9305 ac_res="none required"
9308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (ac_try="$ac_link"
9313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314 *) ac_try_echo=$ac_try;;
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_link") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1 >conftest.err
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9325 { (case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_try") 2>&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_try") 2>&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_cv_search_ffi_call=$ac_res
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9352 rm -f core conftest.err conftest.$ac_objext \
9354 if test "${ac_cv_search_ffi_call+set}" = set; then
9358 if test "${ac_cv_search_ffi_call+set}" = set; then
9361 ac_cv_search_ffi_call=no
9364 LIBS=$ac_func_search_save_LIBS
9366 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9367 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9368 ac_res=$ac_cv_search_ffi_call
9369 if test "$ac_res" != no; then
9370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9372 cat >>confdefs.h <<\_ACEOF
9373 #define HAVE_FFI_CALL 1
9377 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9378 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9379 { (exit 1); exit 1; }; }
9384 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9385 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9386 if test "${ac_cv_search_mallinfo+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 ac_func_search_save_LIBS=$LIBS
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9412 for ac_lib in '' malloc; do
9413 if test -z "$ac_lib"; then
9414 ac_res="none required"
9417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9434 { (case "(($ac_try" in
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439 (eval "$ac_try") 2>&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; } &&
9443 { ac_try='test -s conftest$ac_exeext'
9444 { (case "(($ac_try" in
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_try") 2>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_search_mallinfo=$ac_res
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9461 rm -f core conftest.err conftest.$ac_objext \
9463 if test "${ac_cv_search_mallinfo+set}" = set; then
9467 if test "${ac_cv_search_mallinfo+set}" = set; then
9470 ac_cv_search_mallinfo=no
9473 LIBS=$ac_func_search_save_LIBS
9475 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9476 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9477 ac_res=$ac_cv_search_mallinfo
9478 if test "$ac_res" != no; then
9479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9481 cat >>confdefs.h <<\_ACEOF
9482 #define HAVE_MALLINFO 1
9488 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9490 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9491 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9492 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 ac_check_lib_save_LIBS=$LIBS
9496 LIBS="-lpthread $LIBS"
9497 cat >conftest.$ac_ext <<_ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9504 /* Override any GCC internal prototype to avoid an error.
9505 Use char because int might match the return type of a GCC
9506 builtin and then its argument prototype would still apply. */
9510 char pthread_mutex_init ();
9514 return pthread_mutex_init ();
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (ac_try="$ac_link"
9522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523 *) ac_try_echo=$ac_try;;
9525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526 (eval "$ac_link") 2>conftest.er1
9528 grep -v '^ *+' conftest.er1 >conftest.err
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9534 { (case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_try") 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_try") 2>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_cv_lib_pthread_pthread_mutex_init=yes
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 ac_cv_lib_pthread_pthread_mutex_init=no
9561 rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_lib_save_LIBS
9565 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9566 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9567 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9568 cat >>confdefs.h <<_ACEOF
9569 #define HAVE_LIBPTHREAD 1
9572 LIBS="-lpthread $LIBS"
9576 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9577 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9578 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 ac_func_search_save_LIBS=$LIBS
9582 cat >conftest.$ac_ext <<_ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9589 /* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9595 char pthread_mutex_lock ();
9599 return pthread_mutex_lock ();
9604 for ac_lib in '' pthread; do
9605 if test -z "$ac_lib"; then
9606 ac_res="none required"
9609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (ac_try="$ac_link"
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_link") 2>conftest.er1
9620 grep -v '^ *+' conftest.er1 >conftest.err
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9626 { (case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_try") 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_try") 2>&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_search_pthread_mutex_lock=$ac_res
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9653 rm -f core conftest.err conftest.$ac_objext \
9655 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9659 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9662 ac_cv_search_pthread_mutex_lock=no
9665 LIBS=$ac_func_search_save_LIBS
9667 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9668 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9669 ac_res=$ac_cv_search_pthread_mutex_lock
9670 if test "$ac_res" != no; then
9671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9673 cat >>confdefs.h <<\_ACEOF
9674 #define HAVE_PTHREAD_MUTEX_LOCK 1
9679 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9680 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9681 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 ac_func_search_save_LIBS=$LIBS
9685 cat >conftest.$ac_ext <<_ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9692 /* Override any GCC internal prototype to avoid an error.
9693 Use char because int might match the return type of a GCC
9694 builtin and then its argument prototype would still apply. */
9698 char pthread_rwlock_init ();
9702 return pthread_rwlock_init ();
9707 for ac_lib in '' pthread; do
9708 if test -z "$ac_lib"; then
9709 ac_res="none required"
9712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (ac_try="$ac_link"
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_link") 2>conftest.er1
9723 grep -v '^ *+' conftest.er1 >conftest.err
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } &&
9728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9729 { (case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_try") 2>&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try='test -s conftest$ac_exeext'
9739 { (case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_try") 2>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 ac_cv_search_pthread_rwlock_init=$ac_res
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9756 rm -f core conftest.err conftest.$ac_objext \
9758 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9762 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9765 ac_cv_search_pthread_rwlock_init=no
9768 LIBS=$ac_func_search_save_LIBS
9770 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9771 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9772 ac_res=$ac_cv_search_pthread_rwlock_init
9773 if test "$ac_res" != no; then
9774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_PTHREAD_RWLOCK_INIT 1
9782 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9783 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9784 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 ac_func_search_save_LIBS=$LIBS
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9801 char pthread_getspecific ();
9805 return pthread_getspecific ();
9810 for ac_lib in '' pthread; do
9811 if test -z "$ac_lib"; then
9812 ac_res="none required"
9815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_search_pthread_getspecific=$ac_res
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9859 rm -f core conftest.err conftest.$ac_objext \
9861 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9865 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9868 ac_cv_search_pthread_getspecific=no
9871 LIBS=$ac_func_search_save_LIBS
9873 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9874 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9875 ac_res=$ac_cv_search_pthread_getspecific
9876 if test "$ac_res" != no; then
9877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_PTHREAD_GETSPECIFIC 1
9887 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9889 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9890 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9891 if test "${ac_cv_lib_z_compress2+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 ac_check_lib_save_LIBS=$LIBS
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9913 return compress2 ();
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (ac_try="$ac_link"
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_link") 2>conftest.er1
9927 grep -v '^ *+' conftest.er1 >conftest.err
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9933 { (case "(($ac_try" in
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_try") 2>&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; } &&
9942 { ac_try='test -s conftest$ac_exeext'
9943 { (case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_try") 2>&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 ac_cv_lib_z_compress2=yes
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 ac_cv_lib_z_compress2=no
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 LIBS=$ac_check_lib_save_LIBS
9964 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9965 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9966 if test $ac_cv_lib_z_compress2 = yes; then
9967 cat >>confdefs.h <<_ACEOF
9978 # Check whether --with-oprofile was given.
9979 if test "${with_oprofile+set}" = set; then
9980 withval=$with_oprofile;
9984 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9988 *) llvm_cv_oppath="${withval}/lib/oprofile"
9989 CPPFLAGS="-I${withval}/include";;
9991 case $llvm_cv_os_type in
9993 if test -n "$llvm_cv_oppath" ; then
9994 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9995 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9996 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9997 if test "${ac_cv_search_bfd_init+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 ac_func_search_save_LIBS=$LIBS
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10008 /* Override any GCC internal prototype to avoid an error.
10009 Use char because int might match the return type of a GCC
10010 builtin and then its argument prototype would still apply. */
10018 return bfd_init ();
10023 for ac_lib in '' bfd; do
10024 if test -z "$ac_lib"; then
10025 ac_res="none required"
10028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (ac_try="$ac_link"
10032 case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_link") 2>conftest.er1
10039 grep -v '^ *+' conftest.er1 >conftest.err
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
10044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10045 { (case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; } &&
10054 { ac_try='test -s conftest$ac_exeext'
10055 { (case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_try") 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_search_bfd_init=$ac_res
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10072 rm -f core conftest.err conftest.$ac_objext \
10074 if test "${ac_cv_search_bfd_init+set}" = set; then
10078 if test "${ac_cv_search_bfd_init+set}" = set; then
10081 ac_cv_search_bfd_init=no
10083 rm conftest.$ac_ext
10084 LIBS=$ac_func_search_save_LIBS
10086 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10087 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10088 ac_res=$ac_cv_search_bfd_init
10089 if test "$ac_res" != no; then
10090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10094 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10095 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10096 if test "${ac_cv_search_op_open_agent+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 ac_func_search_save_LIBS=$LIBS
10100 cat >conftest.$ac_ext <<_ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10107 /* Override any GCC internal prototype to avoid an error.
10108 Use char because int might match the return type of a GCC
10109 builtin and then its argument prototype would still apply. */
10113 char op_open_agent ();
10117 return op_open_agent ();
10122 for ac_lib in '' opagent; do
10123 if test -z "$ac_lib"; then
10124 ac_res="none required"
10127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_search_op_open_agent=$ac_res
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10171 rm -f core conftest.err conftest.$ac_objext \
10173 if test "${ac_cv_search_op_open_agent+set}" = set; then
10177 if test "${ac_cv_search_op_open_agent+set}" = set; then
10180 ac_cv_search_op_open_agent=no
10182 rm conftest.$ac_ext
10183 LIBS=$ac_func_search_save_LIBS
10185 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10186 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10187 ac_res=$ac_cv_search_op_open_agent
10188 if test "$ac_res" != no; then
10189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10193 echo "Error! You need to have libopagent around."
10198 if test "${ac_cv_header_opagent_h+set}" = set; then
10199 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10200 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10201 if test "${ac_cv_header_opagent_h+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10205 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10207 # Is the header compilable?
10208 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10209 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10210 cat >conftest.$ac_ext <<_ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 $ac_includes_default
10217 #include <opagent.h>
10219 rm -f conftest.$ac_objext
10220 if { (ac_try="$ac_compile"
10221 case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_compile") 2>conftest.er1
10228 grep -v '^ *+' conftest.er1 >conftest.err
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10234 { (case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_try") 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest.$ac_objext'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_header_compiler=yes
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_header_compiler=no
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10263 echo "${ECHO_T}$ac_header_compiler" >&6; }
10265 # Is the header present?
10266 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10267 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10268 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 #include <opagent.h>
10276 if { (ac_try="$ac_cpp conftest.$ac_ext"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10284 grep -v '^ *+' conftest.er1 >conftest.err
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } >/dev/null; then
10289 if test -s conftest.err; then
10290 ac_cpp_err=$ac_c_preproc_warn_flag
10291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10298 if test -z "$ac_cpp_err"; then
10299 ac_header_preproc=yes
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_header_preproc=no
10307 rm -f conftest.err conftest.$ac_ext
10308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10309 echo "${ECHO_T}$ac_header_preproc" >&6; }
10311 # So? What about this header?
10312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10314 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10315 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10316 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10317 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10318 ac_header_preproc=yes
10321 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10322 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10323 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10324 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10325 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10326 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10327 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10328 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10330 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10332 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10334 ## ------------------------------------ ##
10335 ## Report this to http://llvm.org/bugs/ ##
10336 ## ------------------------------------ ##
10338 ) | sed "s/^/$as_me: WARNING: /" >&2
10341 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10342 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10343 if test "${ac_cv_header_opagent_h+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 ac_cv_header_opagent_h=$ac_header_preproc
10348 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10349 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10352 if test $ac_cv_header_opagent_h = yes; then
10356 echo "Error! You need to have opagent.h around."
10364 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10365 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10366 { (exit 1); exit 1; }; } ;;
10377 cat >>confdefs.h <<_ACEOF
10378 #define LLVM_USE_OPROFILE $USE_OPROFILE
10383 # Check whether --with-intel-jitevents was given.
10384 if test "${with_intel_jitevents+set}" = set; then
10385 withval=$with_intel_jitevents;
10387 yes) USE_INTEL_JITEVENTS=1
10389 no) USE_INTEL_JITEVENTS=0
10391 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10392 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10393 { (exit 1); exit 1; }; };;
10396 case $llvm_cv_os_type in
10397 Linux|Win32|Cygwin|MingW) ;;
10398 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10399 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10400 { (exit 1); exit 1; }; };;
10403 case "$llvm_cv_target_arch" in
10405 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10406 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10407 { (exit 1); exit 1; }; };;
10412 USE_INTEL_JITEVENTS=0
10418 cat >>confdefs.h <<_ACEOF
10419 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10423 for ac_prog in xml2-config
10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
10426 set dummy $ac_prog; ac_word=$2
10427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10429 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 if test -n "$XML2CONFIG"; then
10433 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10442 ac_cv_prog_XML2CONFIG="$ac_prog"
10443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10453 if test -n "$XML2CONFIG"; then
10454 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10455 echo "${ECHO_T}$XML2CONFIG" >&6; }
10457 { echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6; }
10462 test -n "$XML2CONFIG" && break
10466 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10467 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10468 if test "x$XML2CONFIG" = "x"; then
10469 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10470 echo "${ECHO_T}xml2-config not found" >&6; }
10472 LIBXML2_INC=`$XML2CONFIG --cflags`
10473 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10474 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10475 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10476 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10477 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 ac_check_lib_save_LIBS=$LIBS
10481 LIBS="-lxml2 $LIBS"
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10489 /* Override any GCC internal prototype to avoid an error.
10490 Use char because int might match the return type of a GCC
10491 builtin and then its argument prototype would still apply. */
10495 char xmlReadFile ();
10499 return xmlReadFile ();
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10519 { (case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_try") 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest$ac_exeext'
10529 { (case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_try") 2>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; }; then
10538 ac_cv_lib_xml2_xmlReadFile=yes
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 ac_cv_lib_xml2_xmlReadFile=no
10546 rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10548 LIBS=$ac_check_lib_save_LIBS
10550 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10551 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10552 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10554 cat >>confdefs.h <<\_ACEOF
10555 #define CLANG_HAVE_LIBXML 1
10558 LIBXML2_LIBS="-lxml2"
10571 ac_header_dirent=no
10572 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10573 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10574 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10575 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 #include <sys/types.h>
10597 rm -f conftest.$ac_objext
10598 if { (ac_try="$ac_compile"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_compile") 2>conftest.er1
10606 grep -v '^ *+' conftest.er1 >conftest.err
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; } &&
10621 { ac_try='test -s conftest.$ac_objext'
10622 { (case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_try") 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 eval "$as_ac_Header=yes"
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 eval "$as_ac_Header=no"
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641 ac_res=`eval echo '${'$as_ac_Header'}'`
10642 { echo "$as_me:$LINENO: result: $ac_res" >&5
10643 echo "${ECHO_T}$ac_res" >&6; }
10644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10645 cat >>confdefs.h <<_ACEOF
10646 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10649 ac_header_dirent=$ac_hdr; break
10653 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10654 if test $ac_header_dirent = dirent.h; then
10655 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10656 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10657 if test "${ac_cv_search_opendir+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 ac_func_search_save_LIBS=$LIBS
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10668 /* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10683 for ac_lib in '' dir; do
10684 if test -z "$ac_lib"; then
10685 ac_res="none required"
10688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (ac_try="$ac_link"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_link") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10705 { (case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_try") 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest$ac_exeext'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 ac_cv_search_opendir=$ac_res
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10732 rm -f core conftest.err conftest.$ac_objext \
10734 if test "${ac_cv_search_opendir+set}" = set; then
10738 if test "${ac_cv_search_opendir+set}" = set; then
10741 ac_cv_search_opendir=no
10743 rm conftest.$ac_ext
10744 LIBS=$ac_func_search_save_LIBS
10746 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10747 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10748 ac_res=$ac_cv_search_opendir
10749 if test "$ac_res" != no; then
10750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10755 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10757 if test "${ac_cv_search_opendir+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 ac_func_search_save_LIBS=$LIBS
10761 cat >conftest.$ac_ext <<_ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10768 /* Override any GCC internal prototype to avoid an error.
10769 Use char because int might match the return type of a GCC
10770 builtin and then its argument prototype would still apply. */
10783 for ac_lib in '' x; do
10784 if test -z "$ac_lib"; then
10785 ac_res="none required"
10788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10805 { (case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_try") 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest$ac_exeext'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 ac_cv_search_opendir=$ac_res
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10832 rm -f core conftest.err conftest.$ac_objext \
10834 if test "${ac_cv_search_opendir+set}" = set; then
10838 if test "${ac_cv_search_opendir+set}" = set; then
10841 ac_cv_search_opendir=no
10843 rm conftest.$ac_ext
10844 LIBS=$ac_func_search_save_LIBS
10846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10848 ac_res=$ac_cv_search_opendir
10849 if test "$ac_res" != no; then
10850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10856 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10857 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10858 if test "${ac_cv_header_mmap_anon+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 ac_cpp='$CPP $CPPFLAGS'
10863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10867 cat >conftest.$ac_ext <<_ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 #include <sys/mman.h>
10874 #include <unistd.h>
10879 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10884 rm -f conftest.$ac_objext
10885 if { (ac_try="$ac_compile"
10886 case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_compile") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest.$ac_objext'
10909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 ac_cv_header_mmap_anon=yes
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_cv_header_mmap_anon=no
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 ac_cpp='$CPP $CPPFLAGS'
10929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10935 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10936 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10937 if test "$ac_cv_header_mmap_anon" = yes; then
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_MMAP_ANONYMOUS 1
10945 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10946 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10947 if test "${ac_cv_header_stat_broken+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 cat >conftest.$ac_ext <<_ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <sys/types.h>
10957 #include <sys/stat.h>
10959 #if defined S_ISBLK && defined S_IFDIR
10960 # if S_ISBLK (S_IFDIR)
10965 #if defined S_ISBLK && defined S_IFCHR
10966 # if S_ISBLK (S_IFCHR)
10971 #if defined S_ISLNK && defined S_IFREG
10972 # if S_ISLNK (S_IFREG)
10977 #if defined S_ISSOCK && defined S_IFREG
10978 # if S_ISSOCK (S_IFREG)
10984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10985 $EGREP "You lose" >/dev/null 2>&1; then
10986 ac_cv_header_stat_broken=yes
10988 ac_cv_header_stat_broken=no
10993 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10994 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10995 if test $ac_cv_header_stat_broken = yes; then
10997 cat >>confdefs.h <<\_ACEOF
10998 #define STAT_MACROS_BROKEN 1
11003 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11004 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11005 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 cat >conftest.$ac_ext <<_ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include <sys/types.h>
11015 #include <sys/wait.h>
11016 #ifndef WEXITSTATUS
11017 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11020 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11028 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11033 rm -f conftest.$ac_objext
11034 if { (ac_try="$ac_compile"
11035 case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_compile") 2>conftest.er1
11042 grep -v '^ *+' conftest.er1 >conftest.err
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest.$ac_objext'
11058 { (case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_try") 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_cv_header_sys_wait_h=yes
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 ac_cv_header_sys_wait_h=no
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11078 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11079 if test $ac_cv_header_sys_wait_h = yes; then
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_SYS_WAIT_H 1
11087 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11088 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11089 if test "${ac_cv_header_time+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 cat >conftest.$ac_ext <<_ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11098 #include <sys/types.h>
11099 #include <sys/time.h>
11105 if ((struct tm *) 0)
11111 rm -f conftest.$ac_objext
11112 if { (ac_try="$ac_compile"
11113 case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_compile") 2>conftest.er1
11120 grep -v '^ *+' conftest.er1 >conftest.err
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } &&
11125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11126 { (case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_try") 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; } &&
11135 { ac_try='test -s conftest.$ac_objext'
11136 { (case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_try") 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 ac_cv_header_time=yes
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_header_time=no
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11156 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11157 if test $ac_cv_header_time = yes; then
11159 cat >>confdefs.h <<\_ACEOF
11160 #define TIME_WITH_SYS_TIME 1
11167 ac_cpp='$CXXCPP $CPPFLAGS'
11168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11173 for ac_header in cxxabi.h
11175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 cat >conftest.$ac_ext <<_ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 #include <stddef.h>
11190 #include <$ac_header>
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11201 grep -v '^ *+' conftest.er1 >conftest.err
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } &&
11206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11207 { (case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_try") 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222 (eval "$ac_try") 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 eval "$as_ac_Header=yes"
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 eval "$as_ac_Header=no"
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11249 ac_cpp='$CPP $CPPFLAGS'
11250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11260 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 ac_res=`eval echo '${'$as_ac_Header'}'`
11270 { echo "$as_me:$LINENO: result: $ac_res" >&5
11271 echo "${ECHO_T}$ac_res" >&6; }
11273 # Is the header compilable?
11274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11283 #include <$ac_header>
11285 rm -f conftest.$ac_objext
11286 if { (ac_try="$ac_compile"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_compile") 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11300 { (case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_try") 2>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_try") 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_header_compiler=yes
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_header_compiler=no
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329 echo "${ECHO_T}$ac_header_compiler" >&6; }
11331 # Is the header present?
11332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #include <$ac_header>
11342 if { (ac_try="$ac_cpp conftest.$ac_ext"
11343 case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11350 grep -v '^ *+' conftest.er1 >conftest.err
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } >/dev/null; then
11355 if test -s conftest.err; then
11356 ac_cpp_err=$ac_c_preproc_warn_flag
11357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11364 if test -z "$ac_cpp_err"; then
11365 ac_header_preproc=yes
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_header_preproc=no
11373 rm -f conftest.err conftest.$ac_ext
11374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11375 echo "${ECHO_T}$ac_header_preproc" >&6; }
11377 # So? What about this header?
11378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11384 ac_header_preproc=yes
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11400 ## ------------------------------------ ##
11401 ## Report this to http://llvm.org/bugs/ ##
11402 ## ------------------------------------ ##
11404 ) | sed "s/^/$as_me: WARNING: /" >&2
11407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 eval "$as_ac_Header=\$ac_header_preproc"
11414 ac_res=`eval echo '${'$as_ac_Header'}'`
11415 { echo "$as_me:$LINENO: result: $ac_res" >&5
11416 echo "${ECHO_T}$ac_res" >&6; }
11419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11434 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 ac_res=`eval echo '${'$as_ac_Header'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11447 # Is the header compilable?
11448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11450 cat >conftest.$ac_ext <<_ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456 $ac_includes_default
11457 #include <$ac_header>
11459 rm -f conftest.$ac_objext
11460 if { (ac_try="$ac_compile"
11461 case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_compile") 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
11473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11474 { (case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_try") 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest.$ac_objext'
11484 { (case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_try") 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 ac_header_compiler=yes
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11498 ac_header_compiler=no
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6; }
11505 # Is the header present?
11506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 #include <$ac_header>
11516 if { (ac_try="$ac_cpp conftest.$ac_ext"
11517 case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524 grep -v '^ *+' conftest.er1 >conftest.err
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null; then
11529 if test -s conftest.err; then
11530 ac_cpp_err=$ac_c_preproc_warn_flag
11531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11538 if test -z "$ac_cpp_err"; then
11539 ac_header_preproc=yes
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ac_header_preproc=no
11547 rm -f conftest.err conftest.$ac_ext
11548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11549 echo "${ECHO_T}$ac_header_preproc" >&6; }
11551 # So? What about this header?
11552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11558 ac_header_preproc=yes
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11574 ## ------------------------------------ ##
11575 ## Report this to http://llvm.org/bugs/ ##
11576 ## ------------------------------------ ##
11578 ) | sed "s/^/$as_me: WARNING: /" >&2
11581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 eval "$as_ac_Header=\$ac_header_preproc"
11588 ac_res=`eval echo '${'$as_ac_Header'}'`
11589 { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11594 cat >>confdefs.h <<_ACEOF
11595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11603 for ac_header in utime.h
11605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 ac_res=`eval echo '${'$as_ac_Header'}'`
11613 { echo "$as_me:$LINENO: result: $ac_res" >&5
11614 echo "${ECHO_T}$ac_res" >&6; }
11616 # Is the header compilable?
11617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11619 cat >conftest.$ac_ext <<_ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 $ac_includes_default
11626 #include <$ac_header>
11628 rm -f conftest.$ac_objext
11629 if { (ac_try="$ac_compile"
11630 case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_compile") 2>conftest.er1
11637 grep -v '^ *+' conftest.er1 >conftest.err
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11643 { (case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_try") 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; } &&
11652 { ac_try='test -s conftest.$ac_objext'
11653 { (case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_try") 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_header_compiler=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_header_compiler=no
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11672 echo "${ECHO_T}$ac_header_compiler" >&6; }
11674 # Is the header present?
11675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11677 cat >conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 #include <$ac_header>
11685 if { (ac_try="$ac_cpp conftest.$ac_ext"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11693 grep -v '^ *+' conftest.er1 >conftest.err
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } >/dev/null; then
11698 if test -s conftest.err; then
11699 ac_cpp_err=$ac_c_preproc_warn_flag
11700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11707 if test -z "$ac_cpp_err"; then
11708 ac_header_preproc=yes
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 ac_header_preproc=no
11716 rm -f conftest.err conftest.$ac_ext
11717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11718 echo "${ECHO_T}$ac_header_preproc" >&6; }
11720 # So? What about this header?
11721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11727 ac_header_preproc=yes
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11743 ## ------------------------------------ ##
11744 ## Report this to http://llvm.org/bugs/ ##
11745 ## ------------------------------------ ##
11747 ) | sed "s/^/$as_me: WARNING: /" >&2
11750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 eval "$as_ac_Header=\$ac_header_preproc"
11757 ac_res=`eval echo '${'$as_ac_Header'}'`
11758 { echo "$as_me:$LINENO: result: $ac_res" >&5
11759 echo "${ECHO_T}$ac_res" >&6; }
11762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11776 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 ac_res=`eval echo '${'$as_ac_Header'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11789 # Is the header compilable?
11790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11792 cat >conftest.$ac_ext <<_ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 $ac_includes_default
11799 #include <$ac_header>
11801 rm -f conftest.$ac_objext
11802 if { (ac_try="$ac_compile"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_compile") 2>conftest.er1
11810 grep -v '^ *+' conftest.er1 >conftest.err
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest.$ac_objext'
11826 { (case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_try") 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_header_compiler=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_header_compiler=no
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11845 echo "${ECHO_T}$ac_header_compiler" >&6; }
11847 # Is the header present?
11848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 #include <$ac_header>
11858 if { (ac_try="$ac_cpp conftest.$ac_ext"
11859 case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } >/dev/null; then
11871 if test -s conftest.err; then
11872 ac_cpp_err=$ac_c_preproc_warn_flag
11873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11880 if test -z "$ac_cpp_err"; then
11881 ac_header_preproc=yes
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_header_preproc=no
11889 rm -f conftest.err conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11891 echo "${ECHO_T}$ac_header_preproc" >&6; }
11893 # So? What about this header?
11894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11900 ac_header_preproc=yes
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11916 ## ------------------------------------ ##
11917 ## Report this to http://llvm.org/bugs/ ##
11918 ## ------------------------------------ ##
11920 ) | sed "s/^/$as_me: WARNING: /" >&2
11923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 eval "$as_ac_Header=\$ac_header_preproc"
11930 ac_res=`eval echo '${'$as_ac_Header'}'`
11931 { echo "$as_me:$LINENO: result: $ac_res" >&5
11932 echo "${ECHO_T}$ac_res" >&6; }
11935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11947 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 ac_res=`eval echo '${'$as_ac_Header'}'`
11957 { echo "$as_me:$LINENO: result: $ac_res" >&5
11958 echo "${ECHO_T}$ac_res" >&6; }
11960 # Is the header compilable?
11961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11963 cat >conftest.$ac_ext <<_ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 $ac_includes_default
11970 #include <$ac_header>
11972 rm -f conftest.$ac_objext
11973 if { (ac_try="$ac_compile"
11974 case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_compile") 2>conftest.er1
11981 grep -v '^ *+' conftest.er1 >conftest.err
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11987 { (case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_try") 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try='test -s conftest.$ac_objext'
11997 { (case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_try") 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 ac_header_compiler=yes
12008 echo "$as_me: failed program was:" >&5
12009 sed 's/^/| /' conftest.$ac_ext >&5
12011 ac_header_compiler=no
12014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12016 echo "${ECHO_T}$ac_header_compiler" >&6; }
12018 # Is the header present?
12019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12021 cat >conftest.$ac_ext <<_ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027 #include <$ac_header>
12029 if { (ac_try="$ac_cpp conftest.$ac_ext"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } >/dev/null; then
12042 if test -s conftest.err; then
12043 ac_cpp_err=$ac_c_preproc_warn_flag
12044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12051 if test -z "$ac_cpp_err"; then
12052 ac_header_preproc=yes
12054 echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 ac_header_preproc=no
12060 rm -f conftest.err conftest.$ac_ext
12061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12062 echo "${ECHO_T}$ac_header_preproc" >&6; }
12064 # So? What about this header?
12065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12071 ac_header_preproc=yes
12074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12087 ## ------------------------------------ ##
12088 ## Report this to http://llvm.org/bugs/ ##
12089 ## ------------------------------------ ##
12091 ) | sed "s/^/$as_me: WARNING: /" >&2
12094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 eval "$as_ac_Header=\$ac_header_preproc"
12101 ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12116 for ac_header in valgrind/valgrind.h
12118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 ac_res=`eval echo '${'$as_ac_Header'}'`
12126 { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12129 # Is the header compilable?
12130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12139 #include <$ac_header>
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_compile") 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_header_compiler=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_header_compiler=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6; }
12187 # Is the header present?
12188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <$ac_header>
12198 if { (ac_try="$ac_cpp conftest.$ac_ext"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } >/dev/null; then
12211 if test -s conftest.err; then
12212 ac_cpp_err=$ac_c_preproc_warn_flag
12213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12220 if test -z "$ac_cpp_err"; then
12221 ac_header_preproc=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_header_preproc=no
12229 rm -f conftest.err conftest.$ac_ext
12230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 echo "${ECHO_T}$ac_header_preproc" >&6; }
12233 # So? What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240 ac_header_preproc=yes
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12256 ## ------------------------------------ ##
12257 ## Report this to http://llvm.org/bugs/ ##
12258 ## ------------------------------------ ##
12260 ) | sed "s/^/$as_me: WARNING: /" >&2
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 eval "$as_ac_Header=\$ac_header_preproc"
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271 { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276 cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12285 for ac_header in fenv.h
12287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12294 ac_res=`eval echo '${'$as_ac_Header'}'`
12295 { echo "$as_me:$LINENO: result: $ac_res" >&5
12296 echo "${ECHO_T}$ac_res" >&6; }
12298 # Is the header compilable?
12299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12301 cat >conftest.$ac_ext <<_ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 $ac_includes_default
12308 #include <$ac_header>
12310 rm -f conftest.$ac_objext
12311 if { (ac_try="$ac_compile"
12312 case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_compile") 2>conftest.er1
12319 grep -v '^ *+' conftest.er1 >conftest.err
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_try") 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_header_compiler=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_header_compiler=no
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12354 echo "${ECHO_T}$ac_header_compiler" >&6; }
12356 # Is the header present?
12357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 #include <$ac_header>
12367 if { (ac_try="$ac_cpp conftest.$ac_ext"
12368 case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12375 grep -v '^ *+' conftest.er1 >conftest.err
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } >/dev/null; then
12380 if test -s conftest.err; then
12381 ac_cpp_err=$ac_c_preproc_warn_flag
12382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12389 if test -z "$ac_cpp_err"; then
12390 ac_header_preproc=yes
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_header_preproc=no
12398 rm -f conftest.err conftest.$ac_ext
12399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12400 echo "${ECHO_T}$ac_header_preproc" >&6; }
12402 # So? What about this header?
12403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12409 ac_header_preproc=yes
12412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12425 ## ------------------------------------ ##
12426 ## Report this to http://llvm.org/bugs/ ##
12427 ## ------------------------------------ ##
12429 ) | sed "s/^/$as_me: WARNING: /" >&2
12432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12437 eval "$as_ac_Header=\$ac_header_preproc"
12439 ac_res=`eval echo '${'$as_ac_Header'}'`
12440 { echo "$as_me:$LINENO: result: $ac_res" >&5
12441 echo "${ECHO_T}$ac_res" >&6; }
12444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12445 cat >>confdefs.h <<_ACEOF
12446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12453 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12454 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12455 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 cat >conftest.$ac_ext <<_ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12469 #ifndef FE_ALL_EXCEPT
12470 char *p = (char *) FE_ALL_EXCEPT;
12478 rm -f conftest.$ac_objext
12479 if { (ac_try="$ac_compile"
12480 case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_compile") 2>conftest.er1
12487 grep -v '^ *+' conftest.er1 >conftest.err
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12493 { (case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_try") 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; } &&
12502 { ac_try='test -s conftest.$ac_objext'
12503 { (case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_try") 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_cv_have_decl_FE_ALL_EXCEPT=no
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12523 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12524 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12526 cat >>confdefs.h <<_ACEOF
12527 #define HAVE_DECL_FE_ALL_EXCEPT 1
12532 cat >>confdefs.h <<_ACEOF
12533 #define HAVE_DECL_FE_ALL_EXCEPT 0
12538 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12539 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12540 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12555 char *p = (char *) FE_INEXACT;
12563 rm -f conftest.$ac_objext
12564 if { (ac_try="$ac_compile"
12565 case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_compile") 2>conftest.er1
12572 grep -v '^ *+' conftest.er1 >conftest.err
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12578 { (case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_try") 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_try") 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_cv_have_decl_FE_INEXACT=yes
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_cv_have_decl_FE_INEXACT=no
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12608 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12609 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12611 cat >>confdefs.h <<_ACEOF
12612 #define HAVE_DECL_FE_INEXACT 1
12617 cat >>confdefs.h <<_ACEOF
12618 #define HAVE_DECL_FE_INEXACT 0
12625 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12627 for ac_header in pthread.h
12629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 ac_res=`eval echo '${'$as_ac_Header'}'`
12637 { echo "$as_me:$LINENO: result: $ac_res" >&5
12638 echo "${ECHO_T}$ac_res" >&6; }
12640 # Is the header compilable?
12641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12643 cat >conftest.$ac_ext <<_ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 $ac_includes_default
12650 #include <$ac_header>
12652 rm -f conftest.$ac_objext
12653 if { (ac_try="$ac_compile"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_compile") 2>conftest.er1
12661 grep -v '^ *+' conftest.er1 >conftest.err
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_try") 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest.$ac_objext'
12677 { (case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_try") 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_header_compiler=yes
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 ac_header_compiler=no
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12696 echo "${ECHO_T}$ac_header_compiler" >&6; }
12698 # Is the header present?
12699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 #include <$ac_header>
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } >/dev/null; then
12722 if test -s conftest.err; then
12723 ac_cpp_err=$ac_c_preproc_warn_flag
12724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12731 if test -z "$ac_cpp_err"; then
12732 ac_header_preproc=yes
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 ac_header_preproc=no
12740 rm -f conftest.err conftest.$ac_ext
12741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12742 echo "${ECHO_T}$ac_header_preproc" >&6; }
12744 # So? What about this header?
12745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12751 ac_header_preproc=yes
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12767 ## ------------------------------------ ##
12768 ## Report this to http://llvm.org/bugs/ ##
12769 ## ------------------------------------ ##
12771 ) | sed "s/^/$as_me: WARNING: /" >&2
12774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 eval "$as_ac_Header=\$ac_header_preproc"
12781 ac_res=`eval echo '${'$as_ac_Header'}'`
12782 { echo "$as_me:$LINENO: result: $ac_res" >&5
12783 echo "${ECHO_T}$ac_res" >&6; }
12786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12787 cat >>confdefs.h <<_ACEOF
12788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12803 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12805 for ac_header in zlib.h
12807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 ac_res=`eval echo '${'$as_ac_Header'}'`
12815 { echo "$as_me:$LINENO: result: $ac_res" >&5
12816 echo "${ECHO_T}$ac_res" >&6; }
12818 # Is the header compilable?
12819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12821 cat >conftest.$ac_ext <<_ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h. */
12827 $ac_includes_default
12828 #include <$ac_header>
12830 rm -f conftest.$ac_objext
12831 if { (ac_try="$ac_compile"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_compile") 2>conftest.er1
12839 grep -v '^ *+' conftest.er1 >conftest.err
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12845 { (case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_try") 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest.$ac_objext'
12855 { (case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_try") 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 ac_header_compiler=yes
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 ac_header_compiler=no
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12874 echo "${ECHO_T}$ac_header_compiler" >&6; }
12876 # Is the header present?
12877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12879 cat >conftest.$ac_ext <<_ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 #include <$ac_header>
12887 if { (ac_try="$ac_cpp conftest.$ac_ext"
12888 case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12895 grep -v '^ *+' conftest.er1 >conftest.err
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } >/dev/null; then
12900 if test -s conftest.err; then
12901 ac_cpp_err=$ac_c_preproc_warn_flag
12902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12909 if test -z "$ac_cpp_err"; then
12910 ac_header_preproc=yes
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 ac_header_preproc=no
12918 rm -f conftest.err conftest.$ac_ext
12919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12920 echo "${ECHO_T}$ac_header_preproc" >&6; }
12922 # So? What about this header?
12923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12929 ac_header_preproc=yes
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12945 ## ------------------------------------ ##
12946 ## Report this to http://llvm.org/bugs/ ##
12947 ## ------------------------------------ ##
12949 ) | sed "s/^/$as_me: WARNING: /" >&2
12952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 eval "$as_ac_Header=\$ac_header_preproc"
12959 ac_res=`eval echo '${'$as_ac_Header'}'`
12960 { echo "$as_me:$LINENO: result: $ac_res" >&5
12961 echo "${ECHO_T}$ac_res" >&6; }
12964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12965 cat >>confdefs.h <<_ACEOF
12966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12982 if test "$llvm_cv_enable_libffi" = "yes" ; then
12985 for ac_header in ffi.h ffi/ffi.h
12987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 ac_res=`eval echo '${'$as_ac_Header'}'`
12995 { echo "$as_me:$LINENO: result: $ac_res" >&5
12996 echo "${ECHO_T}$ac_res" >&6; }
12998 # Is the header compilable?
12999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13001 cat >conftest.$ac_ext <<_ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 $ac_includes_default
13008 #include <$ac_header>
13010 rm -f conftest.$ac_objext
13011 if { (ac_try="$ac_compile"
13012 case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_compile") 2>conftest.er1
13019 grep -v '^ *+' conftest.er1 >conftest.err
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13025 { (case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_try") 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; } &&
13034 { ac_try='test -s conftest.$ac_objext'
13035 { (case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_try") 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_header_compiler=yes
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ac_header_compiler=no
13052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13054 echo "${ECHO_T}$ac_header_compiler" >&6; }
13056 # Is the header present?
13057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13059 cat >conftest.$ac_ext <<_ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13065 #include <$ac_header>
13067 if { (ac_try="$ac_cpp conftest.$ac_ext"
13068 case "(($ac_try" in
13069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13070 *) ac_try_echo=$ac_try;;
13072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13075 grep -v '^ *+' conftest.er1 >conftest.err
13077 cat conftest.err >&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } >/dev/null; then
13080 if test -s conftest.err; then
13081 ac_cpp_err=$ac_c_preproc_warn_flag
13082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13089 if test -z "$ac_cpp_err"; then
13090 ac_header_preproc=yes
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13095 ac_header_preproc=no
13098 rm -f conftest.err conftest.$ac_ext
13099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13100 echo "${ECHO_T}$ac_header_preproc" >&6; }
13102 # So? What about this header?
13103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13109 ac_header_preproc=yes
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13125 ## ------------------------------------ ##
13126 ## Report this to http://llvm.org/bugs/ ##
13127 ## ------------------------------------ ##
13129 ) | sed "s/^/$as_me: WARNING: /" >&2
13132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 eval "$as_ac_Header=\$ac_header_preproc"
13139 ac_res=`eval echo '${'$as_ac_Header'}'`
13140 { echo "$as_me:$LINENO: result: $ac_res" >&5
13141 echo "${ECHO_T}$ac_res" >&6; }
13144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13145 cat >>confdefs.h <<_ACEOF
13146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13156 for ac_header in CrashReporterClient.h
13158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 ac_res=`eval echo '${'$as_ac_Header'}'`
13166 { echo "$as_me:$LINENO: result: $ac_res" >&5
13167 echo "${ECHO_T}$ac_res" >&6; }
13169 # Is the header compilable?
13170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13172 cat >conftest.$ac_ext <<_ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 $ac_includes_default
13179 #include <$ac_header>
13181 rm -f conftest.$ac_objext
13182 if { (ac_try="$ac_compile"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_compile") 2>conftest.er1
13190 grep -v '^ *+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13196 { (case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_try") 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest.$ac_objext'
13206 { (case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_try") 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_header_compiler=yes
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ac_header_compiler=no
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13225 echo "${ECHO_T}$ac_header_compiler" >&6; }
13227 # Is the header present?
13228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13230 cat >conftest.$ac_ext <<_ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13236 #include <$ac_header>
13238 if { (ac_try="$ac_cpp conftest.$ac_ext"
13239 case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13246 grep -v '^ *+' conftest.er1 >conftest.err
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } >/dev/null; then
13251 if test -s conftest.err; then
13252 ac_cpp_err=$ac_c_preproc_warn_flag
13253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13260 if test -z "$ac_cpp_err"; then
13261 ac_header_preproc=yes
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_header_preproc=no
13269 rm -f conftest.err conftest.$ac_ext
13270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13271 echo "${ECHO_T}$ac_header_preproc" >&6; }
13273 # So? What about this header?
13274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13280 ac_header_preproc=yes
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13296 ## ------------------------------------ ##
13297 ## Report this to http://llvm.org/bugs/ ##
13298 ## ------------------------------------ ##
13300 ) | sed "s/^/$as_me: WARNING: /" >&2
13303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 eval "$as_ac_Header=\$ac_header_preproc"
13310 ac_res=`eval echo '${'$as_ac_Header'}'`
13311 { echo "$as_me:$LINENO: result: $ac_res" >&5
13312 echo "${ECHO_T}$ac_res" >&6; }
13315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13316 cat >>confdefs.h <<_ACEOF
13317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13325 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13326 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13327 cat >conftest.$ac_ext <<_ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13335 extern const char *__crashreporter_info__;
13337 __crashreporter_info__ = "test";
13343 rm -f conftest.$ac_objext conftest$ac_exeext
13344 if { (ac_try="$ac_link"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_link") 2>conftest.er1
13352 grep -v '^ *+' conftest.er1 >conftest.err
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } &&
13367 { ac_try='test -s conftest$ac_exeext'
13368 { (case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_try") 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13378 { echo "$as_me:$LINENO: result: yes" >&5
13379 echo "${ECHO_T}yes" >&6; }
13381 cat >>confdefs.h <<\_ACEOF
13382 #define HAVE_CRASHREPORTER_INFO 1
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13391 { echo "$as_me:$LINENO: result: no" >&5
13392 echo "${ECHO_T}no" >&6; }
13394 cat >>confdefs.h <<\_ACEOF
13395 #define HAVE_CRASHREPORTER_INFO 0
13401 rm -f core conftest.err conftest.$ac_objext \
13402 conftest$ac_exeext conftest.$ac_ext
13406 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13407 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13408 if test "${ac_cv_huge_val_sanity+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 ac_cpp='$CXXCPP $CPPFLAGS'
13414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13418 ac_save_CXXFLAGS=$CXXFLAGS
13419 CXXFLAGS="$CXXFLAGS -pedantic"
13420 if test "$cross_compiling" = yes; then
13421 ac_cv_huge_val_sanity=yes
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13433 double x = HUGE_VAL; return x != x;
13438 rm -f conftest$ac_exeext
13439 if { (ac_try="$ac_link"
13440 case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_link") 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
13458 ac_cv_huge_val_sanity=yes
13460 echo "$as_me: program exited with status $ac_status" >&5
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ( exit $ac_status )
13465 ac_cv_huge_val_sanity=no
13467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13471 CXXFLAGS=$ac_save_CXXFLAGS
13473 ac_cpp='$CPP $CPPFLAGS'
13474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13480 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13481 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13482 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13485 { echo "$as_me:$LINENO: checking for pid_t" >&5
13486 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13487 if test "${ac_cv_type_pid_t+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 $ac_includes_default
13497 typedef pid_t ac__type_new_;
13501 if ((ac__type_new_ *) 0)
13503 if (sizeof (ac__type_new_))
13509 rm -f conftest.$ac_objext
13510 if { (ac_try="$ac_compile"
13511 case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_compile") 2>conftest.er1
13518 grep -v '^ *+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13524 { (case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_try") 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; } &&
13533 { ac_try='test -s conftest.$ac_objext'
13534 { (case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_try") 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_cv_type_pid_t=yes
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 ac_cv_type_pid_t=no
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13554 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13555 if test $ac_cv_type_pid_t = yes; then
13559 cat >>confdefs.h <<_ACEOF
13565 { echo "$as_me:$LINENO: checking for size_t" >&5
13566 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13567 if test "${ac_cv_type_size_t+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 cat >conftest.$ac_ext <<_ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 $ac_includes_default
13577 typedef size_t ac__type_new_;
13581 if ((ac__type_new_ *) 0)
13583 if (sizeof (ac__type_new_))
13589 rm -f conftest.$ac_objext
13590 if { (ac_try="$ac_compile"
13591 case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_compile") 2>conftest.er1
13598 grep -v '^ *+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13604 { (case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_try") 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest.$ac_objext'
13614 { (case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_try") 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_cv_type_size_t=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_cv_type_size_t=no
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13634 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13635 if test $ac_cv_type_size_t = yes; then
13639 cat >>confdefs.h <<_ACEOF
13640 #define size_t unsigned int
13646 cat >>confdefs.h <<_ACEOF
13647 #define RETSIGTYPE void
13650 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13651 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13652 if test "${ac_cv_struct_tm+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 cat >conftest.$ac_ext <<_ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661 #include <sys/types.h>
13667 struct tm *tp; tp->tm_sec;
13672 rm -f conftest.$ac_objext
13673 if { (ac_try="$ac_compile"
13674 case "(($ac_try" in
13675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676 *) ac_try_echo=$ac_try;;
13678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679 (eval "$ac_compile") 2>conftest.er1
13681 grep -v '^ *+' conftest.er1 >conftest.err
13683 cat conftest.err >&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } &&
13686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13687 { (case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_try") 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; } &&
13696 { ac_try='test -s conftest.$ac_objext'
13697 { (case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_try") 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 ac_cv_struct_tm=time.h
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13711 ac_cv_struct_tm=sys/time.h
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13717 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13718 if test $ac_cv_struct_tm = sys/time.h; then
13720 cat >>confdefs.h <<\_ACEOF
13721 #define TM_IN_SYS_TIME 1
13726 { echo "$as_me:$LINENO: checking for int64_t" >&5
13727 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13728 if test "${ac_cv_type_int64_t+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 cat >conftest.$ac_ext <<_ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13737 $ac_includes_default
13738 typedef int64_t ac__type_new_;
13742 if ((ac__type_new_ *) 0)
13744 if (sizeof (ac__type_new_))
13750 rm -f conftest.$ac_objext
13751 if { (ac_try="$ac_compile"
13752 case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_compile") 2>conftest.er1
13759 grep -v '^ *+' conftest.er1 >conftest.err
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } &&
13764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest.$ac_objext'
13775 { (case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_try") 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_type_int64_t=yes
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13789 ac_cv_type_int64_t=no
13792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13795 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13796 if test $ac_cv_type_int64_t = yes; then
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_INT64_T 1
13804 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13805 echo "$as_me: error: Type int64_t required but not found" >&2;}
13806 { (exit 1); exit 1; }; }
13809 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13810 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13811 if test "${ac_cv_type_uint64_t+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 cat >conftest.$ac_ext <<_ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 $ac_includes_default
13821 typedef uint64_t ac__type_new_;
13825 if ((ac__type_new_ *) 0)
13827 if (sizeof (ac__type_new_))
13833 rm -f conftest.$ac_objext
13834 if { (ac_try="$ac_compile"
13835 case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_compile") 2>conftest.er1
13842 grep -v '^ *+' conftest.er1 >conftest.err
13844 cat conftest.err >&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13848 { (case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_try") 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; } &&
13857 { ac_try='test -s conftest.$ac_objext'
13858 { (case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_try") 2>&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; }; then
13867 ac_cv_type_uint64_t=yes
13869 echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 ac_cv_type_uint64_t=no
13875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13878 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13879 if test $ac_cv_type_uint64_t = yes; then
13881 cat >>confdefs.h <<_ACEOF
13882 #define HAVE_UINT64_T 1
13887 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13888 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13889 if test "${ac_cv_type_u_int64_t+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13898 $ac_includes_default
13899 typedef u_int64_t ac__type_new_;
13903 if ((ac__type_new_ *) 0)
13905 if (sizeof (ac__type_new_))
13911 rm -f conftest.$ac_objext
13912 if { (ac_try="$ac_compile"
13913 case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_compile") 2>conftest.er1
13920 grep -v '^ *+' conftest.er1 >conftest.err
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } &&
13925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest.$ac_objext'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_type_u_int64_t=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_type_u_int64_t=no
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13955 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13956 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13957 if test $ac_cv_type_u_int64_t = yes; then
13959 cat >>confdefs.h <<_ACEOF
13960 #define HAVE_U_INT64_T 1
13965 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13966 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13967 { (exit 1); exit 1; }; }
13976 for ac_func in backtrace getcwd
13978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 cat >conftest.$ac_ext <<_ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13992 #define $ac_func innocuous_$ac_func
13994 /* System header to define __stub macros and hopefully few prototypes,
13995 which can conflict with char $ac_func (); below.
13996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13997 <limits.h> exists even on freestanding compilers. */
14000 # include <limits.h>
14002 # include <assert.h>
14007 /* Override any GCC internal prototype to avoid an error.
14008 Use char because int might match the return type of a GCC
14009 builtin and then its argument prototype would still apply. */
14014 /* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017 #if defined __stub_$ac_func || defined __stub___$ac_func
14024 return $ac_func ();
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14038 grep -v '^ *+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14044 { (case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_try") 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest$ac_exeext'
14054 { (case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_try") 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 eval "$as_ac_var=yes"
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 eval "$as_ac_var=no"
14071 rm -f core conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14074 ac_res=`eval echo '${'$as_ac_var'}'`
14075 { echo "$as_me:$LINENO: result: $ac_res" >&5
14076 echo "${ECHO_T}$ac_res" >&6; }
14077 if test `eval echo '${'$as_ac_var'}'` = yes; then
14078 cat >>confdefs.h <<_ACEOF
14079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14090 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 cat >conftest.$ac_ext <<_ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14106 #define $ac_func innocuous_$ac_func
14108 /* System header to define __stub macros and hopefully few prototypes,
14109 which can conflict with char $ac_func (); below.
14110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14111 <limits.h> exists even on freestanding compilers. */
14114 # include <limits.h>
14116 # include <assert.h>
14121 /* Override any GCC internal prototype to avoid an error.
14122 Use char because int might match the return type of a GCC
14123 builtin and then its argument prototype would still apply. */
14128 /* The GNU C library defines this for functions which it implements
14129 to always fail with ENOSYS. Some functions are actually named
14130 something starting with __ and the normal name is an alias. */
14131 #if defined __stub_$ac_func || defined __stub___$ac_func
14138 return $ac_func ();
14143 rm -f conftest.$ac_objext conftest$ac_exeext
14144 if { (ac_try="$ac_link"
14145 case "(($ac_try" in
14146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147 *) ac_try_echo=$ac_try;;
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_link") 2>conftest.er1
14152 grep -v '^ *+' conftest.er1 >conftest.err
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
14157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14158 { (case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_try") 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest$ac_exeext'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 eval "$as_ac_var=yes"
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 eval "$as_ac_var=no"
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14188 ac_res=`eval echo '${'$as_ac_var'}'`
14189 { echo "$as_me:$LINENO: result: $ac_res" >&5
14190 echo "${ECHO_T}$ac_res" >&6; }
14191 if test `eval echo '${'$as_ac_var'}'` = yes; then
14192 cat >>confdefs.h <<_ACEOF
14193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14202 for ac_func in isatty mkdtemp mkstemp
14204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 cat >conftest.$ac_ext <<_ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14218 #define $ac_func innocuous_$ac_func
14220 /* System header to define __stub macros and hopefully few prototypes,
14221 which can conflict with char $ac_func (); below.
14222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14223 <limits.h> exists even on freestanding compilers. */
14226 # include <limits.h>
14228 # include <assert.h>
14233 /* Override any GCC internal prototype to avoid an error.
14234 Use char because int might match the return type of a GCC
14235 builtin and then its argument prototype would still apply. */
14240 /* The GNU C library defines this for functions which it implements
14241 to always fail with ENOSYS. Some functions are actually named
14242 something starting with __ and the normal name is an alias. */
14243 #if defined __stub_$ac_func || defined __stub___$ac_func
14250 return $ac_func ();
14255 rm -f conftest.$ac_objext conftest$ac_exeext
14256 if { (ac_try="$ac_link"
14257 case "(($ac_try" in
14258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262 (eval "$ac_link") 2>conftest.er1
14264 grep -v '^ *+' conftest.er1 >conftest.err
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14270 { (case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_try") 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest$ac_exeext'
14280 { (case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_try") 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 eval "$as_ac_var=yes"
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 eval "$as_ac_var=no"
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14300 ac_res=`eval echo '${'$as_ac_var'}'`
14301 { echo "$as_me:$LINENO: result: $ac_res" >&5
14302 echo "${ECHO_T}$ac_res" >&6; }
14303 if test `eval echo '${'$as_ac_var'}'` = yes; then
14304 cat >>confdefs.h <<_ACEOF
14305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14317 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 cat >conftest.$ac_ext <<_ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14333 #define $ac_func innocuous_$ac_func
14335 /* System header to define __stub macros and hopefully few prototypes,
14336 which can conflict with char $ac_func (); below.
14337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14338 <limits.h> exists even on freestanding compilers. */
14341 # include <limits.h>
14343 # include <assert.h>
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14355 /* The GNU C library defines this for functions which it implements
14356 to always fail with ENOSYS. Some functions are actually named
14357 something starting with __ and the normal name is an alias. */
14358 #if defined __stub_$ac_func || defined __stub___$ac_func
14365 return $ac_func ();
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_link") 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385 { (case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_try") 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest$ac_exeext'
14395 { (case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_try") 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 eval "$as_ac_var=yes"
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14409 eval "$as_ac_var=no"
14412 rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext conftest.$ac_ext
14415 ac_res=`eval echo '${'$as_ac_var'}'`
14416 { echo "$as_me:$LINENO: result: $ac_res" >&5
14417 echo "${ECHO_T}$ac_res" >&6; }
14418 if test `eval echo '${'$as_ac_var'}'` = yes; then
14419 cat >>confdefs.h <<_ACEOF
14420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14429 for ac_func in strerror strerror_r setenv
14431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 cat >conftest.$ac_ext <<_ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14445 #define $ac_func innocuous_$ac_func
14447 /* System header to define __stub macros and hopefully few prototypes,
14448 which can conflict with char $ac_func (); below.
14449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14450 <limits.h> exists even on freestanding compilers. */
14453 # include <limits.h>
14455 # include <assert.h>
14460 /* Override any GCC internal prototype to avoid an error.
14461 Use char because int might match the return type of a GCC
14462 builtin and then its argument prototype would still apply. */
14467 /* The GNU C library defines this for functions which it implements
14468 to always fail with ENOSYS. Some functions are actually named
14469 something starting with __ and the normal name is an alias. */
14470 #if defined __stub_$ac_func || defined __stub___$ac_func
14477 return $ac_func ();
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (ac_try="$ac_link"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489 (eval "$ac_link") 2>conftest.er1
14491 grep -v '^ *+' conftest.er1 >conftest.err
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14497 { (case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_try") 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest$ac_exeext'
14507 { (case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_try") 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 eval "$as_ac_var=yes"
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 eval "$as_ac_var=no"
14524 rm -f core conftest.err conftest.$ac_objext \
14525 conftest$ac_exeext conftest.$ac_ext
14527 ac_res=`eval echo '${'$as_ac_var'}'`
14528 { echo "$as_me:$LINENO: result: $ac_res" >&5
14529 echo "${ECHO_T}$ac_res" >&6; }
14530 if test `eval echo '${'$as_ac_var'}'` = yes; then
14531 cat >>confdefs.h <<_ACEOF
14532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14542 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14558 #define $ac_func innocuous_$ac_func
14560 /* System header to define __stub macros and hopefully few prototypes,
14561 which can conflict with char $ac_func (); below.
14562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14563 <limits.h> exists even on freestanding compilers. */
14566 # include <limits.h>
14568 # include <assert.h>
14573 /* Override any GCC internal prototype to avoid an error.
14574 Use char because int might match the return type of a GCC
14575 builtin and then its argument prototype would still apply. */
14580 /* The GNU C library defines this for functions which it implements
14581 to always fail with ENOSYS. Some functions are actually named
14582 something starting with __ and the normal name is an alias. */
14583 #if defined __stub_$ac_func || defined __stub___$ac_func
14590 return $ac_func ();
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (ac_try="$ac_link"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_link") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest$ac_exeext'
14620 { (case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_try") 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 eval "$as_ac_var=yes"
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 eval "$as_ac_var=no"
14637 rm -f core conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext conftest.$ac_ext
14640 ac_res=`eval echo '${'$as_ac_var'}'`
14641 { echo "$as_me:$LINENO: result: $ac_res" >&5
14642 echo "${ECHO_T}$ac_res" >&6; }
14643 if test `eval echo '${'$as_ac_var'}'` = yes; then
14644 cat >>confdefs.h <<_ACEOF
14645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14656 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 cat >conftest.$ac_ext <<_ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14672 #define $ac_func innocuous_$ac_func
14674 /* System header to define __stub macros and hopefully few prototypes,
14675 which can conflict with char $ac_func (); below.
14676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14677 <limits.h> exists even on freestanding compilers. */
14680 # include <limits.h>
14682 # include <assert.h>
14687 /* Override any GCC internal prototype to avoid an error.
14688 Use char because int might match the return type of a GCC
14689 builtin and then its argument prototype would still apply. */
14694 /* The GNU C library defines this for functions which it implements
14695 to always fail with ENOSYS. Some functions are actually named
14696 something starting with __ and the normal name is an alias. */
14697 #if defined __stub_$ac_func || defined __stub___$ac_func
14704 return $ac_func ();
14709 rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (ac_try="$ac_link"
14711 case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_link") 2>conftest.er1
14718 grep -v '^ *+' conftest.er1 >conftest.err
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14724 { (case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest$ac_exeext'
14734 { (case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_try") 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 eval "$as_ac_var=yes"
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 eval "$as_ac_var=no"
14751 rm -f core conftest.err conftest.$ac_objext \
14752 conftest$ac_exeext conftest.$ac_ext
14754 ac_res=`eval echo '${'$as_ac_var'}'`
14755 { echo "$as_me:$LINENO: result: $ac_res" >&5
14756 echo "${ECHO_T}$ac_res" >&6; }
14757 if test `eval echo '${'$as_ac_var'}'` = yes; then
14758 cat >>confdefs.h <<_ACEOF
14759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14767 for ac_func in futimes futimens
14769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 cat >conftest.$ac_ext <<_ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14783 #define $ac_func innocuous_$ac_func
14785 /* System header to define __stub macros and hopefully few prototypes,
14786 which can conflict with char $ac_func (); below.
14787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14788 <limits.h> exists even on freestanding compilers. */
14791 # include <limits.h>
14793 # include <assert.h>
14798 /* Override any GCC internal prototype to avoid an error.
14799 Use char because int might match the return type of a GCC
14800 builtin and then its argument prototype would still apply. */
14805 /* The GNU C library defines this for functions which it implements
14806 to always fail with ENOSYS. Some functions are actually named
14807 something starting with __ and the normal name is an alias. */
14808 #if defined __stub_$ac_func || defined __stub___$ac_func
14815 return $ac_func ();
14820 rm -f conftest.$ac_objext conftest$ac_exeext
14821 if { (ac_try="$ac_link"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_link") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14835 { (case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_try") 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest$ac_exeext'
14845 { (case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_try") 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 eval "$as_ac_var=yes"
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 eval "$as_ac_var=no"
14862 rm -f core conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14865 ac_res=`eval echo '${'$as_ac_var'}'`
14866 { echo "$as_me:$LINENO: result: $ac_res" >&5
14867 echo "${ECHO_T}$ac_res" >&6; }
14868 if test `eval echo '${'$as_ac_var'}'` = yes; then
14869 cat >>confdefs.h <<_ACEOF
14870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14876 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14877 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14878 if test "${llvm_cv_c_printf_a+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 ac_cpp='$CPP $CPPFLAGS'
14883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14887 if test "$cross_compiling" = yes; then
14888 llvmac_cv_c_printf_a=no
14890 cat >conftest.$ac_ext <<_ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14899 #include <stdlib.h>
14905 volatile double A, B;
14909 sprintf(Buffer, "%a", A);
14913 if (A != 0x1.999999999999ap-4)
14920 rm -f conftest$ac_exeext
14921 if { (ac_try="$ac_link"
14922 case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_link") 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14931 { (case "(($ac_try" in
14932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933 *) ac_try_echo=$ac_try;;
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936 (eval "$ac_try") 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 llvm_cv_c_printf_a=yes
14942 echo "$as_me: program exited with status $ac_status" >&5
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ( exit $ac_status )
14947 llvmac_cv_c_printf_a=no
14949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14954 ac_cpp='$CPP $CPPFLAGS'
14955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14960 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14961 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14962 if test "$llvm_cv_c_printf_a" = "yes"; then
14964 cat >>confdefs.h <<\_ACEOF
14965 #define HAVE_PRINTF_A 1
14972 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14973 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14974 if test "${ac_cv_func_rand48+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 ac_cpp='$CXXCPP $CPPFLAGS'
14980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14984 cat >conftest.$ac_ext <<_ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 #include <stdlib.h>
14994 srand48(0);lrand48();drand48();
14999 rm -f conftest.$ac_objext
15000 if { (ac_try="$ac_compile"
15001 case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_compile") 2>conftest.er1
15008 grep -v '^ *+' conftest.er1 >conftest.err
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15014 { (case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_try") 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; } &&
15023 { ac_try='test -s conftest.$ac_objext'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 ac_cv_func_rand48=yes
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 ac_cv_func_rand48=no
15041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15043 ac_cpp='$CPP $CPPFLAGS'
15044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15050 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15051 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15053 if test "$ac_cv_func_rand48" = "yes" ; then
15055 cat >>confdefs.h <<\_ACEOF
15056 #define HAVE_RAND48 1
15062 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15063 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15064 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 $ac_includes_default
15078 char *p = (char *) arc4random;
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15095 grep -v '^ *+' conftest.er1 >conftest.err
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest.$ac_objext'
15111 { (case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_try") 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_cv_have_decl_arc4random=yes
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15125 ac_cv_have_decl_arc4random=no
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15131 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15132 if test $ac_cv_have_decl_arc4random = yes; then
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_DECL_ARC4RANDOM 1
15140 cat >>confdefs.h <<_ACEOF
15141 #define HAVE_DECL_ARC4RANDOM 0
15149 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15150 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15151 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 cat >conftest.$ac_ext <<_ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160 $ac_includes_default
15165 char *p = (char *) strerror_s;
15173 rm -f conftest.$ac_objext
15174 if { (ac_try="$ac_compile"
15175 case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_compile") 2>conftest.er1
15182 grep -v '^ *+' conftest.er1 >conftest.err
15184 cat conftest.err >&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15188 { (case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_try") 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; } &&
15197 { ac_try='test -s conftest.$ac_objext'
15198 { (case "(($ac_try" in
15199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15200 *) ac_try_echo=$ac_try;;
15202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15203 (eval "$ac_try") 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 ac_cv_have_decl_strerror_s=yes
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15212 ac_cv_have_decl_strerror_s=no
15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15218 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15219 if test $ac_cv_have_decl_strerror_s = yes; then
15221 cat >>confdefs.h <<_ACEOF
15222 #define HAVE_DECL_STRERROR_S 1
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_DECL_STRERROR_S 0
15236 if test "$llvm_cv_os_type" = "MingW" ; then
15237 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15238 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15239 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15242 ac_check_lib_save_LIBS=$LIBS
15244 cat >conftest.$ac_ext <<_ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15251 /* Override any GCC internal prototype to avoid an error.
15252 Use char because int might match the return type of a GCC
15253 builtin and then its argument prototype would still apply. */
15266 rm -f conftest.$ac_objext conftest$ac_exeext
15267 if { (ac_try="$ac_link"
15268 case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_link") 2>conftest.er1
15275 grep -v '^ *+' conftest.er1 >conftest.err
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } &&
15280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15281 { (case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_try") 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; } &&
15290 { ac_try='test -s conftest$ac_exeext'
15291 { (case "(($ac_try" in
15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293 *) ac_try_echo=$ac_try;;
15295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15296 (eval "$ac_try") 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_cv_lib_gcc__alloca=yes
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_cv_lib_gcc__alloca=no
15308 rm -f core conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15310 LIBS=$ac_check_lib_save_LIBS
15312 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15313 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15314 if test $ac_cv_lib_gcc__alloca = yes; then
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE__ALLOCA 1
15322 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15323 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15324 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 ac_check_lib_save_LIBS=$LIBS
15329 cat >conftest.$ac_ext <<_ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15346 return __alloca ();
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>conftest.er1
15360 grep -v '^ *+' conftest.er1 >conftest.err
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15366 { (case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_try") 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest$ac_exeext'
15376 { (case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_try") 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_cv_lib_gcc___alloca=yes
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_cv_lib_gcc___alloca=no
15393 rm -f core conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15395 LIBS=$ac_check_lib_save_LIBS
15397 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15398 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15399 if test $ac_cv_lib_gcc___alloca = yes; then
15401 cat >>confdefs.h <<\_ACEOF
15402 #define HAVE___ALLOCA 1
15407 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15408 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15409 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 ac_check_lib_save_LIBS=$LIBS
15414 cat >conftest.$ac_ext <<_ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15421 /* Override any GCC internal prototype to avoid an error.
15422 Use char because int might match the return type of a GCC
15423 builtin and then its argument prototype would still apply. */
15431 return __chkstk ();
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (ac_try="$ac_link"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_link") 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15451 { (case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_try") 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; } &&
15460 { ac_try='test -s conftest$ac_exeext'
15461 { (case "(($ac_try" in
15462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463 *) ac_try_echo=$ac_try;;
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466 (eval "$ac_try") 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
15470 ac_cv_lib_gcc___chkstk=yes
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 ac_cv_lib_gcc___chkstk=no
15478 rm -f core conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15480 LIBS=$ac_check_lib_save_LIBS
15482 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15483 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15484 if test $ac_cv_lib_gcc___chkstk = yes; then
15486 cat >>confdefs.h <<\_ACEOF
15487 #define HAVE___CHKSTK 1
15492 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15493 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15494 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 ac_check_lib_save_LIBS=$LIBS
15499 cat >conftest.$ac_ext <<_ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15506 /* Override any GCC internal prototype to avoid an error.
15507 Use char because int might match the return type of a GCC
15508 builtin and then its argument prototype would still apply. */
15512 char __chkstk_ms ();
15516 return __chkstk_ms ();
15521 rm -f conftest.$ac_objext conftest$ac_exeext
15522 if { (ac_try="$ac_link"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_link") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15536 { (case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_try") 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest$ac_exeext'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_lib_gcc___chkstk_ms=yes
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 ac_cv_lib_gcc___chkstk_ms=no
15563 rm -f core conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_check_lib_save_LIBS
15567 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15568 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15569 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15571 cat >>confdefs.h <<\_ACEOF
15572 #define HAVE___CHKSTK_MS 1
15577 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15578 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15579 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 ac_check_lib_save_LIBS=$LIBS
15584 cat >conftest.$ac_ext <<_ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15591 /* Override any GCC internal prototype to avoid an error.
15592 Use char because int might match the return type of a GCC
15593 builtin and then its argument prototype would still apply. */
15601 return ___chkstk ();
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (ac_try="$ac_link"
15608 case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_link") 2>conftest.er1
15615 grep -v '^ *+' conftest.er1 >conftest.err
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest$ac_exeext'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15640 ac_cv_lib_gcc____chkstk=yes
15642 echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 ac_cv_lib_gcc____chkstk=no
15648 rm -f core conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15652 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15653 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15654 if test $ac_cv_lib_gcc____chkstk = yes; then
15656 cat >>confdefs.h <<\_ACEOF
15657 #define HAVE____CHKSTK 1
15662 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15663 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15664 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15667 ac_check_lib_save_LIBS=$LIBS
15669 cat >conftest.$ac_ext <<_ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15676 /* Override any GCC internal prototype to avoid an error.
15677 Use char because int might match the return type of a GCC
15678 builtin and then its argument prototype would still apply. */
15682 char ___chkstk_ms ();
15686 return ___chkstk_ms ();
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (ac_try="$ac_link"
15693 case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_link") 2>conftest.er1
15700 grep -v '^ *+' conftest.er1 >conftest.err
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } &&
15705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15706 { (case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_try") 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; } &&
15715 { ac_try='test -s conftest$ac_exeext'
15716 { (case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_try") 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 ac_cv_lib_gcc____chkstk_ms=yes
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15730 ac_cv_lib_gcc____chkstk_ms=no
15733 rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735 LIBS=$ac_check_lib_save_LIBS
15737 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15738 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15739 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15741 cat >>confdefs.h <<\_ACEOF
15742 #define HAVE____CHKSTK_MS 1
15748 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15749 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15750 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 ac_check_lib_save_LIBS=$LIBS
15755 cat >conftest.$ac_ext <<_ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15762 /* Override any GCC internal prototype to avoid an error.
15763 Use char because int might match the return type of a GCC
15764 builtin and then its argument prototype would still apply. */
15772 return __ashldi3 ();
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (ac_try="$ac_link"
15779 case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_link") 2>conftest.er1
15786 grep -v '^ *+' conftest.er1 >conftest.err
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15792 { (case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_try") 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; } &&
15801 { ac_try='test -s conftest$ac_exeext'
15802 { (case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_try") 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_cv_lib_gcc___ashldi3=yes
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_cv_lib_gcc___ashldi3=no
15819 rm -f core conftest.err conftest.$ac_objext \
15820 conftest$ac_exeext conftest.$ac_ext
15821 LIBS=$ac_check_lib_save_LIBS
15823 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15824 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15825 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15827 cat >>confdefs.h <<\_ACEOF
15828 #define HAVE___ASHLDI3 1
15833 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15834 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15835 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 ac_check_lib_save_LIBS=$LIBS
15840 cat >conftest.$ac_ext <<_ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h. */
15847 /* Override any GCC internal prototype to avoid an error.
15848 Use char because int might match the return type of a GCC
15849 builtin and then its argument prototype would still apply. */
15857 return __ashrdi3 ();
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (ac_try="$ac_link"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_link") 2>conftest.er1
15871 grep -v '^ *+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } &&
15876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877 { (case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_try") 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; } &&
15886 { ac_try='test -s conftest$ac_exeext'
15887 { (case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_try") 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_cv_lib_gcc___ashrdi3=yes
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 ac_cv_lib_gcc___ashrdi3=no
15904 rm -f core conftest.err conftest.$ac_objext \
15905 conftest$ac_exeext conftest.$ac_ext
15906 LIBS=$ac_check_lib_save_LIBS
15908 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15909 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15910 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15912 cat >>confdefs.h <<\_ACEOF
15913 #define HAVE___ASHRDI3 1
15918 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15919 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15920 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15921 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 ac_check_lib_save_LIBS=$LIBS
15925 cat >conftest.$ac_ext <<_ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15932 /* Override any GCC internal prototype to avoid an error.
15933 Use char because int might match the return type of a GCC
15934 builtin and then its argument prototype would still apply. */
15942 return __divdi3 ();
15947 rm -f conftest.$ac_objext conftest$ac_exeext
15948 if { (ac_try="$ac_link"
15949 case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_link") 2>conftest.er1
15956 grep -v '^ *+' conftest.er1 >conftest.err
15958 cat conftest.err >&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); } &&
15961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15962 { (case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_try") 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; } &&
15971 { ac_try='test -s conftest$ac_exeext'
15972 { (case "(($ac_try" in
15973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977 (eval "$ac_try") 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 ac_cv_lib_gcc___divdi3=yes
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ac_cv_lib_gcc___divdi3=no
15989 rm -f core conftest.err conftest.$ac_objext \
15990 conftest$ac_exeext conftest.$ac_ext
15991 LIBS=$ac_check_lib_save_LIBS
15993 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15994 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15995 if test $ac_cv_lib_gcc___divdi3 = yes; then
15997 cat >>confdefs.h <<\_ACEOF
15998 #define HAVE___DIVDI3 1
16003 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16004 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16005 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 ac_check_lib_save_LIBS=$LIBS
16010 cat >conftest.$ac_ext <<_ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16017 /* Override any GCC internal prototype to avoid an error.
16018 Use char because int might match the return type of a GCC
16019 builtin and then its argument prototype would still apply. */
16027 return __fixdfdi ();
16032 rm -f conftest.$ac_objext conftest$ac_exeext
16033 if { (ac_try="$ac_link"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_link") 2>conftest.er1
16041 grep -v '^ *+' conftest.er1 >conftest.err
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16047 { (case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_try") 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest$ac_exeext'
16057 { (case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_try") 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 ac_cv_lib_gcc___fixdfdi=yes
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ac_cv_lib_gcc___fixdfdi=no
16074 rm -f core conftest.err conftest.$ac_objext \
16075 conftest$ac_exeext conftest.$ac_ext
16076 LIBS=$ac_check_lib_save_LIBS
16078 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16079 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16080 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16082 cat >>confdefs.h <<\_ACEOF
16083 #define HAVE___FIXDFDI 1
16088 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16089 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16090 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 ac_check_lib_save_LIBS=$LIBS
16095 cat >conftest.$ac_ext <<_ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16102 /* Override any GCC internal prototype to avoid an error.
16103 Use char because int might match the return type of a GCC
16104 builtin and then its argument prototype would still apply. */
16112 return __fixsfdi ();
16117 rm -f conftest.$ac_objext conftest$ac_exeext
16118 if { (ac_try="$ac_link"
16119 case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_link") 2>conftest.er1
16126 grep -v '^ *+' conftest.er1 >conftest.err
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest$ac_exeext'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_try") 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_lib_gcc___fixsfdi=yes
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 ac_cv_lib_gcc___fixsfdi=no
16159 rm -f core conftest.err conftest.$ac_objext \
16160 conftest$ac_exeext conftest.$ac_ext
16161 LIBS=$ac_check_lib_save_LIBS
16163 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16164 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16165 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16167 cat >>confdefs.h <<\_ACEOF
16168 #define HAVE___FIXSFDI 1
16173 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16174 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16175 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 ac_check_lib_save_LIBS=$LIBS
16180 cat >conftest.$ac_ext <<_ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16187 /* Override any GCC internal prototype to avoid an error.
16188 Use char because int might match the return type of a GCC
16189 builtin and then its argument prototype would still apply. */
16193 char __floatdidf ();
16197 return __floatdidf ();
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_link") 2>conftest.er1
16211 grep -v '^ *+' conftest.er1 >conftest.err
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
16216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16217 { (case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_try") 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; } &&
16226 { ac_try='test -s conftest$ac_exeext'
16227 { (case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_try") 2>&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236 ac_cv_lib_gcc___floatdidf=yes
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16241 ac_cv_lib_gcc___floatdidf=no
16244 rm -f core conftest.err conftest.$ac_objext \
16245 conftest$ac_exeext conftest.$ac_ext
16246 LIBS=$ac_check_lib_save_LIBS
16248 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16249 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16250 if test $ac_cv_lib_gcc___floatdidf = yes; then
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE___FLOATDIDF 1
16258 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16259 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16260 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 ac_check_lib_save_LIBS=$LIBS
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16272 /* Override any GCC internal prototype to avoid an error.
16273 Use char because int might match the return type of a GCC
16274 builtin and then its argument prototype would still apply. */
16282 return __lshrdi3 ();
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (ac_try="$ac_link"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_link") 2>conftest.er1
16296 grep -v '^ *+' conftest.er1 >conftest.err
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16302 { (case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_try") 2>&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; } &&
16311 { ac_try='test -s conftest$ac_exeext'
16312 { (case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_try") 2>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16321 ac_cv_lib_gcc___lshrdi3=yes
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16326 ac_cv_lib_gcc___lshrdi3=no
16329 rm -f core conftest.err conftest.$ac_objext \
16330 conftest$ac_exeext conftest.$ac_ext
16331 LIBS=$ac_check_lib_save_LIBS
16333 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16334 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16335 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16337 cat >>confdefs.h <<\_ACEOF
16338 #define HAVE___LSHRDI3 1
16343 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16344 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16345 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16348 ac_check_lib_save_LIBS=$LIBS
16350 cat >conftest.$ac_ext <<_ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16357 /* Override any GCC internal prototype to avoid an error.
16358 Use char because int might match the return type of a GCC
16359 builtin and then its argument prototype would still apply. */
16367 return __moddi3 ();
16372 rm -f conftest.$ac_objext conftest$ac_exeext
16373 if { (ac_try="$ac_link"
16374 case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_link") 2>conftest.er1
16381 grep -v '^ *+' conftest.er1 >conftest.err
16383 cat conftest.err >&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
16386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16387 { (case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_try") 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest$ac_exeext'
16397 { (case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_try") 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 ac_cv_lib_gcc___moddi3=yes
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 ac_cv_lib_gcc___moddi3=no
16414 rm -f core conftest.err conftest.$ac_objext \
16415 conftest$ac_exeext conftest.$ac_ext
16416 LIBS=$ac_check_lib_save_LIBS
16418 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16419 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16420 if test $ac_cv_lib_gcc___moddi3 = yes; then
16422 cat >>confdefs.h <<\_ACEOF
16423 #define HAVE___MODDI3 1
16428 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16429 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16430 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 ac_check_lib_save_LIBS=$LIBS
16435 cat >conftest.$ac_ext <<_ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16442 /* Override any GCC internal prototype to avoid an error.
16443 Use char because int might match the return type of a GCC
16444 builtin and then its argument prototype would still apply. */
16452 return __udivdi3 ();
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>conftest.er1
16466 grep -v '^ *+' conftest.er1 >conftest.err
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16472 { (case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_try") 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest$ac_exeext'
16482 { (case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_try") 2>&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; }; then
16491 ac_cv_lib_gcc___udivdi3=yes
16493 echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 ac_cv_lib_gcc___udivdi3=no
16499 rm -f core conftest.err conftest.$ac_objext \
16500 conftest$ac_exeext conftest.$ac_ext
16501 LIBS=$ac_check_lib_save_LIBS
16503 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16504 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16505 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE___UDIVDI3 1
16513 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16514 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16515 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 ac_check_lib_save_LIBS=$LIBS
16520 cat >conftest.$ac_ext <<_ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16527 /* Override any GCC internal prototype to avoid an error.
16528 Use char because int might match the return type of a GCC
16529 builtin and then its argument prototype would still apply. */
16537 return __umoddi3 ();
16542 rm -f conftest.$ac_objext conftest$ac_exeext
16543 if { (ac_try="$ac_link"
16544 case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_link") 2>conftest.er1
16551 grep -v '^ *+' conftest.er1 >conftest.err
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest$ac_exeext'
16567 { (case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_try") 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 ac_cv_lib_gcc___umoddi3=yes
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 ac_cv_lib_gcc___umoddi3=no
16584 rm -f core conftest.err conftest.$ac_objext \
16585 conftest$ac_exeext conftest.$ac_ext
16586 LIBS=$ac_check_lib_save_LIBS
16588 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16589 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16590 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16592 cat >>confdefs.h <<\_ACEOF
16593 #define HAVE___UMODDI3 1
16599 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16600 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16601 if test "${ac_cv_lib_gcc___main+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 ac_check_lib_save_LIBS=$LIBS
16606 cat >conftest.$ac_ext <<_ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16613 /* Override any GCC internal prototype to avoid an error.
16614 Use char because int might match the return type of a GCC
16615 builtin and then its argument prototype would still apply. */
16628 rm -f conftest.$ac_objext conftest$ac_exeext
16629 if { (ac_try="$ac_link"
16630 case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_link") 2>conftest.er1
16637 grep -v '^ *+' conftest.er1 >conftest.err
16639 cat conftest.err >&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16643 { (case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_try") 2>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; } &&
16652 { ac_try='test -s conftest$ac_exeext'
16653 { (case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_try") 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_cv_lib_gcc___main=yes
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ac_cv_lib_gcc___main=no
16670 rm -f core conftest.err conftest.$ac_objext \
16671 conftest$ac_exeext conftest.$ac_ext
16672 LIBS=$ac_check_lib_save_LIBS
16674 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16675 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16676 if test $ac_cv_lib_gcc___main = yes; then
16678 cat >>confdefs.h <<\_ACEOF
16679 #define HAVE___MAIN 1
16684 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16685 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16686 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 ac_check_lib_save_LIBS=$LIBS
16691 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16698 /* Override any GCC internal prototype to avoid an error.
16699 Use char because int might match the return type of a GCC
16700 builtin and then its argument prototype would still apply. */
16708 return __cmpdi2 ();
16713 rm -f conftest.$ac_objext conftest$ac_exeext
16714 if { (ac_try="$ac_link"
16715 case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_link") 2>conftest.er1
16722 grep -v '^ *+' conftest.er1 >conftest.err
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728 { (case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_try") 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest$ac_exeext'
16738 { (case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_try") 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_lib_gcc___cmpdi2=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_cv_lib_gcc___cmpdi2=no
16755 rm -f core conftest.err conftest.$ac_objext \
16756 conftest$ac_exeext conftest.$ac_ext
16757 LIBS=$ac_check_lib_save_LIBS
16759 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16760 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16761 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE___CMPDI2 1
16771 if test "$llvm_cv_os_type" = "MingW" ; then
16772 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16773 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16774 cat >conftest.$ac_ext <<_ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16782 #include <windows.h>
16783 #include <imagehlp.h>
16784 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16785 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16789 rm -f conftest.$ac_objext
16790 if { (ac_try="$ac_compile"
16791 case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796 (eval "$ac_compile") 2>conftest.er1
16798 grep -v '^ *+' conftest.er1 >conftest.err
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16804 { (case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_try") 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; } &&
16813 { ac_try='test -s conftest.$ac_objext'
16814 { (case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_try") 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; }; then
16824 { echo "$as_me:$LINENO: result: yes" >&5
16825 echo "${ECHO_T}yes" >&6; }
16826 llvm_cv_win32_elmcb_pcstr="PCSTR"
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16833 { echo "$as_me:$LINENO: result: no" >&5
16834 echo "${ECHO_T}no" >&6; }
16835 llvm_cv_win32_elmcb_pcstr="PSTR"
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 cat >>confdefs.h <<_ACEOF
16842 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16847 if test "$llvm_cv_platform_type" = "Unix" ; then
16850 for ac_header in stdlib.h unistd.h
16852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 ac_res=`eval echo '${'$as_ac_Header'}'`
16860 { echo "$as_me:$LINENO: result: $ac_res" >&5
16861 echo "${ECHO_T}$ac_res" >&6; }
16863 # Is the header compilable?
16864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 $ac_includes_default
16873 #include <$ac_header>
16875 rm -f conftest.$ac_objext
16876 if { (ac_try="$ac_compile"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_compile") 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16890 { (case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; } &&
16899 { ac_try='test -s conftest.$ac_objext'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
16909 ac_header_compiler=yes
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_header_compiler=no
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 echo "${ECHO_T}$ac_header_compiler" >&6; }
16921 # Is the header present?
16922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16924 cat >conftest.$ac_ext <<_ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 #include <$ac_header>
16932 if { (ac_try="$ac_cpp conftest.$ac_ext"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } >/dev/null; then
16945 if test -s conftest.err; then
16946 ac_cpp_err=$ac_c_preproc_warn_flag
16947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16954 if test -z "$ac_cpp_err"; then
16955 ac_header_preproc=yes
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 ac_header_preproc=no
16963 rm -f conftest.err conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16965 echo "${ECHO_T}$ac_header_preproc" >&6; }
16967 # So? What about this header?
16968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16974 ac_header_preproc=yes
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16990 ## ------------------------------------ ##
16991 ## Report this to http://llvm.org/bugs/ ##
16992 ## ------------------------------------ ##
16994 ) | sed "s/^/$as_me: WARNING: /" >&2
16997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 eval "$as_ac_Header=\$ac_header_preproc"
17004 ac_res=`eval echo '${'$as_ac_Header'}'`
17005 { echo "$as_me:$LINENO: result: $ac_res" >&5
17006 echo "${ECHO_T}$ac_res" >&6; }
17009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17019 for ac_func in getpagesize
17021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 cat >conftest.$ac_ext <<_ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17035 #define $ac_func innocuous_$ac_func
17037 /* System header to define __stub macros and hopefully few prototypes,
17038 which can conflict with char $ac_func (); below.
17039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17040 <limits.h> exists even on freestanding compilers. */
17043 # include <limits.h>
17045 # include <assert.h>
17050 /* Override any GCC internal prototype to avoid an error.
17051 Use char because int might match the return type of a GCC
17052 builtin and then its argument prototype would still apply. */
17057 /* The GNU C library defines this for functions which it implements
17058 to always fail with ENOSYS. Some functions are actually named
17059 something starting with __ and the normal name is an alias. */
17060 #if defined __stub_$ac_func || defined __stub___$ac_func
17067 return $ac_func ();
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (ac_try="$ac_link"
17074 case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_link") 2>conftest.er1
17081 grep -v '^ *+' conftest.er1 >conftest.err
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17087 { (case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_try") 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest$ac_exeext'
17097 { (case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_try") 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17106 eval "$as_ac_var=yes"
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17111 eval "$as_ac_var=no"
17114 rm -f core conftest.err conftest.$ac_objext \
17115 conftest$ac_exeext conftest.$ac_ext
17117 ac_res=`eval echo '${'$as_ac_var'}'`
17118 { echo "$as_me:$LINENO: result: $ac_res" >&5
17119 echo "${ECHO_T}$ac_res" >&6; }
17120 if test `eval echo '${'$as_ac_var'}'` = yes; then
17121 cat >>confdefs.h <<_ACEOF
17122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17128 { echo "$as_me:$LINENO: checking for working mmap" >&5
17129 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17130 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 if test "$cross_compiling" = yes; then
17134 ac_cv_func_mmap_fixed_mapped=no
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 $ac_includes_default
17143 /* malloc might have been renamed as rpl_malloc. */
17146 /* Thanks to Mike Haertel and Jim Avera for this test.
17147 Here is a matrix of mmap possibilities:
17148 mmap private not fixed
17149 mmap private fixed at somewhere currently unmapped
17150 mmap private fixed at somewhere already mapped
17151 mmap shared not fixed
17152 mmap shared fixed at somewhere currently unmapped
17153 mmap shared fixed at somewhere already mapped
17154 For private mappings, we should verify that changes cannot be read()
17155 back from the file, nor mmap's back from the file at a different
17156 address. (There have been systems where private was not correctly
17157 implemented like the infamous i386 svr4.0, and systems where the
17158 VM page cache was not coherent with the file system buffer cache
17159 like early versions of FreeBSD and possibly contemporary NetBSD.)
17160 For shared mappings, we should conversely verify that changes get
17161 propagated back to all the places they're supposed to be.
17163 Grep wants private fixed already mapped.
17164 The main things grep needs to know about mmap are:
17165 * does it exist and is it safe to write into the mmap'd area
17166 * how to use it (BSD variants) */
17169 #include <sys/mman.h>
17171 #if !STDC_HEADERS && !HAVE_STDLIB_H
17175 /* This mess was copied from the GNU getpagesize.h. */
17176 #if !HAVE_GETPAGESIZE
17177 /* Assume that all systems that can run configure have sys/param.h. */
17178 # if !HAVE_SYS_PARAM_H
17179 # define HAVE_SYS_PARAM_H 1
17182 # ifdef _SC_PAGESIZE
17183 # define getpagesize() sysconf(_SC_PAGESIZE)
17184 # else /* no _SC_PAGESIZE */
17185 # if HAVE_SYS_PARAM_H
17186 # include <sys/param.h>
17187 # ifdef EXEC_PAGESIZE
17188 # define getpagesize() EXEC_PAGESIZE
17189 # else /* no EXEC_PAGESIZE */
17191 # define getpagesize() NBPG * CLSIZE
17194 # endif /* no CLSIZE */
17195 # else /* no NBPG */
17197 # define getpagesize() NBPC
17198 # else /* no NBPC */
17200 # define getpagesize() PAGESIZE
17201 # endif /* PAGESIZE */
17202 # endif /* no NBPC */
17203 # endif /* no NBPG */
17204 # endif /* no EXEC_PAGESIZE */
17205 # else /* no HAVE_SYS_PARAM_H */
17206 # define getpagesize() 8192 /* punt totally */
17207 # endif /* no HAVE_SYS_PARAM_H */
17208 # endif /* no _SC_PAGESIZE */
17210 #endif /* no HAVE_GETPAGESIZE */
17215 char *data, *data2, *data3;
17219 pagesize = getpagesize ();
17221 /* First, make a file with some known garbage in it. */
17222 data = (char *) malloc (pagesize);
17225 for (i = 0; i < pagesize; ++i)
17226 *(data + i) = rand ();
17228 fd = creat ("conftest.mmap", 0600);
17231 if (write (fd, data, pagesize) != pagesize)
17235 /* Next, try to mmap the file at a fixed address which already has
17236 something else allocated at it. If we can, also make sure that
17237 we see the same garbage. */
17238 fd = open ("conftest.mmap", O_RDWR);
17241 data2 = (char *) malloc (2 * pagesize);
17244 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17245 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17246 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17248 for (i = 0; i < pagesize; ++i)
17249 if (*(data + i) != *(data2 + i))
17252 /* Finally, make sure that changes to the mapped area do not
17253 percolate back to the file as seen by read(). (This is a bug on
17254 some variants of i386 svr4.0.) */
17255 for (i = 0; i < pagesize; ++i)
17256 *(data2 + i) = *(data2 + i) + 1;
17257 data3 = (char *) malloc (pagesize);
17260 if (read (fd, data3, pagesize) != pagesize)
17262 for (i = 0; i < pagesize; ++i)
17263 if (*(data + i) != *(data3 + i))
17269 rm -f conftest$ac_exeext
17270 if { (ac_try="$ac_link"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_link") 2>&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_func_mmap_fixed_mapped=yes
17291 echo "$as_me: program exited with status $ac_status" >&5
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 ( exit $ac_status )
17296 ac_cv_func_mmap_fixed_mapped=no
17298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17303 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17304 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17305 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17307 cat >>confdefs.h <<\_ACEOF
17308 #define HAVE_MMAP 1
17312 rm -f conftest.mmap
17314 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17315 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17316 if test "${ac_cv_func_mmap_file+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 ac_cpp='$CPP $CPPFLAGS'
17321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17325 if test "$cross_compiling" = yes; then
17326 ac_cv_func_mmap_file=no
17328 cat >conftest.$ac_ext <<_ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17336 #include <sys/types.h>
17337 #include <sys/mman.h>
17345 fd = creat ("foo",0777);
17346 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17348 return (fd != (int) MAP_FAILED);
17353 rm -f conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 ac_cv_func_mmap_file=yes
17375 echo "$as_me: program exited with status $ac_status" >&5
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ( exit $ac_status )
17380 ac_cv_func_mmap_file=no
17382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17387 ac_cpp='$CPP $CPPFLAGS'
17388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17394 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17395 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17396 if test "$ac_cv_func_mmap_file" = yes; then
17398 cat >>confdefs.h <<\_ACEOF
17399 #define HAVE_MMAP_FILE
17406 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17407 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17408 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 if test "$llvm_cv_os_type" = "Interix" ; then
17412 ac_cv_need_dev_zero_for_mmap=yes
17414 ac_cv_need_dev_zero_for_mmap=no
17418 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17419 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17420 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17422 cat >>confdefs.h <<\_ACEOF
17423 #define NEED_DEV_ZERO_FOR_MMAP 1
17428 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17430 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17431 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17433 if test "$ac_cv_func_mmap_file" = "no"
17435 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17436 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17440 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17441 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17443 ac_cpp='$CXXCPP $CPPFLAGS'
17444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17448 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17457 volatile unsigned long val = 1;
17458 __sync_synchronize();
17459 __sync_val_compare_and_swap(&val, 1, 0);
17460 __sync_add_and_fetch(&val, 1);
17461 __sync_sub_and_fetch(&val, 1);
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (ac_try="$ac_link"
17469 case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_link") 2>conftest.er1
17476 grep -v '^ *+' conftest.er1 >conftest.err
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17482 { (case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest$ac_exeext'
17492 { (case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_try") 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
17502 { echo "$as_me:$LINENO: result: yes" >&5
17503 echo "${ECHO_T}yes" >&6; }
17505 cat >>confdefs.h <<\_ACEOF
17506 #define LLVM_HAS_ATOMICS 1
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17515 { echo "$as_me:$LINENO: result: no" >&5
17516 echo "${ECHO_T}no" >&6; }
17518 cat >>confdefs.h <<\_ACEOF
17519 #define LLVM_HAS_ATOMICS 0
17522 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17523 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17527 rm -f core conftest.err conftest.$ac_objext \
17528 conftest$ac_exeext conftest.$ac_ext
17530 ac_cpp='$CPP $CPPFLAGS'
17531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17537 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17538 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17539 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17540 if test "${llvm_cv_linux_mixed+set}" = set; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 ac_cpp='$CPP $CPPFLAGS'
17545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17549 cat >conftest.$ac_ext <<_ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17556 error: Not x86-64 even if uname says so!
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17576 grep -v '^ *+' conftest.er1 >conftest.err
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest.$ac_objext'
17592 { (case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_try") 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 llvm_cv_linux_mixed=no
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 llvm_cv_linux_mixed=yes
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611 ac_cpp='$CPP $CPPFLAGS'
17612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17618 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17619 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17621 if test "$llvm_cv_linux_mixed" = "yes"; then
17622 llvm_cv_target_arch="x86"
17628 for ac_func in __dso_handle
17630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17644 #define $ac_func innocuous_$ac_func
17646 /* System header to define __stub macros and hopefully few prototypes,
17647 which can conflict with char $ac_func (); below.
17648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17649 <limits.h> exists even on freestanding compilers. */
17652 # include <limits.h>
17654 # include <assert.h>
17659 /* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17666 /* The GNU C library defines this for functions which it implements
17667 to always fail with ENOSYS. Some functions are actually named
17668 something starting with __ and the normal name is an alias. */
17669 #if defined __stub_$ac_func || defined __stub___$ac_func
17676 return $ac_func ();
17681 rm -f conftest.$ac_objext conftest$ac_exeext
17682 if { (ac_try="$ac_link"
17683 case "(($ac_try" in
17684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685 *) ac_try_echo=$ac_try;;
17687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688 (eval "$ac_link") 2>conftest.er1
17690 grep -v '^ *+' conftest.er1 >conftest.err
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } &&
17705 { ac_try='test -s conftest$ac_exeext'
17706 { (case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_try") 2>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 eval "$as_ac_var=yes"
17717 echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17720 eval "$as_ac_var=no"
17723 rm -f core conftest.err conftest.$ac_objext \
17724 conftest$ac_exeext conftest.$ac_ext
17726 ac_res=`eval echo '${'$as_ac_var'}'`
17727 { echo "$as_me:$LINENO: result: $ac_res" >&5
17728 echo "${ECHO_T}$ac_res" >&6; }
17729 if test `eval echo '${'$as_ac_var'}'` = yes; then
17730 cat >>confdefs.h <<_ACEOF
17731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17738 SHLIBEXT=$llvm_shlib_ext
17741 if test "${prefix}" = "NONE" ; then
17742 prefix="/usr/local"
17744 eval LLVM_PREFIX="${prefix}";
17745 eval LLVM_BINDIR="${prefix}/bin";
17746 eval LLVM_DATADIR="${prefix}/share/llvm";
17747 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17748 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17749 eval LLVM_INCLUDEDIR="${prefix}/include";
17750 eval LLVM_INFODIR="${prefix}/info";
17751 eval LLVM_MANDIR="${prefix}/man";
17752 LLVM_CONFIGTIME=`date`
17763 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17764 LLVM_CONFIGTIME="(timestamp not enabled)"
17768 cat >>confdefs.h <<_ACEOF
17769 #define LLVM_PREFIX "$LLVM_PREFIX"
17773 cat >>confdefs.h <<_ACEOF
17774 #define LLVM_BINDIR "$LLVM_BINDIR"
17778 cat >>confdefs.h <<_ACEOF
17779 #define LLVM_DATADIR "$LLVM_DATADIR"
17783 cat >>confdefs.h <<_ACEOF
17784 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17788 cat >>confdefs.h <<_ACEOF
17789 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17793 cat >>confdefs.h <<_ACEOF
17794 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17798 cat >>confdefs.h <<_ACEOF
17799 #define LLVM_INFODIR "$LLVM_INFODIR"
17803 cat >>confdefs.h <<_ACEOF
17804 #define LLVM_MANDIR "$LLVM_MANDIR"
17808 cat >>confdefs.h <<_ACEOF
17809 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17813 cat >>confdefs.h <<_ACEOF
17814 #define LLVM_HOST_TRIPLE "$host"
17818 cat >>confdefs.h <<_ACEOF
17819 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17823 if test "$BINDINGS_TO_BUILD" = auto ; then
17824 BINDINGS_TO_BUILD=""
17825 if test "x$OCAMLFIND" != x ; then
17826 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17828 if test "x$GO" != x ; then
17829 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17830 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17834 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17837 binding_prereqs_failed=0
17838 for a_binding in $BINDINGS_TO_BUILD ; do
17839 case "$a_binding" in
17841 if test "x$OCAMLFIND" = x ; then
17842 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17843 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17844 binding_prereqs_failed=1
17847 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17854 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17855 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17856 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17857 binding_prereqs_failed=1
17860 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17864 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17865 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17869 if test "x$with_ocaml_libdir" != xauto ; then
17870 OCAML_LIBDIR=$with_ocaml_libdir
17873 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17874 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17876 # ocaml stdlib is beneath our prefix; use stdlib
17877 OCAML_LIBDIR=$ocaml_stdlib
17880 # ocaml stdlib is outside our prefix; use libdir/ocaml
17881 OCAML_LIBDIR=${prefix}/lib/ocaml
17887 if test "x$GO" = x ; then
17888 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17889 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17890 binding_prereqs_failed=1
17892 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17895 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17896 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17897 binding_prereqs_failed=1
17903 if test "$binding_prereqs_failed" = 1 ; then
17904 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17905 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17906 { (exit 1); exit 1; }; }
17909 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17910 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17911 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 ac_cpp='$CXXCPP $CPPFLAGS'
17916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17920 oldcxxflags="$CXXFLAGS"
17921 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17937 rm -f conftest.$ac_objext
17938 if { (ac_try="$ac_compile"
17939 case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_compile") 2>conftest.er1
17946 grep -v '^ *+' conftest.er1 >conftest.err
17948 cat conftest.err >&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } &&
17951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17952 { (case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_try") 2>&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; } &&
17961 { ac_try='test -s conftest.$ac_objext'
17962 { (case "(($ac_try" in
17963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 *) ac_try_echo=$ac_try;;
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 (eval "$ac_try") 2>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
17971 llvm_cv_cxx_visibility_inlines_hidden=yes
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17976 llvm_cv_cxx_visibility_inlines_hidden=no
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980 CXXFLAGS="$oldcxxflags"
17982 ac_cpp='$CPP $CPPFLAGS'
17983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17989 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17990 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17991 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17992 ENABLE_VISIBILITY_INLINES_HIDDEN=1
17995 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18000 if test "$llvm_cv_link_use_r" = "yes" ; then
18007 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18008 RDYNAMIC="-rdynamic"
18015 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18022 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18024 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18026 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18028 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18030 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18033 ac_config_files="$ac_config_files Makefile.config"
18036 ac_config_files="$ac_config_files llvm.spec"
18039 ac_config_files="$ac_config_files docs/doxygen.cfg"
18042 if test "${clang_src_root}" = ""; then
18043 clang_src_root="$srcdir/tools/clang"
18045 if test -f ${clang_src_root}/README.txt; then
18047 cat >>confdefs.h <<_ACEOF
18048 #define CLANG_LIBDIR_SUFFIX ""
18052 configh="include/clang/Config/config.h"
18053 doxy="docs/doxygen.cfg"
18054 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18056 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18060 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18063 test "x$program_prefix" = "xNONE" && program_prefix=""
18067 ac_config_commands="$ac_config_commands setup"
18069 ac_config_commands="$ac_config_commands Makefile"
18072 ac_config_commands="$ac_config_commands Makefile.common"
18075 ac_config_commands="$ac_config_commands examples/Makefile"
18078 ac_config_commands="$ac_config_commands lib/Makefile"
18081 ac_config_commands="$ac_config_commands test/Makefile"
18084 ac_config_commands="$ac_config_commands test/Makefile.tests"
18087 ac_config_commands="$ac_config_commands unittests/Makefile"
18090 ac_config_commands="$ac_config_commands tools/Makefile"
18093 ac_config_commands="$ac_config_commands utils/Makefile"
18096 ac_config_commands="$ac_config_commands projects/Makefile"
18099 ac_config_commands="$ac_config_commands bindings/Makefile"
18102 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18106 cat >confcache <<\_ACEOF
18107 # This file is a shell script that caches the results of configure
18108 # tests run on this system so they can be shared between configure
18109 # scripts and configure runs, see configure's option --config-cache.
18110 # It is not useful on other systems. If it contains results you don't
18111 # want to keep, you may remove or edit it.
18113 # config.status only pays attention to the cache file if you give it
18114 # the --recheck option to rerun configure.
18116 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18117 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18118 # following values.
18122 # The following way of writing the cache mishandles newlines in values,
18123 # but we know of no workaround that is simple, portable, and efficient.
18124 # So, we kill variables containing newlines.
18125 # Ultrix sh set writes to stderr and can't be redirected directly,
18126 # and sets the high bit in the cache file unless we assign to the vars.
18128 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18129 eval ac_val=\$$ac_var
18133 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18134 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18137 _ | IFS | as_nl) ;; #(
18138 *) $as_unset $ac_var ;;
18144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18145 *${as_nl}ac_space=\ *)
18146 # `set' does not quote correctly, so add quotes (double-quote
18147 # substitution turns \\\\ into \\, and sed turns \\ into \).
18150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18153 # `set' quotes correctly as required by POSIX, so do not add quotes.
18154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18167 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18168 if test -w "$cache_file"; then
18169 test "x$cache_file" != "x/dev/null" &&
18170 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18171 echo "$as_me: updating cache $cache_file" >&6;}
18172 cat confcache >$cache_file
18174 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18175 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18181 # Let make expand exec_prefix.
18182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18184 DEFS=-DHAVE_CONFIG_H
18188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18189 # 1. Remove the extension, and $U if already installed.
18190 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18191 ac_i=`echo "$ac_i" | sed "$ac_script"`
18192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18193 # will be set to the directory where LIBOBJS objects are built.
18194 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18195 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18197 LIBOBJS=$ac_libobjs
18199 LTLIBOBJS=$ac_ltlibobjs
18203 : ${CONFIG_STATUS=./config.status}
18204 ac_clean_files_save=$ac_clean_files
18205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18206 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18207 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18208 cat >$CONFIG_STATUS <<_ACEOF
18210 # Generated by $as_me.
18211 # Run this file to recreate the current configuration.
18212 # Compiler output produced by configure, useful for debugging
18213 # configure, is in config.log if it exists.
18216 ac_cs_recheck=false
18218 SHELL=\${CONFIG_SHELL-$SHELL}
18221 cat >>$CONFIG_STATUS <<\_ACEOF
18222 ## --------------------- ##
18223 ## M4sh Initialization. ##
18224 ## --------------------- ##
18226 # Be Bourne compatible
18227 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18230 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18231 # is contrary to our usage. Disable this feature.
18232 alias -g '${1+"$@"}'='"$@"'
18233 setopt NO_GLOB_SUBST
18235 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18237 BIN_SH=xpg4; export BIN_SH # for Tru64
18238 DUALCASE=1; export DUALCASE # for MKS sh
18242 # Avoid depending upon Character Ranges.
18243 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18244 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18245 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18246 as_cr_digits='0123456789'
18247 as_cr_alnum=$as_cr_Letters$as_cr_digits
18249 # The user is always right.
18250 if test "${PATH_SEPARATOR+set}" != set; then
18251 echo "#! /bin/sh" >conf$$.sh
18252 echo "exit 0" >>conf$$.sh
18254 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18262 # Support unset when possible.
18263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18271 # We need space, tab and new line, in precisely that order. Quoting is
18272 # there to prevent editors from complaining about space-tab.
18273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18274 # splitting by setting IFS to empty value.)
18279 # Find who we are. Look in the path if we contain no directory separator.
18281 *[\\/]* ) as_myself=$0 ;;
18282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18283 for as_dir in $PATH
18286 test -z "$as_dir" && as_dir=.
18287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18293 # We did not find ourselves, most probably we were run as `sh COMMAND'
18294 # in which case we are not to be found in the path.
18295 if test "x$as_myself" = x; then
18298 if test ! -f "$as_myself"; then
18299 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18300 { (exit 1); exit 1; }
18303 # Work around bugs in pre-3.0 UWIN ksh.
18304 for as_var in ENV MAIL MAILPATH
18305 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18313 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18314 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18315 LC_TELEPHONE LC_TIME
18317 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18318 eval $as_var=C; export $as_var
18320 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18324 # Required to use basename.
18325 if expr a : '\(a\)' >/dev/null 2>&1 &&
18326 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18332 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18333 as_basename=basename
18339 # Name of the executable.
18340 as_me=`$as_basename -- "$0" ||
18341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18342 X"$0" : 'X\(//\)$' \| \
18343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18345 sed '/^.*\/\([^/][^/]*\)\/*$/{
18364 as_lineno_1=$LINENO
18365 as_lineno_2=$LINENO
18366 test "x$as_lineno_1" != "x$as_lineno_2" &&
18367 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18369 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18370 # uniformly replaced by the line number. The first 'sed' inserts a
18371 # line-number line after each line using $LINENO; the second 'sed'
18372 # does the real work. The second script uses 'N' to pair each
18373 # line-number line with the line containing $LINENO, and appends
18374 # trailing '-' during substitution so that $LINENO is not a special
18375 # case at line end.
18376 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18377 # scripts with optimization help from Paolo Bonzini. Blame Lee
18378 # E. McMahon (1931-1989) for sed's syntax. :-)
18390 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18393 ' >$as_me.lineno &&
18394 chmod +x "$as_me.lineno" ||
18395 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18396 { (exit 1); exit 1; }; }
18398 # Don't try to exec as it changes $[0], causing all sort of problems
18399 # (the dirname of $[0] is not the place where we might find the
18400 # original and so on. Autoconf is especially sensitive to this).
18401 . "./$as_me.lineno"
18402 # Exit status is that of the last command.
18407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18413 ECHO_C= ECHO_N= ECHO_T=
18414 case `echo -n x` in
18416 case `echo 'x\c'` in
18417 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18424 if expr a : '\(a\)' >/dev/null 2>&1 &&
18425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18431 rm -f conf$$ conf$$.exe conf$$.file
18432 if test -d conf$$.dir; then
18433 rm -f conf$$.dir/conf$$.file
18439 if ln -s conf$$.file conf$$ 2>/dev/null; then
18441 # ... but there are two gotchas:
18442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18444 # In both cases, we have to default to `cp -p'.
18445 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18447 elif ln conf$$.file conf$$ 2>/dev/null; then
18452 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18453 rmdir conf$$.dir 2>/dev/null
18455 if mkdir -p . 2>/dev/null; then
18458 test -d ./-p && rmdir ./-p
18462 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18463 # systems may use methods other than mode bits to determine executability.
18464 cat >conf$$.file <<_ASEOF
18468 chmod +x conf$$.file
18469 if test -x conf$$.file >/dev/null 2>&1; then
18470 as_executable_p="test -x"
18476 # Sed expression to map a string onto a valid CPP name.
18477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18479 # Sed expression to map a string onto a valid variable name.
18480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18485 # Save the log message, to keep $[0] and so on meaningful, and to
18486 # report actual input values of CONFIG_FILES etc. instead of their
18487 # values after options handling.
18489 This file was extended by LLVM $as_me 3.7.0svn, which was
18490 generated by GNU Autoconf 2.60. Invocation command line was
18492 CONFIG_FILES = $CONFIG_FILES
18493 CONFIG_HEADERS = $CONFIG_HEADERS
18494 CONFIG_LINKS = $CONFIG_LINKS
18495 CONFIG_COMMANDS = $CONFIG_COMMANDS
18498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18503 cat >>$CONFIG_STATUS <<_ACEOF
18504 # Files that config.status was made for.
18505 config_files="$ac_config_files"
18506 config_headers="$ac_config_headers"
18507 config_commands="$ac_config_commands"
18511 cat >>$CONFIG_STATUS <<\_ACEOF
18513 \`$as_me' instantiates files from templates according to the
18514 current configuration.
18516 Usage: $0 [OPTIONS] [FILE]...
18518 -h, --help print this help, then exit
18519 -V, --version print version number, then exit
18520 -q, --quiet do not print progress messages
18521 -d, --debug don't remove temporary files
18522 --recheck update $as_me by reconfiguring in the same conditions
18523 --file=FILE[:TEMPLATE]
18524 instantiate the configuration file FILE
18525 --header=FILE[:TEMPLATE]
18526 instantiate the configuration header FILE
18528 Configuration files:
18531 Configuration headers:
18534 Configuration commands:
18537 Report bugs to <bug-autoconf@gnu.org>."
18540 cat >>$CONFIG_STATUS <<_ACEOF
18542 LLVM config.status 3.7.0svn
18543 configured by $0, generated by GNU Autoconf 2.60,
18544 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18546 Copyright (C) 2006 Free Software Foundation, Inc.
18547 This config.status script is free software; the Free Software Foundation
18548 gives unlimited permission to copy, distribute and modify it."
18555 cat >>$CONFIG_STATUS <<\_ACEOF
18556 # If no file are specified by the user, then we need to provide default
18557 # value. By we need to know if files were specified by the user.
18563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18564 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18575 # Handling of the options.
18576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18579 echo "$ac_cs_version"; exit ;;
18580 --debug | --debu | --deb | --de | --d | -d )
18582 --file | --fil | --fi | --f )
18584 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18585 ac_need_defaults=false;;
18586 --header | --heade | --head | --hea )
18588 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18589 ac_need_defaults=false;;
18591 # Conflict between --help and --header
18592 { echo "$as_me: error: ambiguous option: $1
18593 Try \`$0 --help' for more information." >&2
18594 { (exit 1); exit 1; }; };;
18595 --help | --hel | -h )
18596 echo "$ac_cs_usage"; exit ;;
18597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18598 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18601 # This is an error.
18602 -*) { echo "$as_me: error: unrecognized option: $1
18603 Try \`$0 --help' for more information." >&2
18604 { (exit 1); exit 1; }; } ;;
18606 *) ac_config_targets="$ac_config_targets $1"
18607 ac_need_defaults=false ;;
18613 ac_configure_extra_args=
18615 if $ac_cs_silent; then
18617 ac_configure_extra_args="$ac_configure_extra_args --silent"
18621 cat >>$CONFIG_STATUS <<_ACEOF
18622 if \$ac_cs_recheck; then
18623 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18624 CONFIG_SHELL=$SHELL
18625 export CONFIG_SHELL
18626 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18630 cat >>$CONFIG_STATUS <<\_ACEOF
18634 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18635 ## Running $as_me. ##
18641 cat >>$CONFIG_STATUS <<_ACEOF
18645 llvm_src="${srcdir}"
18649 cat >>$CONFIG_STATUS <<\_ACEOF
18651 # Handling of arguments.
18652 for ac_config_target in $ac_config_targets
18654 case $ac_config_target in
18655 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18656 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18657 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18658 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18659 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18660 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18661 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18662 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18663 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18664 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18665 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18666 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18667 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18668 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18669 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18670 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18671 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18672 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18673 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18674 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18675 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18676 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18677 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18678 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18679 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18680 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18682 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18684 { (exit 1); exit 1; }; };;
18689 # If the user did not use the arguments to specify the items to instantiate,
18690 # then the envvar interface is used. Set only those that are not.
18691 # We use the long form for the default assignment because of an extremely
18692 # bizarre bug on SunOS 4.1.3.
18693 if $ac_need_defaults; then
18694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18699 # Have a temporary directory for convenience. Make it in the build tree
18700 # simply because there is no reason against having it here, and in addition,
18701 # creating and moving files from /tmp can sometimes cause problems.
18702 # Hook for its removal unless debugging.
18703 # Note that there is a small window in which the directory will not be cleaned:
18704 # after its creation but before its name has been assigned to `$tmp'.
18708 trap 'exit_status=$?
18709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18711 trap '{ (exit 1); exit 1; }' 1 2 13 15
18713 # Create a (secure) tmp directory for tmp files.
18716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18717 test -n "$tmp" && test -d "$tmp"
18720 tmp=./conf$$-$RANDOM
18721 (umask 077 && mkdir "$tmp")
18724 echo "$me: cannot create a temporary directory in ." >&2
18725 { (exit 1); exit 1; }
18729 # Set up the sed scripts for CONFIG_FILES section.
18732 # No need to generate the scripts if there are no CONFIG_FILES.
18733 # This happens for instance when ./config.status config.h
18734 if test -n "$CONFIG_FILES"; then
18741 for ac_last_try in false false false false false :; do
18742 cat >conf$$subs.sed <<_ACEOF
18743 SHELL!$SHELL$ac_delim
18744 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18745 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18746 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18747 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18748 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18749 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18750 exec_prefix!$exec_prefix$ac_delim
18751 prefix!$prefix$ac_delim
18752 program_transform_name!$program_transform_name$ac_delim
18753 bindir!$bindir$ac_delim
18754 sbindir!$sbindir$ac_delim
18755 libexecdir!$libexecdir$ac_delim
18756 datarootdir!$datarootdir$ac_delim
18757 datadir!$datadir$ac_delim
18758 sysconfdir!$sysconfdir$ac_delim
18759 sharedstatedir!$sharedstatedir$ac_delim
18760 localstatedir!$localstatedir$ac_delim
18761 includedir!$includedir$ac_delim
18762 oldincludedir!$oldincludedir$ac_delim
18763 docdir!$docdir$ac_delim
18764 infodir!$infodir$ac_delim
18765 htmldir!$htmldir$ac_delim
18766 dvidir!$dvidir$ac_delim
18767 pdfdir!$pdfdir$ac_delim
18768 psdir!$psdir$ac_delim
18769 libdir!$libdir$ac_delim
18770 localedir!$localedir$ac_delim
18771 mandir!$mandir$ac_delim
18772 DEFS!$DEFS$ac_delim
18773 ECHO_C!$ECHO_C$ac_delim
18774 ECHO_N!$ECHO_N$ac_delim
18775 ECHO_T!$ECHO_T$ac_delim
18776 LIBS!$LIBS$ac_delim
18777 build_alias!$build_alias$ac_delim
18778 host_alias!$host_alias$ac_delim
18779 target_alias!$target_alias$ac_delim
18780 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18781 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18782 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18783 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18784 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18786 CFLAGS!$CFLAGS$ac_delim
18787 LDFLAGS!$LDFLAGS$ac_delim
18788 CPPFLAGS!$CPPFLAGS$ac_delim
18789 ac_ct_CC!$ac_ct_CC$ac_delim
18790 EXEEXT!$EXEEXT$ac_delim
18791 OBJEXT!$OBJEXT$ac_delim
18793 CXXFLAGS!$CXXFLAGS$ac_delim
18794 ac_ct_CXX!$ac_ct_CXX$ac_delim
18796 subdirs!$subdirs$ac_delim
18797 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18798 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18799 build!$build$ac_delim
18800 build_cpu!$build_cpu$ac_delim
18801 build_vendor!$build_vendor$ac_delim
18802 build_os!$build_os$ac_delim
18803 host!$host$ac_delim
18804 host_cpu!$host_cpu$ac_delim
18805 host_vendor!$host_vendor$ac_delim
18806 host_os!$host_os$ac_delim
18807 target!$target$ac_delim
18808 target_cpu!$target_cpu$ac_delim
18809 target_vendor!$target_vendor$ac_delim
18810 target_os!$target_os$ac_delim
18812 HOST_OS!$HOST_OS$ac_delim
18813 TARGET_OS!$TARGET_OS$ac_delim
18814 LINKALL!$LINKALL$ac_delim
18815 NOLINKALL!$NOLINKALL$ac_delim
18816 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18817 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18818 ARCH!$ARCH$ac_delim
18819 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18820 HOST_ARCH!$HOST_ARCH$ac_delim
18821 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18822 BUILD_CC!$BUILD_CC$ac_delim
18823 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18824 BUILD_CXX!$BUILD_CXX$ac_delim
18825 CVSBUILD!$CVSBUILD$ac_delim
18826 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18827 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18828 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18829 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18830 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18831 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18832 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18833 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18834 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18835 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18836 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18837 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18838 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18839 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18844 elif $ac_last_try; then
18845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18847 { (exit 1); exit 1; }; }
18849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18854 if test -n "$ac_eof"; then
18855 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18856 ac_eof=`expr $ac_eof + 1`
18859 cat >>$CONFIG_STATUS <<_ACEOF
18860 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18865 s/^/s,@/; s/!/@,|#_!!_#|/
18868 s/'"$ac_delim"'$/,g/; t
18870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18871 ' >>$CONFIG_STATUS <conf$$subs.sed
18872 rm -f conf$$subs.sed
18873 cat >>$CONFIG_STATUS <<_ACEOF
18879 for ac_last_try in false false false false false :; do
18880 cat >conf$$subs.sed <<_ACEOF
18881 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18883 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18884 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18885 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18886 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18887 enable_searchengine!$enable_searchengine$ac_delim
18888 enable_external_search!$enable_external_search$ac_delim
18889 enable_server_based_search!$enable_server_based_search$ac_delim
18890 searchengine_url!$searchengine_url$ac_delim
18891 extra_search_mappings!$extra_search_mappings$ac_delim
18892 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18893 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18894 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18895 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18896 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18897 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18898 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18899 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18900 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18901 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18902 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18903 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18904 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18905 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18906 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18907 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18908 ENABLE_PIC!$ENABLE_PIC$ac_delim
18909 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18910 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18911 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18912 ALL_TARGETS!$ALL_TARGETS$ac_delim
18913 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18914 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18915 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18916 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18917 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18918 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18919 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18920 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18921 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18922 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18923 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18924 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18925 ifGNUmake!$ifGNUmake$ac_delim
18926 LN_S!$LN_S$ac_delim
18930 DATE!$DATE$ac_delim
18931 FIND!$FIND$ac_delim
18932 GREP!$GREP$ac_delim
18933 MKDIR!$MKDIR$ac_delim
18935 RANLIB!$RANLIB$ac_delim
18940 BINPWD!$BINPWD$ac_delim
18942 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18943 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18944 INSTALL_DATA!$INSTALL_DATA$ac_delim
18945 BZIP2!$BZIP2$ac_delim
18947 DOXYGEN!$DOXYGEN$ac_delim
18948 GROFF!$GROFF$ac_delim
18949 GZIPBIN!$GZIPBIN$ac_delim
18950 PDFROFF!$PDFROFF$ac_delim
18953 OCAMLFIND!$OCAMLFIND$ac_delim
18955 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18956 EGREP!$EGREP$ac_delim
18957 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18958 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18959 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18960 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18961 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18962 NO_COMMENT!$NO_COMMENT$ac_delim
18963 PYTHON!$PYTHON$ac_delim
18964 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18965 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18966 USE_OPROFILE!$USE_OPROFILE$ac_delim
18967 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18968 XML2CONFIG!$XML2CONFIG$ac_delim
18969 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18970 LIBXML2_INC!$LIBXML2_INC$ac_delim
18971 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18972 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18973 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18974 MMAP_FILE!$MMAP_FILE$ac_delim
18975 SHLIBEXT!$SHLIBEXT$ac_delim
18976 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18977 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18980 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18982 elif $ac_last_try; then
18983 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18984 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18985 { (exit 1); exit 1; }; }
18987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18991 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18992 if test -n "$ac_eof"; then
18993 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18994 ac_eof=`expr $ac_eof + 1`
18997 cat >>$CONFIG_STATUS <<_ACEOF
18998 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19002 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19003 s/^/s,@/; s/!/@,|#_!!_#|/
19006 s/'"$ac_delim"'$/,g/; t
19008 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19009 ' >>$CONFIG_STATUS <conf$$subs.sed
19010 rm -f conf$$subs.sed
19011 cat >>$CONFIG_STATUS <<_ACEOF
19017 for ac_last_try in false false false false false :; do
19018 cat >conf$$subs.sed <<_ACEOF
19019 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19020 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19021 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19022 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19023 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19024 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19025 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19026 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19027 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19028 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19029 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19030 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19031 RPATH!$RPATH$ac_delim
19032 RDYNAMIC!$RDYNAMIC$ac_delim
19033 program_prefix!$program_prefix$ac_delim
19034 LIBOBJS!$LIBOBJS$ac_delim
19035 LTLIBOBJS!$LTLIBOBJS$ac_delim
19038 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
19040 elif $ac_last_try; then
19041 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19042 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19043 { (exit 1); exit 1; }; }
19045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19049 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19050 if test -n "$ac_eof"; then
19051 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19052 ac_eof=`expr $ac_eof + 1`
19055 cat >>$CONFIG_STATUS <<_ACEOF
19056 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19060 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19061 s/^/s,@/; s/!/@,|#_!!_#|/
19064 s/'"$ac_delim"'$/,g/; t
19066 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19067 ' >>$CONFIG_STATUS <conf$$subs.sed
19068 rm -f conf$$subs.sed
19069 cat >>$CONFIG_STATUS <<_ACEOF
19076 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19077 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19078 # trailing colons and then remove the whole line if VPATH becomes empty
19079 # (actually we leave an empty line to preserve line numbers).
19080 if test "x$srcdir" = x.; then
19081 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19082 s/:*\$(srcdir):*/:/
19083 s/:*\${srcdir}:*/:/
19085 s/^\([^=]*=[ ]*\):*/\1/
19091 cat >>$CONFIG_STATUS <<\_ACEOF
19092 fi # test -n "$CONFIG_FILES"
19095 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19098 :[FHLC]) ac_mode=$ac_tag; continue;;
19100 case $ac_mode$ac_tag in
19102 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19103 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19104 { (exit 1); exit 1; }; };;
19105 :[FH]-) ac_tag=-:-;;
19106 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19123 -) ac_f="$tmp/stdin";;
19124 *) # Look for the file first in the build tree, then in the source tree
19125 # (if the path is not absolute). The absolute path cannot be DOS-style,
19126 # because $ac_f cannot contain `:'.
19130 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19132 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19133 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19134 { (exit 1); exit 1; }; };;
19136 ac_file_inputs="$ac_file_inputs $ac_f"
19139 # Let's still pretend it is `configure' which instantiates (i.e., don't
19140 # use $as_me), people would be surprised to read:
19141 # /* config.h. Generated by config.status. */
19142 configure_input="Generated from "`IFS=:
19143 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19144 if test x"$ac_file" != x-; then
19145 configure_input="$ac_file. $configure_input"
19146 { echo "$as_me:$LINENO: creating $ac_file" >&5
19147 echo "$as_me: creating $ac_file" >&6;}
19151 *:-:* | *:-) cat >"$tmp/stdin";;
19156 ac_dir=`$as_dirname -- "$ac_file" ||
19157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19158 X"$ac_file" : 'X\(//\)[^/]' \| \
19159 X"$ac_file" : 'X\(//\)$' \| \
19160 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19166 /^X\(\/\/\)[^/].*/{
19181 -*) as_dir=./$as_dir;;
19183 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19187 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19188 *) as_qdir=$as_dir;;
19190 as_dirs="'$as_qdir' $as_dirs"
19191 as_dir=`$as_dirname -- "$as_dir" ||
19192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19193 X"$as_dir" : 'X\(//\)[^/]' \| \
19194 X"$as_dir" : 'X\(//\)$' \| \
19195 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19201 /^X\(\/\/\)[^/].*/{
19214 test -d "$as_dir" && break
19216 test -z "$as_dirs" || eval "mkdir $as_dirs"
19217 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19218 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19219 { (exit 1); exit 1; }; }; }
19223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19225 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19226 # A ".." for each directory in $ac_dir_suffix.
19227 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19228 case $ac_top_builddir_sub in
19229 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19230 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19233 ac_abs_top_builddir=$ac_pwd
19234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19235 # for backward compatibility:
19236 ac_top_builddir=$ac_top_build_prefix
19239 .) # We are building in place.
19241 ac_top_srcdir=$ac_top_builddir_sub
19242 ac_abs_top_srcdir=$ac_pwd ;;
19243 [\\/]* | ?:[\\/]* ) # Absolute name.
19244 ac_srcdir=$srcdir$ac_dir_suffix;
19245 ac_top_srcdir=$srcdir
19246 ac_abs_top_srcdir=$srcdir ;;
19247 *) # Relative name.
19248 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19249 ac_top_srcdir=$ac_top_build_prefix$srcdir
19250 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19262 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19263 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19267 cat >>$CONFIG_STATUS <<\_ACEOF
19268 # If the template does not know about datarootdir, expand it.
19269 # FIXME: This hack should be removed a few years after 2.60.
19270 ac_datarootdir_hack=; ac_datarootdir_seen=
19272 case `sed -n '/datarootdir/ {
19281 ' $ac_file_inputs` in
19282 *datarootdir*) ac_datarootdir_seen=yes;;
19283 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19284 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19285 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19287 cat >>$CONFIG_STATUS <<_ACEOF
19288 ac_datarootdir_hack='
19289 s&@datadir@&$datadir&g
19290 s&@docdir@&$docdir&g
19291 s&@infodir@&$infodir&g
19292 s&@localedir@&$localedir&g
19293 s&@mandir@&$mandir&g
19294 s&\\\${datarootdir}&$datarootdir&g' ;;
19298 # Neutralize VPATH when `$srcdir' = `.'.
19299 # Shell code in configure.ac might set extrasub.
19300 # FIXME: do we really want to maintain this feature?
19301 cat >>$CONFIG_STATUS <<_ACEOF
19305 cat >>$CONFIG_STATUS <<\_ACEOF
19307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19308 s&@configure_input@&$configure_input&;t t
19309 s&@top_builddir@&$ac_top_builddir_sub&;t t
19310 s&@srcdir@&$ac_srcdir&;t t
19311 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19312 s&@top_srcdir@&$ac_top_srcdir&;t t
19313 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19314 s&@builddir@&$ac_builddir&;t t
19315 s&@abs_builddir@&$ac_abs_builddir&;t t
19316 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19317 s&@INSTALL@&$ac_INSTALL&;t t
19318 $ac_datarootdir_hack
19319 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19321 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19322 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19323 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19324 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19325 which seems to be undefined. Please make sure it is defined." >&5
19326 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19327 which seems to be undefined. Please make sure it is defined." >&2;}
19331 -) cat "$tmp/out"; rm -f "$tmp/out";;
19332 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19341 # Transform confdefs.h into a sed script `conftest.defines', that
19342 # substitutes the proper values into config.h.in to produce config.h.
19343 rm -f conftest.defines conftest.tail
19344 # First, append a space to every undef/define line, to ease matching.
19345 echo 's/$/ /' >conftest.defines
19346 # Then, protect against being on the right side of a sed subst, or in
19347 # an unquoted here document, in config.status. If some macros were
19348 # called several times there might be several #defines for the same
19349 # symbol, which is useless. But do not sort them, since the last
19350 # AC_DEFINE must be honored.
19351 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19352 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19353 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19354 # PARAMS is the parameter list in the macro definition--in most cases, it's
19355 # just an empty string.
19356 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19357 ac_dB='\\)[ (].*,\\1define\\2'
19365 s/^[ ]*#[ ]*define[ ][ ]*//
19370 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19371 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19372 ' >>conftest.defines
19374 # Remove the space that was appended to ease matching.
19375 # Then replace #undef with comments. This is necessary, for
19376 # example, in the case of _POSIX_SOURCE, which is predefined and required
19377 # on some systems where configure will not decide to define it.
19378 # (The regexp can be short, since the line contains either #define or #undef.)
19380 s,^[ #]*u.*,/* & */,' >>conftest.defines
19382 # Break up conftest.defines:
19383 ac_max_sed_lines=50
19385 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19386 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19387 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19389 ac_in='$ac_file_inputs'
19390 ac_out='"$tmp/out1"'
19391 ac_nxt='"$tmp/out2"'
19395 # Write a here document:
19396 cat >>$CONFIG_STATUS <<_ACEOF
19397 # First, check the format of the line:
19398 cat >"\$tmp/defines.sed" <<\\CEOF
19399 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19400 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19404 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19406 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19407 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19408 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19409 grep . conftest.tail >/dev/null || break
19410 rm -f conftest.defines
19411 mv conftest.tail conftest.defines
19413 rm -f conftest.defines conftest.tail
19415 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19416 cat >>$CONFIG_STATUS <<\_ACEOF
19417 if test x"$ac_file" != x-; then
19418 echo "/* $configure_input */" >"$tmp/config.h"
19419 cat "$ac_result" >>"$tmp/config.h"
19420 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19421 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19422 echo "$as_me: $ac_file is unchanged" >&6;}
19425 mv "$tmp/config.h" $ac_file
19428 echo "/* $configure_input */"
19434 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19435 echo "$as_me: executing $ac_file commands" >&6;}
19440 case $ac_file$ac_mode in
19441 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19443 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19445 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19447 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19449 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19451 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19453 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19455 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19457 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19459 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19460 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19461 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19462 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19463 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19464 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19470 { (exit 0); exit 0; }
19472 chmod +x $CONFIG_STATUS
19473 ac_clean_files=$ac_clean_files_save
19476 # configure is writing to config.log, and then calls config.status.
19477 # config.status does its own redirection, appending to config.log.
19478 # Unfortunately, on DOS this fails, as config.log is still kept open
19479 # by configure, so config.status won't be able to write to it; its
19480 # output is simply discarded. So we exec the FD to /dev/null,
19481 # effectively closing config.log, so it can be properly (re)opened and
19482 # appended to by config.status. When coming back to configure, we
19483 # need to make the FD available again.
19484 if test "$no_create" != yes; then
19486 ac_config_status_args=
19487 test "$silent" = yes &&
19488 ac_config_status_args="$ac_config_status_args --quiet"
19490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19493 # would make configure fail if this is the last instruction.
19494 $ac_cs_success || { (exit 1); exit 1; }
19498 # CONFIG_SUBDIRS section.
19500 if test "$no_recursion" != yes; then
19502 # Remove --cache-file and --srcdir arguments so they do not pile up.
19503 ac_sub_configure_args=
19505 eval "set x $ac_configure_args"
19509 if test -n "$ac_prev"; then
19514 -cache-file | --cache-file | --cache-fil | --cache-fi \
19515 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19516 ac_prev=cache_file ;;
19517 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19518 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19521 --config-cache | -C)
19523 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19525 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19533 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19535 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19539 # Always prepend --prefix to ensure using the same prefix
19540 # in subdir configurations.
19541 ac_arg="--prefix=$prefix"
19543 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19545 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19548 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19550 # Do not complain, so a configure script can configure whichever
19551 # parts of a large source tree are present.
19552 test -d "$srcdir/$ac_dir" || continue
19554 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19555 echo "$as_me:$LINENO: $ac_msg" >&5
19559 -*) as_dir=./$as_dir;;
19561 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19565 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19566 *) as_qdir=$as_dir;;
19568 as_dirs="'$as_qdir' $as_dirs"
19569 as_dir=`$as_dirname -- "$as_dir" ||
19570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19571 X"$as_dir" : 'X\(//\)[^/]' \| \
19572 X"$as_dir" : 'X\(//\)$' \| \
19573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19579 /^X\(\/\/\)[^/].*/{
19592 test -d "$as_dir" && break
19594 test -z "$as_dirs" || eval "mkdir $as_dirs"
19595 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19596 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19597 { (exit 1); exit 1; }; }; }
19601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19604 # A ".." for each directory in $ac_dir_suffix.
19605 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19606 case $ac_top_builddir_sub in
19607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19611 ac_abs_top_builddir=$ac_pwd
19612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19613 # for backward compatibility:
19614 ac_top_builddir=$ac_top_build_prefix
19617 .) # We are building in place.
19619 ac_top_srcdir=$ac_top_builddir_sub
19620 ac_abs_top_srcdir=$ac_pwd ;;
19621 [\\/]* | ?:[\\/]* ) # Absolute name.
19622 ac_srcdir=$srcdir$ac_dir_suffix;
19623 ac_top_srcdir=$srcdir
19624 ac_abs_top_srcdir=$srcdir ;;
19625 *) # Relative name.
19626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19627 ac_top_srcdir=$ac_top_build_prefix$srcdir
19628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19635 # Check for guested configure; otherwise get Cygnus style configure.
19636 if test -f "$ac_srcdir/configure.gnu"; then
19637 ac_sub_configure=$ac_srcdir/configure.gnu
19638 elif test -f "$ac_srcdir/configure"; then
19639 ac_sub_configure=$ac_srcdir/configure
19640 elif test -f "$ac_srcdir/configure.in"; then
19641 # This should be Cygnus configure.
19642 ac_sub_configure=$ac_aux_dir/configure
19644 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19645 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19649 # The recursion is here.
19650 if test -n "$ac_sub_configure"; then
19651 # Make the cache file name correct relative to the subdirectory.
19652 case $cache_file in
19653 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19654 *) # Relative name.
19655 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19658 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19659 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19660 # The eval makes quoting arguments work.
19661 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19662 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19663 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19664 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19665 { (exit 1); exit 1; }; }