2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
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-2013 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.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
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
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
696 ENABLE_EXPENSIVE_CHECKS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
763 HAVE_LINK_VERSION_SCRIPT
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
800 ENABLE_VISIBILITY_INLINES_HIDDEN
807 ac_precious_vars='build_alias
819 ac_subdirs_all='projects/llvm-gcc
823 projects/llvm-poolalloc
826 projects/llvm-stacker
834 # Initialize some variables set by options.
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
846 program_transform_name=s,x,x,
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 -enable-* | --enable-*)
954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958 { (exit 1); exit 1; }; }
959 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960 eval enable_$ac_feature=\$ac_optarg ;;
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
975 -help | --help | --hel | --he | -h)
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 htmldir=$ac_optarg ;;
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1005 -libdir | --libdir | --libdi | --libd)
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1096 -psdir | --psdir | --psdi | --psd | --ps)
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1124 -site=* | --site=* | --sit=*)
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package| sed 's/-/_/g'`
1157 eval with_$ac_package=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid package name: $ac_package" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_package=`echo $ac_package | sed 's/-/_/g'`
1166 eval with_$ac_package=no ;;
1169 # Obsolete; use --with-x.
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188 { (exit 1); exit 1; }; }
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196 { (exit 1); exit 1; }; }
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 { echo "$as_me: error: missing argument to $ac_option" >&2
1214 { (exit 1); exit 1; }; }
1217 # Be sure to have absolute directory names.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229 { (exit 1); exit 1; }; }
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 { echo "$as_me: error: Working directory cannot be determined" >&2
1260 { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 { echo "$as_me: error: pwd does not report name of working directory" >&2
1263 { (exit 1); exit 1; }; }
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$0" : 'X\(//\)[^/]' \| \
1273 X"$0" : 'X\(//\)$' \| \
1274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303 { (exit 1); exit 1; }; }
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308 { (exit 1); exit 1; }; }
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-polly Use polly if available (default is YES)
1408 --enable-libcpp Use libc++ if available (default is NO)
1409 --enable-cxx11 Use c++11 if available (default is NO)
1410 --enable-split-dwarf Use split-dwarf if available (default is NO)
1411 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1412 --enable-clang-static-analyzer
1413 Enable building of clang Static Analyzer (default is
1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416 --enable-optimized Compile with optimizations enabled (default is NO)
1417 --enable-profiling Compile with profiling enabled (default is NO)
1418 --enable-assertions Compile with assertion checks enabled (default is
1420 --enable-werror Compile with -Werror enabled (default is NO)
1421 --enable-expensive-checks
1422 Compile with expensive debug checks enabled (default
1424 --enable-debug-runtime Build runtime libs with debug symbols (default is
1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1427 optimization is on and YES if it's off)
1428 --enable-keep-symbols Do not strip installed executables)
1429 --enable-jit Enable Just In Time Compiling (default is YES)
1430 --enable-docs Build documents (default is YES)
1431 --enable-doxygen Build doxygen documentation (default is NO)
1432 --enable-threads Use threads if available (default is YES)
1433 --enable-pthreads Use pthreads if available (default is YES)
1434 --enable-zlib Use zlib for compression/decompression if available
1436 --enable-pic Build LLVM with Position Independent Code (default
1438 --enable-shared Build a shared library and link tools against it
1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1441 Win32 DLL (default is NO)
1442 --enable-timestamps Enable embedding timestamp information in build
1444 --enable-backtraces Enable embedding backtraces on crash (default is
1446 --enable-targets Build specific host targets: all or
1447 target1,target2,... Valid targets are: host, x86,
1448 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449 xcore, msp430, nvptx, systemz, r600, and cpp
1451 --enable-experimental-targets
1452 Build experimental host targets: disable or
1453 target1,target2,... (default=disable)
1454 --enable-bindings Build specific language bindings:
1455 all,auto,none,{binding-name} (default=auto)
1456 --enable-curses Use curses for querying terminal infomation if
1457 available (default is YES)
1458 --enable-libffi Check for the presence of libffi (default is NO)
1459 --enable-ltdl-install install libltdl
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-optimize-option Select the compiler options to use for optimized
1466 --with-extra-options Specify additional options to compile LLVM with
1467 --with-extra-ld-options Specify additional options to link LLVM with
1468 --with-ocaml-libdir Specify install location for ocaml bindings (default
1470 --with-clang-srcdir Directory to the out-of-tree Clang source
1471 --with-clang-resource-dir
1472 Relative directory from the Clang binary for
1474 --with-c-include-dirs Colon separated list of directories clang will
1476 --with-gcc-toolchain Directory where gcc is installed.
1477 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1478 --with-binutils-include Specify path to binutils/include/ containing
1479 plugin-api.h file for gold plugin.
1480 --with-bug-report-url Specify the URL where bug reports should be
1481 submitted (default=http://llvm.org/bugs/)
1482 --with-internal-prefix Installation directory for internal files
1483 --with-python path to python
1484 --with-udis86=<path> Use udis86 external x86 disassembler library
1485 --with-oprofile=<prefix>
1486 Tell OProfile >= 0.9.4 how to symbolize JIT output
1487 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CXX C++ compiler command
1498 CXXFLAGS C++ compiler flags
1500 CXXCPP C++ preprocessor
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1505 Report bugs to <http://llvm.org/bugs/>.
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" || continue
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1533 .) # We are building in place.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1566 LLVM configure 3.4svn
1567 generated by GNU Autoconf 2.60
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1574 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1582 It was created by LLVM $as_me 3.4svn, which was
1583 generated by GNU Autoconf 2.60. Invocation command line was
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_must_keep_next=false
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 -* ) ac_must_keep_next=true ;;
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1699 # The following way of writing the cache mishandles newlines in values,
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 echo "$ac_var='\''$ac_val'\''"
1746 if test -n "$ac_subst_files"; then
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1764 if test -s confdefs.h; then
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1838 if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1855 # Check that the precious variables saved in the cache have kept the same
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
1863 case $ac_old_set,$ac_new_set in
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1878 echo "$as_me: former value: $ac_old_val" >&2;}
1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1880 echo "$as_me: current value: $ac_new_val" >&2;}
1881 ac_cache_corrupted=:
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 *) ac_arg=$ac_var=$ac_new_val ;;
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 cat >>confdefs.h <<\_ACEOF
1937 #define LLVM_VERSION_MAJOR 3
1941 cat >>confdefs.h <<\_ACEOF
1942 #define LLVM_VERSION_MINOR 4
1946 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1955 for ac_dir in autoconf "$srcdir"/autoconf; do
1956 if test -f "$ac_dir/install-sh"; then
1958 ac_install_sh="$ac_aux_dir/install-sh -c"
1960 elif test -f "$ac_dir/install.sh"; then
1962 ac_install_sh="$ac_aux_dir/install.sh -c"
1964 elif test -f "$ac_dir/shtool"; then
1966 ac_install_sh="$ac_aux_dir/shtool install -c"
1970 if test -z "$ac_aux_dir"; then
1971 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1972 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1973 { (exit 1); exit 1; }; }
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1986 if test ${srcdir} != "." ; then
1987 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1988 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1989 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1990 { (exit 1); exit 1; }; }
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003 for ac_prog in clang llvm-gcc gcc
2005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2009 if test "${ac_cv_prog_CC+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$CC"; then
2013 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 if test -n "$CC"; then
2034 { echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6; }
2037 { echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6; }
2042 test -n "$CC" && break
2045 if test -z "$CC"; then
2047 for ac_prog in clang llvm-gcc gcc
2049 # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$ac_ct_CC"; then
2057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2066 ac_cv_prog_ac_ct_CC="$ac_prog"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6; }
2081 { echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6; }
2086 test -n "$ac_ct_CC" && break
2089 if test "x$ac_ct_CC" = x; then
2092 case $cross_compiling:$ac_tool_warned in
2094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet. If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&5
2097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet. If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2100 ac_tool_warned=yes ;;
2107 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO: checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (ac_try="$ac_compiler --version >&5"
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122 (eval "$ac_compiler --version >&5") 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (ac_try="$ac_compiler -v >&5"
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132 (eval "$ac_compiler -v >&5") 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (ac_try="$ac_compiler -V >&5"
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2142 (eval "$ac_compiler -V >&5") 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2147 cat >conftest.$ac_ext <<_ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2167 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2171 # List of possible output files, starting from the most likely.
2172 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2173 # only as a last resort. b.out is created by i960 compilers.
2174 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2176 # The IRIX 6 linker writes into existing files which may not be
2177 # executable, retaining their permissions. Remove them first so a
2178 # subsequent execution test works.
2180 for ac_file in $ac_files
2183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2189 if { (ac_try="$ac_link_default"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2195 (eval "$ac_link_default") 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2201 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2202 # so that the user can short-circuit this test for compilers unknown to
2204 for ac_file in $ac_files
2206 test -f "$ac_file" || continue
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2211 # We found the default executable, but exeext='' is most
2215 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2217 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219 # We set ac_cv_exeext here because the later test for it is not
2220 # safe: cross compilers may not add the suffix if given an `-o'
2221 # argument, so we may need to know it at that point already.
2222 # Even if this section looks crufty: it has the advantage of
2229 test "$ac_cv_exeext" = no && ac_cv_exeext=
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239 { (exit 77); exit 77; }; }
2242 ac_exeext=$ac_cv_exeext
2243 { echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6; }
2246 # Check that the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253 if { ac_try='./$ac_file'
2254 { (case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259 (eval "$ac_try") 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 if test "$cross_compiling" = maybe; then
2268 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot run C compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2278 { echo "$as_me:$LINENO: result: yes" >&5
2279 echo "${ECHO_T}yes" >&6; }
2281 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282 ac_clean_files=$ac_clean_files_save
2283 # Check that the compiler produces executables we can run. If not, either
2284 # the compiler is broken, or we cross compile.
2285 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2287 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288 echo "${ECHO_T}$cross_compiling" >&6; }
2290 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2292 if { (ac_try="$ac_link"
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_link") 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; then
2302 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2303 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2304 # work properly (i.e., refer to `conftest.exe'), while it won't with
2306 for ac_file in conftest.exe conftest conftest.*; do
2307 test -f "$ac_file" || continue
2309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2310 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2323 rm -f conftest$ac_cv_exeext
2324 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2327 rm -f conftest.$ac_ext
2328 EXEEXT=$ac_cv_exeext
2330 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2332 if test "${ac_cv_objext+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 cat >conftest.$ac_ext <<_ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2350 rm -f conftest.o conftest.obj
2351 if { (ac_try="$ac_compile"
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_compile") 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; then
2361 for ac_file in conftest.o conftest.obj conftest.*; do
2362 test -f "$ac_file" || continue;
2364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2365 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2373 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&5
2375 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2376 See \`config.log' for more details." >&2;}
2377 { (exit 1); exit 1; }; }
2380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2382 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2383 echo "${ECHO_T}$ac_cv_objext" >&6; }
2384 OBJEXT=$ac_cv_objext
2386 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2387 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2388 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 cat >conftest.$ac_ext <<_ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h. */
2409 rm -f conftest.$ac_objext
2410 if { (ac_try="$ac_compile"
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_compile") 2>conftest.er1
2418 grep -v '^ *+' conftest.er1 >conftest.err
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2424 { (case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_try") 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (case "(($ac_try" in
2435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439 (eval "$ac_try") 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2457 GCC=`test $ac_compiler_gnu = yes && echo yes`
2458 ac_test_CFLAGS=${CFLAGS+set}
2459 ac_save_CFLAGS=$CFLAGS
2460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_cc_g+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 ac_save_c_werror_flag=$ac_c_werror_flag
2466 ac_c_werror_flag=yes
2469 cat >conftest.$ac_ext <<_ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2484 rm -f conftest.$ac_objext
2485 if { (ac_try="$ac_compile"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compile") 2>conftest.er1
2493 grep -v '^ *+' conftest.er1 >conftest.err
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2499 { (case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_try") 2>&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_try") 2>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2524 cat >conftest.$ac_ext <<_ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h. */
2539 rm -f conftest.$ac_objext
2540 if { (ac_try="$ac_compile"
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_compile") 2>conftest.er1
2548 grep -v '^ *+' conftest.er1 >conftest.err
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2554 { (case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_try") 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_try") 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 ac_c_werror_flag=$ac_save_c_werror_flag
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2595 rm -f conftest.$ac_objext
2596 if { (ac_try="$ac_compile"
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_compile") 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2610 { (case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_try") 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (case "(($ac_try" in
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625 (eval "$ac_try") 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ac_c_werror_flag=$ac_save_c_werror_flag
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2657 if test "$GCC" = yes; then
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 ac_cv_prog_cc_c89=no
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2694 s = g (p, va_arg (v,int));
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std. */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709 inside strings and character constants. */
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 CC="$ac_save_CC $ac_arg"
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2746 { (case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_try") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_try") 2>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 ac_cv_prog_cc_c89=$ac_arg
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f core conftest.err conftest.$ac_objext
2774 test "x$ac_cv_prog_cc_c89" != "xno" && break
2776 rm -f conftest.$ac_ext
2781 case "x$ac_cv_prog_cc_c89" in
2783 { echo "$as_me:$LINENO: result: none needed" >&5
2784 echo "${ECHO_T}none needed" >&6; } ;;
2786 { echo "$as_me:$LINENO: result: unsupported" >&5
2787 echo "${ECHO_T}unsupported" >&6; } ;;
2789 CC="$CC $ac_cv_prog_cc_c89"
2790 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 ac_cpp='$CXXCPP $CPPFLAGS'
2803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2806 if test -z "$CXX"; then
2807 if test -n "$CCC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 for ac_prog in clang++ llvm-g++ g++
2813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817 if test "${ac_cv_prog_CXX+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test -n "$CXX"; then
2821 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 if test -n "$CXX"; then
2842 { echo "$as_me:$LINENO: result: $CXX" >&5
2843 echo "${ECHO_T}$CXX" >&6; }
2845 { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2850 test -n "$CXX" && break
2853 if test -z "$CXX"; then
2855 for ac_prog in clang++ llvm-g++ g++
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 if test -n "$ac_ct_CXX"; then
2865 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_ac_ct_CXX="$ac_prog"
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2885 if test -n "$ac_ct_CXX"; then
2886 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2887 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2889 { echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6; }
2894 test -n "$ac_ct_CXX" && break
2897 if test "x$ac_ct_CXX" = x; then
2900 case $cross_compiling:$ac_tool_warned in
2902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet. If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&5
2905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet. If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2908 ac_tool_warned=yes ;;
2916 # Provide some information about the compiler.
2917 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2918 ac_compiler=`set X $ac_compile; echo $2`
2919 { (ac_try="$ac_compiler --version >&5"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compiler --version >&5") 2>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }
2929 { (ac_try="$ac_compiler -v >&5"
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compiler -v >&5") 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2939 { (ac_try="$ac_compiler -V >&5"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compiler -V >&5") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }
2950 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2951 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2952 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2973 rm -f conftest.$ac_objext
2974 if { (ac_try="$ac_compile"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_compile") 2>conftest.er1
2982 grep -v '^ *+' conftest.er1 >conftest.err
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2988 { (case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_try") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_try") 2>&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3019 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3020 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3021 GXX=`test $ac_compiler_gnu = yes && echo yes`
3022 ac_test_CXXFLAGS=${CXXFLAGS+set}
3023 ac_save_CXXFLAGS=$CXXFLAGS
3024 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3025 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3026 if test "${ac_cv_prog_cxx_g+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3030 ac_cxx_werror_flag=yes
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compile") 2>conftest.er1
3057 grep -v '^ *+' conftest.er1 >conftest.err
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } &&
3062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_try") 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 ac_cv_prog_cxx_g=yes
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; } &&
3183 { ac_try='test -s conftest.$ac_objext'
3184 { (case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_try") 2>&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_prog_cxx_g=yes
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3212 if test "$ac_test_CXXFLAGS" = set; then
3213 CXXFLAGS=$ac_save_CXXFLAGS
3214 elif test $ac_cv_prog_cxx_g = yes; then
3215 if test "$GXX" = yes; then
3221 if test "$GXX" = yes; then
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3244 if test -z "$CPP"; then
3245 if test "${ac_cv_prog_CPP+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 # Double quotes because CPP needs to be expanded
3249 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3252 for ac_c_preproc_warn_flag in '' yes
3254 # Use a header file that comes with gcc, so configuring glibc
3255 # with a fresh cross-compiler works.
3256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257 # <limits.h> exists even on freestanding compilers.
3258 # On the NeXT, cc -E runs the code through the compiler's parser,
3259 # not just through cpp. "Syntax error" is here to catch this case.
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3267 # include <limits.h>
3269 # include <assert.h>
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 grep -v '^ *+' conftest.er1 >conftest.err
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev/null; then
3286 if test -s conftest.err; then
3287 ac_cpp_err=$ac_c_preproc_warn_flag
3288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295 if test -z "$ac_cpp_err"; then
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 # Broken: fails on valid input.
3305 rm -f conftest.err conftest.$ac_ext
3307 # OK, works on sane cases. Now check whether nonexistent headers
3308 # can be detected and how.
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 #include <ac_nonexistent.h>
3317 if { (ac_try="$ac_cpp conftest.$ac_ext"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } >/dev/null; then
3330 if test -s conftest.err; then
3331 ac_cpp_err=$ac_c_preproc_warn_flag
3332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3339 if test -z "$ac_cpp_err"; then
3340 # Broken: success on invalid input.
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 # Passes both tests.
3351 rm -f conftest.err conftest.$ac_ext
3354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3355 rm -f conftest.err conftest.$ac_ext
3356 if $ac_preproc_ok; then
3368 { echo "$as_me:$LINENO: result: $CPP" >&5
3369 echo "${ECHO_T}$CPP" >&6; }
3371 for ac_c_preproc_warn_flag in '' yes
3373 # Use a header file that comes with gcc, so configuring glibc
3374 # with a fresh cross-compiler works.
3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376 # <limits.h> exists even on freestanding compilers.
3377 # On the NeXT, cc -E runs the code through the compiler's parser,
3378 # not just through cpp. "Syntax error" is here to catch this case.
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3386 # include <limits.h>
3388 # include <assert.h>
3392 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null; then
3405 if test -s conftest.err; then
3406 ac_cpp_err=$ac_c_preproc_warn_flag
3407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414 if test -z "$ac_cpp_err"; then
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 # Broken: fails on valid input.
3424 rm -f conftest.err conftest.$ac_ext
3426 # OK, works on sane cases. Now check whether nonexistent headers
3427 # can be detected and how.
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434 #include <ac_nonexistent.h>
3436 if { (ac_try="$ac_cpp conftest.$ac_ext"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444 grep -v '^ *+' conftest.er1 >conftest.err
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } >/dev/null; then
3449 if test -s conftest.err; then
3450 ac_cpp_err=$ac_c_preproc_warn_flag
3451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458 if test -z "$ac_cpp_err"; then
3459 # Broken: success on invalid input.
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 # Passes both tests.
3470 rm -f conftest.err conftest.$ac_ext
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.$ac_ext
3475 if $ac_preproc_ok; then
3478 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&5
3480 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3481 See \`config.log' for more details." >&2;}
3482 { (exit 1); exit 1; }; }
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test "$CXX" = "clang++" ; then
3493 { echo "$as_me:$LINENO: checking whether clang works" >&5
3494 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3496 ac_cpp='$CXXCPP $CPPFLAGS'
3497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3509 #if __has_include (<cxxabi.h>)
3512 #if __has_include (<unwind.h>)
3524 rm -f conftest.$ac_objext
3525 if { (ac_try="$ac_compile"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_compile") 2>conftest.er1
3533 grep -v '^ *+' conftest.er1 >conftest.err
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3539 { (case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_try") 2>&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; } &&
3548 { ac_try='test -s conftest.$ac_objext'
3549 { (case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_try") 2>&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3559 { echo "$as_me:$LINENO: result: yes" >&5
3560 echo "${ECHO_T}yes" >&6; }
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3567 { echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6; }
3569 { { 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
3570 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;}
3571 { (exit 1); exit 1; }; }
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 if test -d ${srcdir}/projects/llvm-gcc ; then
3587 subdirs="$subdirs projects/llvm-gcc"
3591 if test -d ${srcdir}/projects/test-suite ; then
3592 subdirs="$subdirs projects/test-suite"
3596 if test -d ${srcdir}/projects/llvm-test ; then
3597 subdirs="$subdirs projects/llvm-test"
3601 if test -d ${srcdir}/projects/poolalloc ; then
3602 subdirs="$subdirs projects/poolalloc"
3606 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3607 subdirs="$subdirs projects/llvm-poolalloc"
3611 for i in `ls ${srcdir}/projects`
3613 if test -d ${srcdir}/projects/${i} ; then
3615 sample) subdirs="$subdirs projects/sample"
3617 privbracket) subdirs="$subdirs projects/privbracket"
3619 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3621 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3623 llvm-java) subdirs="$subdirs projects/llvm-java"
3625 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3627 safecode) subdirs="$subdirs projects/safecode"
3629 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3638 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3639 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3645 # Check whether --enable-polly was given.
3646 if test "${enable_polly+set}" = set; then
3647 enableval=$enable_polly;
3652 case "$enableval" in
3657 default) ENABLE_POLLY=1
3659 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3660 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3661 { (exit 1); exit 1; }; } ;;
3665 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3668 subdirs="$subdirs tools/polly"
3673 # Make sure we can run config.sub.
3674 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3675 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3676 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3677 { (exit 1); exit 1; }; }
3679 { echo "$as_me:$LINENO: checking build system type" >&5
3680 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3681 if test "${ac_cv_build+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 ac_build_alias=$build_alias
3685 test "x$ac_build_alias" = x &&
3686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687 test "x$ac_build_alias" = x &&
3688 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3689 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3690 { (exit 1); exit 1; }; }
3691 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3692 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3693 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3694 { (exit 1); exit 1; }; }
3697 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698 echo "${ECHO_T}$ac_cv_build" >&6; }
3699 case $ac_cv_build in
3701 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3702 echo "$as_me: error: invalid value of canonical build" >&2;}
3703 { (exit 1); exit 1; }; };;
3706 ac_save_IFS=$IFS; IFS='-'
3712 # Remember, the first character of IFS is used to create $*,
3713 # except with old shells:
3716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3719 { echo "$as_me:$LINENO: checking host system type" >&5
3720 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3721 if test "${ac_cv_host+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if test "x$host_alias" = x; then
3725 ac_cv_host=$ac_cv_build
3727 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3728 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3729 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3730 { (exit 1); exit 1; }; }
3734 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735 echo "${ECHO_T}$ac_cv_host" >&6; }
3738 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3739 echo "$as_me: error: invalid value of canonical host" >&2;}
3740 { (exit 1); exit 1; }; };;
3743 ac_save_IFS=$IFS; IFS='-'
3749 # Remember, the first character of IFS is used to create $*,
3750 # except with old shells:
3753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3756 { echo "$as_me:$LINENO: checking target system type" >&5
3757 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3758 if test "${ac_cv_target+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test "x$target_alias" = x; then
3762 ac_cv_target=$ac_cv_host
3764 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3765 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3766 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3767 { (exit 1); exit 1; }; }
3771 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3772 echo "${ECHO_T}$ac_cv_target" >&6; }
3773 case $ac_cv_target in
3775 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3776 echo "$as_me: error: invalid value of canonical target" >&2;}
3777 { (exit 1); exit 1; }; };;
3779 target=$ac_cv_target
3780 ac_save_IFS=$IFS; IFS='-'
3786 # Remember, the first character of IFS is used to create $*,
3787 # except with old shells:
3790 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3793 # The aliases save the names the user supplied, while $host etc.
3794 # will get canonicalized.
3795 test -n "$target_alias" &&
3796 test "$program_prefix$program_suffix$program_transform_name" = \
3798 program_prefix=${target_alias}-
3800 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3801 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3802 if test "${llvm_cv_os_type+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 llvm_cv_link_all_option="-Wl,--whole-archive"
3808 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3809 llvm_cv_os_type="AIX"
3810 llvm_cv_platform_type="Unix" ;;
3812 llvm_cv_link_all_option="-Wl,--whole-archive"
3813 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3814 llvm_cv_os_type="IRIX"
3815 llvm_cv_platform_type="Unix" ;;
3817 llvm_cv_link_all_option="-Wl,--whole-archive"
3818 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3819 llvm_cv_os_type="Cygwin"
3820 llvm_cv_platform_type="Unix" ;;
3822 llvm_cv_link_all_option="-Wl,-all_load"
3823 llvm_cv_no_link_all_option="-Wl,-noall_load"
3824 llvm_cv_os_type="Darwin"
3825 llvm_cv_platform_type="Unix" ;;
3827 llvm_cv_link_all_option="-Wl,-all_load"
3828 llvm_cv_no_link_all_option="-Wl,-noall_load"
3829 llvm_cv_os_type="Minix"
3830 llvm_cv_platform_type="Unix" ;;
3832 llvm_cv_link_all_option="-Wl,--whole-archive"
3833 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3834 llvm_cv_os_type="FreeBSD"
3835 llvm_cv_platform_type="Unix" ;;
3837 llvm_cv_link_all_option="-Wl,--whole-archive"
3838 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3839 llvm_cv_os_type="GNU/kFreeBSD"
3840 llvm_cv_platform_type="Unix" ;;
3842 llvm_cv_link_all_option="-Wl,--whole-archive"
3843 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3844 llvm_cv_os_type="OpenBSD"
3845 llvm_cv_platform_type="Unix" ;;
3847 llvm_cv_link_all_option="-Wl,--whole-archive"
3848 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3849 llvm_cv_os_type="NetBSD"
3850 llvm_cv_platform_type="Unix" ;;
3852 llvm_cv_link_all_option="-Wl,--whole-archive"
3853 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3854 llvm_cv_os_type="DragonFly"
3855 llvm_cv_platform_type="Unix" ;;
3857 llvm_cv_link_all_option="-Wl,--whole-archive"
3858 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3859 llvm_cv_os_type="HP-UX"
3860 llvm_cv_platform_type="Unix" ;;
3862 llvm_cv_link_all_option="-Wl,--whole-archive"
3863 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3864 llvm_cv_os_type="Interix"
3865 llvm_cv_platform_type="Unix" ;;
3867 llvm_cv_link_all_option="-Wl,--whole-archive"
3868 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3869 llvm_cv_os_type="Linux"
3870 llvm_cv_platform_type="Unix" ;;
3872 llvm_cv_link_all_option="-Wl,--whole-archive"
3873 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3874 llvm_cv_os_type="GNU"
3875 llvm_cv_platform_type="Unix" ;;
3877 llvm_cv_link_all_option="-Wl,-z,allextract"
3878 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3879 llvm_cv_os_type="SunOS"
3880 llvm_cv_platform_type="Unix" ;;
3882 llvm_cv_link_all_option="-Wl,-z,allextract"
3883 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3884 llvm_cv_os_type="AuroraUX"
3885 llvm_cv_platform_type="Unix" ;;
3887 llvm_cv_link_all_option="-Wl,--whole-archive"
3888 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3889 llvm_cv_os_type="Win32"
3890 llvm_cv_platform_type="Win32" ;;
3892 llvm_cv_link_all_option="-Wl,--whole-archive"
3893 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3894 llvm_cv_os_type="MingW"
3895 llvm_cv_platform_type="Win32" ;;
3897 llvm_cv_link_all_option="-Wl,--whole-archive"
3898 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3899 llvm_cv_os_type="Haiku"
3900 llvm_cv_platform_type="Unix" ;;
3902 llvm_cv_link_all_option="-Wl,--whole-archive"
3903 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3904 llvm_cv_os_type="Freestanding"
3905 llvm_cv_platform_type="Unix" ;;
3907 llvm_cv_link_all_option="-Wl,--whole-archive"
3908 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3909 llvm_cv_os_type="Freestanding"
3910 llvm_cv_platform_type="Unix" ;;
3912 llvm_cv_link_all_option=""
3913 llvm_cv_no_link_all_option=""
3914 llvm_cv_os_type="Unknown"
3915 llvm_cv_platform_type="Unknown" ;;
3918 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3919 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3921 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3922 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3923 if test "${llvm_cv_target_os_type+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 llvm_cv_target_os_type="AIX" ;;
3930 llvm_cv_target_os_type="IRIX" ;;
3932 llvm_cv_target_os_type="Cygwin" ;;
3934 llvm_cv_target_os_type="Darwin" ;;
3936 llvm_cv_target_os_type="Minix" ;;
3938 llvm_cv_target_os_type="FreeBSD" ;;
3940 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3942 llvm_cv_target_os_type="OpenBSD" ;;
3944 llvm_cv_target_os_type="NetBSD" ;;
3946 llvm_cv_target_os_type="DragonFly" ;;
3948 llvm_cv_target_os_type="HP-UX" ;;
3950 llvm_cv_target_os_type="Interix" ;;
3952 llvm_cv_target_os_type="Linux" ;;
3954 llvm_cv_target_os_type="GNU" ;;
3956 llvm_cv_target_os_type="SunOS" ;;
3958 llvm_cv_target_os_type="AuroraUX" ;;
3960 llvm_cv_target_os_type="Win32" ;;
3962 llvm_cv_target_os_type="MingW" ;;
3964 llvm_cv_target_os_type="Haiku" ;;
3966 llvm_cv_target_os_type="RTEMS" ;;
3968 llvm_cv_target_os_type="NativeClient" ;;
3970 llvm_cv_target_os_type="Freestanding" ;;
3972 llvm_cv_target_os_type="Unknown" ;;
3975 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3976 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3978 if test "$llvm_cv_os_type" = "Unknown" ; then
3979 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3980 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3981 { (exit 1); exit 1; }; }
3986 HOST_OS=$llvm_cv_os_type
3988 TARGET_OS=$llvm_cv_target_os_type
3991 LINKALL=$llvm_cv_link_all_option
3993 NOLINKALL=$llvm_cv_no_link_all_option
3996 case $llvm_cv_platform_type in
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_UNIX 1
4010 cat >>confdefs.h <<\_ACEOF
4011 #define LLVM_ON_WIN32 1
4021 { echo "$as_me:$LINENO: checking target architecture" >&5
4022 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4023 if test "${llvm_cv_target_arch+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 i?86-*) llvm_cv_target_arch="x86" ;;
4028 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4029 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4030 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4031 arm*-*) llvm_cv_target_arch="ARM" ;;
4032 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4033 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4034 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4035 xcore-*) llvm_cv_target_arch="XCore" ;;
4036 msp430-*) llvm_cv_target_arch="MSP430" ;;
4037 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4038 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4039 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4040 *) llvm_cv_target_arch="Unknown" ;;
4043 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4044 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4046 if test "$llvm_cv_target_arch" = "Unknown" ; then
4047 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4048 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4051 case "$llvm_cv_target_arch" in
4052 x86) LLVM_NATIVE_ARCH="X86" ;;
4053 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4054 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4057 ARCH=$llvm_cv_target_arch
4061 i?86-*) host_arch="x86" ;;
4062 amd64-* | x86_64-*) host_arch="x86_64" ;;
4063 sparc*-*) host_arch="Sparc" ;;
4064 powerpc*-*) host_arch="PowerPC" ;;
4065 arm*-*) host_arch="ARM" ;;
4066 aarch64*-*) host_arch="AArch64" ;;
4067 mips-* | mips64-*) host_arch="Mips" ;;
4068 mipsel-* | mips64el-*) host_arch="Mips" ;;
4069 xcore-*) host_arch="XCore" ;;
4070 msp430-*) host_arch="MSP430" ;;
4071 hexagon-*) host_arch="Hexagon" ;;
4072 s390x-*) host_arch="SystemZ" ;;
4073 *) host_arch="Unknown" ;;
4076 if test "$host_arch" = "Unknown" ; then
4077 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4081 HOST_ARCH=$host_arch
4086 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4087 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4088 if test "${ac_cv_path_GREP+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 # Extract the first word of "grep ggrep" to use in msg output
4092 if test -z "$GREP"; then
4093 set dummy grep ggrep; ac_prog_name=$2
4094 if test "${ac_cv_path_GREP+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 ac_path_GREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103 test -z "$as_dir" && as_dir=.
4104 for ac_prog in grep ggrep; do
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4108 # Check for GNU ac_path_GREP and select it if it is found.
4109 # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4115 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 echo 'GREP' >> "conftest.nl"
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124 ac_count=`expr $ac_count + 1`
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP="$ac_path_GREP"
4128 ac_path_GREP_max=$ac_count
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4137 $ac_path_GREP_found && break 3
4147 GREP="$ac_cv_path_GREP"
4148 if test -z "$GREP"; then
4149 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4150 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4151 { (exit 1); exit 1; }; }
4155 ac_cv_path_GREP=$GREP
4160 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4161 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4162 GREP="$ac_cv_path_GREP"
4165 { echo "$as_me:$LINENO: checking for egrep" >&5
4166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171 then ac_cv_path_EGREP="$GREP -E"
4173 # Extract the first word of "egrep" to use in msg output
4174 if test -z "$EGREP"; then
4175 set dummy egrep; ac_prog_name=$2
4176 if test "${ac_cv_path_EGREP+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 ac_path_EGREP_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 test -z "$as_dir" && as_dir=.
4186 for ac_prog in egrep; do
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4190 # Check for GNU ac_path_EGREP and select it if it is found.
4191 # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4197 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4200 cat "conftest.in" "conftest.in" >"conftest.tmp"
4201 mv "conftest.tmp" "conftest.in"
4202 cp "conftest.in" "conftest.nl"
4203 echo 'EGREP' >> "conftest.nl"
4204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206 ac_count=`expr $ac_count + 1`
4207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208 # Best one so far, save it but keep looking for a better one
4209 ac_cv_path_EGREP="$ac_path_EGREP"
4210 ac_path_EGREP_max=$ac_count
4212 # 10*(2^10) chars as input seems more than enough
4213 test $ac_count -gt 10 && break
4215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219 $ac_path_EGREP_found && break 3
4229 EGREP="$ac_cv_path_EGREP"
4230 if test -z "$EGREP"; then
4231 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4232 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4233 { (exit 1); exit 1; }; }
4237 ac_cv_path_EGREP=$EGREP
4243 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4244 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4245 EGREP="$ac_cv_path_EGREP"
4248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4250 if test "${ac_cv_header_stdc+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_compile") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287 { (case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_try") 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_try") 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_header_stdc=yes
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 ac_cv_header_stdc=no
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 if test $ac_cv_header_stdc = yes; then
4317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "memchr" >/dev/null 2>&1; then
4331 ac_cv_header_stdc=no
4337 if test $ac_cv_header_stdc = yes; then
4338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349 $EGREP "free" >/dev/null 2>&1; then
4352 ac_cv_header_stdc=no
4358 if test $ac_cv_header_stdc = yes; then
4359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360 if test "$cross_compiling" = yes; then
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4371 #if ((' ' & 0x0FF) == 0x020)
4372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375 # define ISLOWER(c) \
4376 (('a' <= (c) && (c) <= 'i') \
4377 || ('j' <= (c) && (c) <= 'r') \
4378 || ('s' <= (c) && (c) <= 'z'))
4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4387 for (i = 0; i < 256; i++)
4388 if (XOR (islower (i), ISLOWER (i))
4389 || toupper (i) != TOUPPER (i))
4394 rm -f conftest$ac_exeext
4395 if { (ac_try="$ac_link"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_link") 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405 { (case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_try") 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4416 echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_cv_header_stdc=no
4423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4429 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4430 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4431 if test $ac_cv_header_stdc = yes; then
4433 cat >>confdefs.h <<\_ACEOF
4434 #define STDC_HEADERS 1
4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450 inttypes.h stdint.h unistd.h
4452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 $ac_includes_default
4466 #include <$ac_header>
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 eval "$as_ac_Header=yes"
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 eval "$as_ac_Header=no"
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 ac_res=`eval echo '${'$as_ac_Header'}'`
4513 { echo "$as_me:$LINENO: result: $ac_res" >&5
4514 echo "${ECHO_T}$ac_res" >&6; }
4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516 cat >>confdefs.h <<_ACEOF
4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4525 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4526 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4527 if test "${ac_cv_c_bigendian+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 # See if sys/param.h defines the BYTE_ORDER macro.
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #include <sys/types.h>
4538 #include <sys/param.h>
4543 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_compile") 2>conftest.er1
4560 grep -v '^ *+' conftest.er1 >conftest.err
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566 { (case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_try") 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_try") 2>&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 # It does; now see whether it defined to BIG_ENDIAN or not.
4586 cat >conftest.$ac_ext <<_ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 #include <sys/types.h>
4593 #include <sys/param.h>
4598 #if BYTE_ORDER != BIG_ENDIAN
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_compile") 2>conftest.er1
4615 grep -v '^ *+' conftest.er1 >conftest.err
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621 { (case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_try") 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636 (eval "$ac_try") 2>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_cv_c_bigendian=yes
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 ac_cv_c_bigendian=no
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 # It does not; compile a test program.
4654 if test "$cross_compiling" = yes; then
4655 # try to guess the endianness by grepping values into an object file
4656 ac_cv_c_bigendian=unknown
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4664 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4665 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4666 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4667 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4668 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4672 _ascii (); _ebcdic ();
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_compile") 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692 { (case "(($ac_try" in
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697 (eval "$ac_try") 2>&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; } &&
4701 { ac_try='test -s conftest.$ac_objext'
4702 { (case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_try") 2>&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4712 ac_cv_c_bigendian=yes
4714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4715 if test "$ac_cv_c_bigendian" = unknown; then
4716 ac_cv_c_bigendian=no
4718 # finding both strings is unlikely to happen, but who knows?
4719 ac_cv_c_bigendian=unknown
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4742 /* Are we little or big endian? From Harbison&Steele. */
4746 char c[sizeof (long int)];
4749 return u.c[sizeof (long int) - 1] == 1;
4755 rm -f conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_link") 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766 { (case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_try") 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 ac_cv_c_bigendian=no
4777 echo "$as_me: program exited with status $ac_status" >&5
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4782 ac_cv_c_bigendian=yes
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4794 case $ac_cv_c_bigendian in
4802 { { echo "$as_me:$LINENO: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4804 echo "$as_me: error: unknown endianness
4805 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4806 { (exit 1); exit 1; }; } ;;
4810 if test "$cross_compiling" = yes; then
4811 LLVM_CROSS_COMPILING=1
4814 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4815 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4816 if test "${ac_cv_build_exeext+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4820 ac_cv_build_exeext=.exe
4822 ac_build_prefix=${build_alias}-
4824 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4825 set dummy ${ac_build_prefix}gcc; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 if test -n "$BUILD_CC"; then
4832 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 BUILD_CC=$ac_cv_prog_BUILD_CC
4852 if test -n "$BUILD_CC"; then
4853 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4854 echo "${ECHO_T}$BUILD_CC" >&6; }
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 if test -z "$BUILD_CC"; then
4862 # Extract the first word of "gcc", so it can be a program name with args.
4863 set dummy gcc; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 if test -n "$BUILD_CC"; then
4870 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_BUILD_CC="gcc"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 BUILD_CC=$ac_cv_prog_BUILD_CC
4890 if test -n "$BUILD_CC"; then
4891 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4892 echo "${ECHO_T}$BUILD_CC" >&6; }
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 if test -z "$BUILD_CC"; then
4900 # Extract the first word of "cc", so it can be a program name with args.
4901 set dummy cc; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 if test -n "$BUILD_CC"; then
4908 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919 ac_prog_rejected=yes
4922 ac_cv_prog_BUILD_CC="cc"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 if test $ac_prog_rejected = yes; then
4931 # We found a bogon in the path, so make sure we never use it.
4932 set dummy $ac_cv_prog_BUILD_CC
4934 if test $# != 0; then
4935 # We chose a different compiler from the bogus one.
4936 # However, it has the same basename, so the bogon will be chosen
4937 # first if we set BUILD_CC to just the basename; use the full file name.
4939 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4944 BUILD_CC=$ac_cv_prog_BUILD_CC
4945 if test -n "$BUILD_CC"; then
4946 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4947 echo "${ECHO_T}$BUILD_CC" >&6; }
4949 { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4956 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4957 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4958 { (exit 1); exit 1; }; }
4959 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4961 echo 'int main () { return 0; }' > conftest.$ac_ext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4964 (eval $ac_build_link) 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; then
4968 for file in conftest.*; do
4970 *.c | *.o | *.obj | *.dSYM) ;;
4971 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4975 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4976 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4977 { (exit 1); exit 1; }; }
4980 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4985 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4986 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4987 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4988 ac_build_exeext=$BUILD_EXEEXT
4990 ac_build_prefix=${build_alias}-
4991 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4992 set dummy ${ac_build_prefix}g++; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 if test -n "$BUILD_CXX"; then
4999 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5019 if test -n "$BUILD_CXX"; then
5020 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5021 echo "${ECHO_T}$BUILD_CXX" >&6; }
5023 { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5028 if test -z "$BUILD_CXX"; then
5029 # Extract the first word of "g++", so it can be a program name with args.
5030 set dummy g++; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test -n "$BUILD_CXX"; then
5037 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_BUILD_CXX="g++"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5057 if test -n "$BUILD_CXX"; then
5058 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5059 echo "${ECHO_T}$BUILD_CXX" >&6; }
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5066 if test -z "$BUILD_CXX"; then
5067 # Extract the first word of "c++", so it can be a program name with args.
5068 set dummy c++; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 if test -n "$BUILD_CXX"; then
5075 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5086 ac_prog_rejected=yes
5089 ac_cv_prog_BUILD_CXX="c++"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 if test $ac_prog_rejected = yes; then
5098 # We found a bogon in the path, so make sure we never use it.
5099 set dummy $ac_cv_prog_BUILD_CXX
5101 if test $# != 0; then
5102 # We chose a different compiler from the bogus one.
5103 # However, it has the same basename, so the bogon will be chosen
5104 # first if we set BUILD_CXX to just the basename; use the full file name.
5106 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5111 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5112 if test -n "$BUILD_CXX"; then
5113 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5114 echo "${ECHO_T}$BUILD_CXX" >&6; }
5116 { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5124 LLVM_CROSS_COMPILING=0
5128 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5139 # Check whether --enable-libcpp was given.
5140 if test "${enable_libcpp+set}" = set; then
5141 enableval=$enable_libcpp;
5146 case "$enableval" in
5147 yes) ENABLE_LIBCPP=1
5151 default) ENABLE_LIBCPP=0
5153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5158 # Check whether --enable-cxx11 was given.
5159 if test "${enable_cxx11+set}" = set; then
5160 enableval=$enable_cxx11;
5165 case "$enableval" in
5170 default) ENABLE_CXX11=0
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5177 # Check whether --enable-split-dwarf was given.
5178 if test "${enable_split_dwarf+set}" = set; then
5179 enableval=$enable_split_dwarf;
5184 case "$enableval" in
5185 yes) ENABLE_SPLIT_DWARF=1
5187 no) ENABLE_SPLIT_DWARF=0
5189 default) ENABLE_SPLIT_DWARF=0
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5197 # Check whether --enable-clang-arcmt was given.
5198 if test "${enable_clang_arcmt+set}" = set; then
5199 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5204 case "$enableval" in
5205 yes) ENABLE_CLANG_ARCMT=1
5207 no) ENABLE_CLANG_ARCMT=0
5209 default) ENABLE_CLANG_ARCMT=1
5211 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5216 clang_static_analyzer="yes"
5217 # Check whether --enable-clang-static-analyzer was given.
5218 if test "${enable_clang_static_analyzer+set}" = set; then
5219 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5224 case "$enableval" in
5225 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5227 no) ENABLE_CLANG_STATIC_ANALYZER=0
5229 default) ENABLE_CLANG_STATIC_ANALYZER=1
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5236 # Check whether --enable-clang-rewriter was given.
5237 if test "${enable_clang_rewriter+set}" = set; then
5238 enableval=$enable_clang_rewriter;
5243 case "$enableval" in
5244 yes) ENABLE_CLANG_REWRITER=1
5247 if test ${clang_arcmt} != "no" ; then
5248 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5249 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5250 { (exit 1); exit 1; }; }
5252 if test ${clang_static_analyzer} != "no" ; then
5253 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5254 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5255 { (exit 1); exit 1; }; }
5257 ENABLE_CLANG_REWRITER=0
5260 default) ENABLE_CLANG_REWRITER=1
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 # Check whether --enable-optimized was given.
5268 if test "${enable_optimized+set}" = set; then
5269 enableval=$enable_optimized;
5274 if test ${enableval} = "no" ; then
5278 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5282 # Check whether --enable-profiling was given.
5283 if test "${enable_profiling+set}" = set; then
5284 enableval=$enable_profiling;
5289 if test ${enableval} = "no" ; then
5293 ENABLE_PROFILING=ENABLE_PROFILING=1
5297 # Check whether --enable-assertions was given.
5298 if test "${enable_assertions+set}" = set; then
5299 enableval=$enable_assertions;
5304 if test ${enableval} = "yes" ; then
5308 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5312 # Check whether --enable-werror was given.
5313 if test "${enable_werror+set}" = set; then
5314 enableval=$enable_werror;
5319 case "$enableval" in
5320 yes) ENABLE_WERROR=1
5324 default) ENABLE_WERROR=0
5326 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5328 { (exit 1); exit 1; }; } ;;
5331 # Check whether --enable-expensive-checks was given.
5332 if test "${enable_expensive_checks+set}" = set; then
5333 enableval=$enable_expensive_checks;
5338 if test ${enableval} = "yes" ; then
5339 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5341 EXPENSIVE_CHECKS=yes
5344 ENABLE_EXPENSIVE_CHECKS=
5350 # Check whether --enable-debug-runtime was given.
5351 if test "${enable_debug_runtime+set}" = set; then
5352 enableval=$enable_debug_runtime;
5357 if test ${enableval} = "no" ; then
5361 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5365 # Check whether --enable-debug-symbols was given.
5366 if test "${enable_debug_symbols+set}" = set; then
5367 enableval=$enable_debug_symbols;
5372 if test ${enableval} = "no" ; then
5376 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5380 # Check whether --enable-keep-symbols was given.
5381 if test "${enable_keep_symbols+set}" = set; then
5382 enableval=$enable_keep_symbols;
5387 if test ${enableval} = "no" ; then
5391 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5395 # Check whether --enable-jit was given.
5396 if test "${enable_jit+set}" = set; then
5397 enableval=$enable_jit;
5402 if test ${enableval} = "no"
5407 case "$llvm_cv_target_arch" in
5408 x86) TARGET_HAS_JIT=1
5410 Sparc) TARGET_HAS_JIT=0
5412 PowerPC) TARGET_HAS_JIT=1
5414 x86_64) TARGET_HAS_JIT=1
5416 ARM) TARGET_HAS_JIT=1
5418 AArch64) TARGET_HAS_JIT=0
5420 Mips) TARGET_HAS_JIT=1
5422 XCore) TARGET_HAS_JIT=0
5424 MSP430) TARGET_HAS_JIT=0
5426 Hexagon) TARGET_HAS_JIT=0
5428 NVPTX) TARGET_HAS_JIT=0
5430 SystemZ) TARGET_HAS_JIT=1
5437 # Check whether --enable-docs was given.
5438 if test "${enable_docs+set}" = set; then
5439 enableval=$enable_docs;
5444 case "$enableval" in
5449 default) ENABLE_DOCS=1
5451 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5452 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5453 { (exit 1); exit 1; }; } ;;
5456 # Check whether --enable-doxygen was given.
5457 if test "${enable_doxygen+set}" = set; then
5458 enableval=$enable_doxygen;
5463 case "$enableval" in
5464 yes) ENABLE_DOXYGEN=1
5466 no) ENABLE_DOXYGEN=0
5468 default) ENABLE_DOXYGEN=0
5470 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5471 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5472 { (exit 1); exit 1; }; } ;;
5475 # Check whether --enable-threads was given.
5476 if test "${enable_threads+set}" = set; then
5477 enableval=$enable_threads;
5482 case "$enableval" in
5483 yes) LLVM_ENABLE_THREADS=1
5485 no) LLVM_ENABLE_THREADS=0
5487 default) LLVM_ENABLE_THREADS=1
5489 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5490 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5491 { (exit 1); exit 1; }; } ;;
5494 cat >>confdefs.h <<_ACEOF
5495 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5499 # Check whether --enable-pthreads was given.
5500 if test "${enable_pthreads+set}" = set; then
5501 enableval=$enable_pthreads;
5506 case "$enableval" in
5507 yes) ENABLE_PTHREADS=1
5509 no) ENABLE_PTHREADS=0
5511 default) ENABLE_PTHREADS=1
5513 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5514 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5515 { (exit 1); exit 1; }; } ;;
5518 # Check whether --enable-zlib was given.
5519 if test "${enable_zlib+set}" = set; then
5520 enableval=$enable_zlib;
5525 case "$enableval" in
5526 yes) LLVM_ENABLE_ZLIB=1
5528 no) LLVM_ENABLE_ZLIB=0
5530 default) LLVM_ENABLE_ZLIB=1
5532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5533 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5534 { (exit 1); exit 1; }; } ;;
5537 cat >>confdefs.h <<_ACEOF
5538 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5542 # Check whether --enable-pic was given.
5543 if test "${enable_pic+set}" = set; then
5544 enableval=$enable_pic;
5549 case "$enableval" in
5554 default) ENABLE_PIC=1
5556 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5557 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5558 { (exit 1); exit 1; }; } ;;
5561 cat >>confdefs.h <<_ACEOF
5562 #define ENABLE_PIC $ENABLE_PIC
5566 # Check whether --enable-shared was given.
5567 if test "${enable_shared+set}" = set; then
5568 enableval=$enable_shared;
5573 case "$enableval" in
5574 yes) ENABLE_SHARED=1
5578 default) ENABLE_SHARED=0
5580 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5581 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5582 { (exit 1); exit 1; }; } ;;
5585 # Check whether --enable-embed-stdcxx was given.
5586 if test "${enable_embed_stdcxx+set}" = set; then
5587 enableval=$enable_embed_stdcxx;
5592 case "$enableval" in
5593 yes) ENABLE_EMBED_STDCXX=1
5595 no) ENABLE_EMBED_STDCXX=0
5597 default) ENABLE_EMBED_STDCXX=0
5599 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5600 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5601 { (exit 1); exit 1; }; } ;;
5604 # Check whether --enable-timestamps was given.
5605 if test "${enable_timestamps+set}" = set; then
5606 enableval=$enable_timestamps;
5611 case "$enableval" in
5612 yes) ENABLE_TIMESTAMPS=1
5614 no) ENABLE_TIMESTAMPS=0
5616 default) ENABLE_TIMESTAMPS=1
5618 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5619 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5620 { (exit 1); exit 1; }; } ;;
5623 cat >>confdefs.h <<_ACEOF
5624 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5629 # Check whether --enable-backtraces was given.
5630 if test "${enable_backtraces+set}" = set; then
5631 enableval=$enable_backtraces;
5636 case "$enableval" in
5637 yes) ENABLE_BACKTRACES=1
5639 no) ENABLE_BACKTRACES=0
5641 default) ENABLE_BACKTRACES=1
5643 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5644 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5645 { (exit 1); exit 1; }; } ;;
5648 cat >>confdefs.h <<_ACEOF
5649 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5654 # Check whether --enable-targets was given.
5655 if test "${enable_targets+set}" = set; then
5656 enableval=$enable_targets;
5661 if test "$enableval" = host-only ; then
5664 case "$enableval" in
5665 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5666 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5668 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5669 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5670 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5671 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5672 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5673 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5674 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5675 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5676 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5677 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5679 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5680 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5681 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5682 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5683 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5684 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5685 host) case "$llvm_cv_target_arch" in
5686 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5687 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5688 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5689 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5690 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5691 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5692 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5693 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5694 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5695 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5696 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5697 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5698 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5699 echo "$as_me: error: Can not set target to build" >&2;}
5700 { (exit 1); exit 1; }; } ;;
5702 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5703 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5704 { (exit 1); exit 1; }; } ;;
5710 # Check whether --enable-experimental-targets was given.
5711 if test "${enable_experimental_targets+set}" = set; then
5712 enableval=$enable_experimental_targets;
5718 if test ${enableval} != "disable"
5720 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5723 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5726 for a_target in $TARGETS_TO_BUILD; do
5727 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5729 cat >>confdefs.h <<_ACEOF
5730 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5733 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5734 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5735 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5736 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5737 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5738 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5740 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5741 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5744 cat >>confdefs.h <<_ACEOF
5745 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5749 cat >>confdefs.h <<_ACEOF
5750 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5754 cat >>confdefs.h <<_ACEOF
5755 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5759 cat >>confdefs.h <<_ACEOF
5760 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5763 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5765 cat >>confdefs.h <<_ACEOF
5766 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5770 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5772 cat >>confdefs.h <<_ACEOF
5773 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5780 LLVM_ENUM_TARGETS=""
5781 LLVM_ENUM_ASM_PRINTERS=""
5782 LLVM_ENUM_ASM_PARSERS=""
5783 LLVM_ENUM_DISASSEMBLERS=""
5784 for target_to_build in $TARGETS_TO_BUILD; do
5785 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5786 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5787 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5789 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5790 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5792 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5793 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5802 # Check whether --with-optimize-option was given.
5803 if test "${with_optimize_option+set}" = set; then
5804 withval=$with_optimize_option;
5809 { echo "$as_me:$LINENO: checking optimization flags" >&5
5810 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5813 case "$llvm_cv_os_type" in
5814 FreeBSD) optimize_option=-O2 ;;
5815 MingW) optimize_option=-O2 ;;
5816 *) optimize_option=-O3 ;;
5818 *) optimize_option="$withval" ;;
5820 OPTIMIZE_OPTION=$optimize_option
5822 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5823 echo "${ECHO_T}$optimize_option" >&6; }
5826 # Check whether --with-extra-options was given.
5827 if test "${with_extra_options+set}" = set; then
5828 withval=$with_extra_options;
5834 default) EXTRA_OPTIONS= ;;
5835 *) EXTRA_OPTIONS=$withval ;;
5837 EXTRA_OPTIONS=$EXTRA_OPTIONS
5841 # Check whether --with-extra-ld-options was given.
5842 if test "${with_extra_ld_options+set}" = set; then
5843 withval=$with_extra_ld_options;
5849 default) EXTRA_LD_OPTIONS= ;;
5850 *) EXTRA_LD_OPTIONS=$withval ;;
5852 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5855 # Check whether --enable-bindings was given.
5856 if test "${enable_bindings+set}" = set; then
5857 enableval=$enable_bindings;
5862 BINDINGS_TO_BUILD=""
5863 case "$enableval" in
5864 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5865 all ) BINDINGS_TO_BUILD="ocaml" ;;
5866 none | no) BINDINGS_TO_BUILD="" ;;
5867 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5868 case "$a_binding" in
5869 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5870 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5871 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5872 { (exit 1); exit 1; }; } ;;
5879 # Check whether --with-ocaml-libdir was given.
5880 if test "${with_ocaml_libdir+set}" = set; then
5881 withval=$with_ocaml_libdir;
5887 auto) with_ocaml_libdir="$withval" ;;
5888 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5889 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5890 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5891 { (exit 1); exit 1; }; } ;;
5895 # Check whether --with-clang-srcdir was given.
5896 if test "${with_clang_srcdir+set}" = set; then
5897 withval=$with_clang_srcdir;
5903 -) clang_src_root="" ;;
5904 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5905 *) clang_src_root="$ac_pwd/$withval" ;;
5907 CLANG_SRC_ROOT=$clang_src_root
5911 # Check whether --with-clang-resource-dir was given.
5912 if test "${with_clang_resource_dir+set}" = set; then
5913 withval=$with_clang_resource_dir;
5919 cat >>confdefs.h <<_ACEOF
5920 #define CLANG_RESOURCE_DIR "$withval"
5925 # Check whether --with-c-include-dirs was given.
5926 if test "${with_c_include_dirs+set}" = set; then
5927 withval=$with_c_include_dirs;
5933 cat >>confdefs.h <<_ACEOF
5934 #define C_INCLUDE_DIRS "$withval"
5938 # Clang normally uses the system c++ headers and libraries. With this option,
5939 # clang will use the ones provided by a gcc installation instead. This option should
5940 # be passed the same value that was used with --prefix when configuring gcc.
5942 # Check whether --with-gcc-toolchain was given.
5943 if test "${with_gcc_toolchain+set}" = set; then
5944 withval=$with_gcc_toolchain;
5950 cat >>confdefs.h <<_ACEOF
5951 #define GCC_INSTALL_PREFIX "$withval"
5956 # Check whether --with-default-sysroot was given.
5957 if test "${with_default_sysroot+set}" = set; then
5958 withval=$with_default_sysroot;
5964 cat >>confdefs.h <<_ACEOF
5965 #define DEFAULT_SYSROOT "$withval"
5970 # Check whether --with-binutils-include was given.
5971 if test "${with_binutils_include+set}" = set; then
5972 withval=$with_binutils_include;
5978 default) WITH_BINUTILS_INCDIR=default ;;
5979 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5980 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5981 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5982 { (exit 1); exit 1; }; } ;;
5984 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5985 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5987 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5988 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5989 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5990 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5991 { (exit 1); exit 1; }; };
5996 # Check whether --with-bug-report-url was given.
5997 if test "${with_bug_report_url+set}" = set; then
5998 withval=$with_bug_report_url;
6000 withval="http://llvm.org/bugs/"
6004 cat >>confdefs.h <<_ACEOF
6005 #define BUG_REPORT_URL "$withval"
6009 # Check whether --enable-curses was given.
6010 if test "${enable_curses+set}" = set; then
6011 enableval=$enable_curses; case "$enableval" in
6012 yes) llvm_cv_enable_curses="yes" ;;
6013 no) llvm_cv_enable_curses="no" ;;
6014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-curses. Use \"yes\" or \"no\"" >&5
6015 echo "$as_me: error: Invalid setting for --enable-curses. Use \"yes\" or \"no\"" >&2;}
6016 { (exit 1); exit 1; }; } ;;
6019 llvm_cv_enable_curses="yes"
6023 # Check whether --enable-libffi was given.
6024 if test "${enable_libffi+set}" = set; then
6025 enableval=$enable_libffi; case "$enableval" in
6026 yes) llvm_cv_enable_libffi="yes" ;;
6027 no) llvm_cv_enable_libffi="no" ;;
6028 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6029 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6030 { (exit 1); exit 1; }; } ;;
6033 llvm_cv_enable_libffi=no
6038 # Check whether --with-internal-prefix was given.
6039 if test "${with_internal_prefix+set}" = set; then
6040 withval=$with_internal_prefix;
6045 INTERNAL_PREFIX=$withval
6049 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6050 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6051 if test "${lt_cv_path_NM+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 if test -n "$NM"; then
6055 # Let the user override the test.
6058 lt_nm_to_check="${ac_tool_prefix}nm"
6059 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6060 lt_nm_to_check="$lt_nm_to_check nm"
6062 for lt_tmp_nm in $lt_nm_to_check; do
6063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6064 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6066 test -z "$ac_dir" && ac_dir=.
6067 tmp_nm="$ac_dir/$lt_tmp_nm"
6068 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6069 # Check to see if the nm accepts a BSD-compat flag.
6070 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6071 # nm: unknown option "B" ignored
6072 # Tru64's nm complains that /dev/null is an invalid object file
6073 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6074 */dev/null* | *'Invalid file or object type'*)
6075 lt_cv_path_NM="$tmp_nm -B"
6079 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6081 lt_cv_path_NM="$tmp_nm -p"
6085 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6086 continue # so that we can try to find one that supports BSD flags
6095 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6098 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6099 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6104 { echo "$as_me:$LINENO: checking for GNU make" >&5
6105 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6106 if test "${llvm_cv_gnu_make_command+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 llvm_cv_gnu_make_command=''
6110 for a in "$MAKE" make gmake gnumake ; do
6111 if test -z "$a" ; then continue ; fi ;
6112 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6114 llvm_cv_gnu_make_command=$a ;
6119 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6120 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6121 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6125 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6126 echo "${ECHO_T}\"Not found\"" >&6; };
6130 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6131 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6133 if test "$LN_S" = "ln -s"; then
6134 { echo "$as_me:$LINENO: result: yes" >&5
6135 echo "${ECHO_T}yes" >&6; }
6137 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6138 echo "${ECHO_T}no, using $LN_S" >&6; }
6141 # Extract the first word of "cmp", so it can be a program name with args.
6142 set dummy cmp; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_path_CMP+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6173 if test -n "$CMP"; then
6174 { echo "$as_me:$LINENO: result: $CMP" >&5
6175 echo "${ECHO_T}$CMP" >&6; }
6177 { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6182 # Extract the first word of "cp", so it can be a program name with args.
6183 set dummy cp; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_path_CP+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6214 if test -n "$CP"; then
6215 { echo "$as_me:$LINENO: result: $CP" >&5
6216 echo "${ECHO_T}$CP" >&6; }
6218 { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6223 # Extract the first word of "date", so it can be a program name with args.
6224 set dummy date; ac_word=$2
6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227 if test "${ac_cv_path_DATE+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6254 DATE=$ac_cv_path_DATE
6255 if test -n "$DATE"; then
6256 { echo "$as_me:$LINENO: result: $DATE" >&5
6257 echo "${ECHO_T}$DATE" >&6; }
6259 { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6264 # Extract the first word of "find", so it can be a program name with args.
6265 set dummy find; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_path_FIND+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6295 FIND=$ac_cv_path_FIND
6296 if test -n "$FIND"; then
6297 { echo "$as_me:$LINENO: result: $FIND" >&5
6298 echo "${ECHO_T}$FIND" >&6; }
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6305 # Extract the first word of "grep", so it can be a program name with args.
6306 set dummy grep; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_GREP+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6336 GREP=$ac_cv_path_GREP
6337 if test -n "$GREP"; then
6338 { echo "$as_me:$LINENO: result: $GREP" >&5
6339 echo "${ECHO_T}$GREP" >&6; }
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6346 # Extract the first word of "mkdir", so it can be a program name with args.
6347 set dummy mkdir; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_path_MKDIR+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6377 MKDIR=$ac_cv_path_MKDIR
6378 if test -n "$MKDIR"; then
6379 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6380 echo "${ECHO_T}$MKDIR" >&6; }
6382 { echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6; }
6387 # Extract the first word of "mv", so it can be a program name with args.
6388 set dummy mv; ac_word=$2
6389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391 if test "${ac_cv_path_MV+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6419 if test -n "$MV"; then
6420 { echo "$as_me:$LINENO: result: $MV" >&5
6421 echo "${ECHO_T}$MV" >&6; }
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6428 if test -n "$ac_tool_prefix"; then
6429 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6430 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433 if test "${ac_cv_prog_RANLIB+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 if test -n "$RANLIB"; then
6437 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 RANLIB=$ac_cv_prog_RANLIB
6457 if test -n "$RANLIB"; then
6458 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6459 echo "${ECHO_T}$RANLIB" >&6; }
6461 { echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6; }
6467 if test -z "$ac_cv_prog_RANLIB"; then
6468 ac_ct_RANLIB=$RANLIB
6469 # Extract the first word of "ranlib", so it can be a program name with args.
6470 set dummy ranlib; ac_word=$2
6471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 if test -n "$ac_ct_RANLIB"; then
6477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_RANLIB="ranlib"
6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6497 if test -n "$ac_ct_RANLIB"; then
6498 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6499 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6501 { echo "$as_me:$LINENO: result: no" >&5
6502 echo "${ECHO_T}no" >&6; }
6505 if test "x$ac_ct_RANLIB" = x; then
6508 case $cross_compiling:$ac_tool_warned in
6510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6511 whose name does not start with the host triplet. If you think this
6512 configuration is useful to you, please write to autoconf@gnu.org." >&5
6513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6514 whose name does not start with the host triplet. If you think this
6515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6516 ac_tool_warned=yes ;;
6518 RANLIB=$ac_ct_RANLIB
6521 RANLIB="$ac_cv_prog_RANLIB"
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}ar; ac_word=$2
6527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529 if test "${ac_cv_prog_AR+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 if test -n "$AR"; then
6533 ac_cv_prog_AR="$AR" # Let the user override the test.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_AR="${ac_tool_prefix}ar"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 if test -n "$AR"; then
6554 { echo "$as_me:$LINENO: result: $AR" >&5
6555 echo "${ECHO_T}$AR" >&6; }
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6563 if test -z "$ac_cv_prog_AR"; then
6565 # Extract the first word of "ar", so it can be a program name with args.
6566 set dummy ar; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 if test -n "$ac_ct_AR"; then
6573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_ac_ct_AR="ar"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6593 if test -n "$ac_ct_AR"; then
6594 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6595 echo "${ECHO_T}$ac_ct_AR" >&6; }
6597 { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6601 if test "x$ac_ct_AR" = x; then
6604 case $cross_compiling:$ac_tool_warned in
6606 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6607 whose name does not start with the host triplet. If you think this
6608 configuration is useful to you, please write to autoconf@gnu.org." >&5
6609 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6610 whose name does not start with the host triplet. If you think this
6611 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6612 ac_tool_warned=yes ;;
6620 # Extract the first word of "rm", so it can be a program name with args.
6621 set dummy rm; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_path_RM+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6652 if test -n "$RM"; then
6653 { echo "$as_me:$LINENO: result: $RM" >&5
6654 echo "${ECHO_T}$RM" >&6; }
6656 { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6661 # Extract the first word of "sed", so it can be a program name with args.
6662 set dummy sed; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_SED+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6693 if test -n "$SED"; then
6694 { echo "$as_me:$LINENO: result: $SED" >&5
6695 echo "${ECHO_T}$SED" >&6; }
6697 { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6702 # Extract the first word of "tar", so it can be a program name with args.
6703 set dummy tar; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_TAR+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6734 if test -n "$TAR"; then
6735 { echo "$as_me:$LINENO: result: $TAR" >&5
6736 echo "${ECHO_T}$TAR" >&6; }
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6743 # Extract the first word of "pwd", so it can be a program name with args.
6744 set dummy pwd; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_path_BINPWD+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6774 BINPWD=$ac_cv_path_BINPWD
6775 if test -n "$BINPWD"; then
6776 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6777 echo "${ECHO_T}$BINPWD" >&6; }
6779 { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6785 # Extract the first word of "Graphviz", so it can be a program name with args.
6786 set dummy Graphviz; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6816 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6817 if test -n "$GRAPHVIZ"; then
6818 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6819 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6821 { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6826 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_GRAPHVIZ 1
6832 if test "$llvm_cv_os_type" = "MingW" ; then
6833 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6836 cat >>confdefs.h <<_ACEOF
6837 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6841 # Extract the first word of "dot", so it can be a program name with args.
6842 set dummy dot; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_DOT+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6873 if test -n "$DOT"; then
6874 { echo "$as_me:$LINENO: result: $DOT" >&5
6875 echo "${ECHO_T}$DOT" >&6; }
6877 { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6882 if test "$DOT" != "echo dot" ; then
6884 cat >>confdefs.h <<\_ACEOF
6888 if test "$llvm_cv_os_type" = "MingW" ; then
6889 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6892 cat >>confdefs.h <<_ACEOF
6893 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6897 # Extract the first word of "fdp", so it can be a program name with args.
6898 set dummy fdp; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_path_FDP+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6929 if test -n "$FDP"; then
6930 { echo "$as_me:$LINENO: result: $FDP" >&5
6931 echo "${ECHO_T}$FDP" >&6; }
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6938 if test "$FDP" != "echo fdp" ; then
6940 cat >>confdefs.h <<\_ACEOF
6944 if test "$llvm_cv_os_type" = "MingW" ; then
6945 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6948 cat >>confdefs.h <<_ACEOF
6949 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6953 # Extract the first word of "neato", so it can be a program name with args.
6954 set dummy neato; ac_word=$2
6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957 if test "${ac_cv_path_NEATO+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6984 NEATO=$ac_cv_path_NEATO
6985 if test -n "$NEATO"; then
6986 { echo "$as_me:$LINENO: result: $NEATO" >&5
6987 echo "${ECHO_T}$NEATO" >&6; }
6989 { echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6; }
6994 if test "$NEATO" != "echo neato" ; then
6996 cat >>confdefs.h <<\_ACEOF
6997 #define HAVE_NEATO 1
7000 if test "$llvm_cv_os_type" = "MingW" ; then
7001 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7004 cat >>confdefs.h <<_ACEOF
7005 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7009 # Extract the first word of "twopi", so it can be a program name with args.
7010 set dummy twopi; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_path_TWOPI+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7040 TWOPI=$ac_cv_path_TWOPI
7041 if test -n "$TWOPI"; then
7042 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7043 echo "${ECHO_T}$TWOPI" >&6; }
7045 { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7050 if test "$TWOPI" != "echo twopi" ; then
7052 cat >>confdefs.h <<\_ACEOF
7053 #define HAVE_TWOPI 1
7056 if test "$llvm_cv_os_type" = "MingW" ; then
7057 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7060 cat >>confdefs.h <<_ACEOF
7061 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7065 # Extract the first word of "circo", so it can be a program name with args.
7066 set dummy circo; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_CIRCO+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7096 CIRCO=$ac_cv_path_CIRCO
7097 if test -n "$CIRCO"; then
7098 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7099 echo "${ECHO_T}$CIRCO" >&6; }
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7106 if test "$CIRCO" != "echo circo" ; then
7108 cat >>confdefs.h <<\_ACEOF
7109 #define HAVE_CIRCO 1
7112 if test "$llvm_cv_os_type" = "MingW" ; then
7113 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7116 cat >>confdefs.h <<_ACEOF
7117 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7121 for ac_prog in gv gsview32
7123 # Extract the first word of "$ac_prog", so it can be a program name with args.
7124 set dummy $ac_prog; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_GV+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 if test -n "$GV"; then
7155 { echo "$as_me:$LINENO: result: $GV" >&5
7156 echo "${ECHO_T}$GV" >&6; }
7158 { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7163 test -n "$GV" && break
7165 test -n "$GV" || GV="echo gv"
7167 if test "$GV" != "echo gv" ; then
7169 cat >>confdefs.h <<\_ACEOF
7173 if test "$llvm_cv_os_type" = "MingW" ; then
7174 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7177 cat >>confdefs.h <<_ACEOF
7178 #define LLVM_PATH_GV "$GV${EXEEXT}"
7182 # Extract the first word of "dotty", so it can be a program name with args.
7183 set dummy dotty; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_path_DOTTY+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7213 DOTTY=$ac_cv_path_DOTTY
7214 if test -n "$DOTTY"; then
7215 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7216 echo "${ECHO_T}$DOTTY" >&6; }
7218 { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7223 if test "$DOTTY" != "echo dotty" ; then
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_DOTTY 1
7229 if test "$llvm_cv_os_type" = "MingW" ; then
7230 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7233 cat >>confdefs.h <<_ACEOF
7234 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7238 for ac_prog in xdot xdot.py
7240 # Extract the first word of "$ac_prog", so it can be a program name with args.
7241 set dummy $ac_prog; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_path_XDOT+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 XDOT=$ac_cv_path_XDOT
7271 if test -n "$XDOT"; then
7272 { echo "$as_me:$LINENO: result: $XDOT" >&5
7273 echo "${ECHO_T}$XDOT" >&6; }
7275 { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7280 test -n "$XDOT" && break
7282 test -n "$XDOT" || XDOT="echo xdot"
7284 if test "$XDOT" != "echo xdot" ; then
7286 cat >>confdefs.h <<\_ACEOF
7290 if test "$llvm_cv_os_type" = "MingW" ; then
7291 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7294 cat >>confdefs.h <<_ACEOF
7295 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7300 # Find a good install program. We prefer a C program (faster),
7301 # so one script is as good as another. But avoid the broken or
7302 # incompatible versions:
7303 # SysV /etc/install, /usr/sbin/install
7304 # SunOS /usr/etc/install
7305 # IRIX /sbin/install
7307 # AmigaOS /C/install, which installs bootblocks on floppy discs
7308 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7309 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7310 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7311 # OS/2's system install, which has a completely different semantic
7312 # ./install, which can be erroneously created by make from ./install.sh.
7313 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7314 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7315 if test -z "$INSTALL"; then
7316 if test "${ac_cv_path_install+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 test -z "$as_dir" && as_dir=.
7324 # Account for people who put trailing slashes in PATH elements.
7326 ./ | .// | /cC/* | \
7327 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7328 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7331 # OSF1 and SCO ODT 3.0 have their own names for install.
7332 # Don't use installbsd from OSF since it installs stuff as root
7334 for ac_prog in ginstall scoinst install; do
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7337 if test $ac_prog = install &&
7338 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7339 # AIX install. It has an incompatible calling convention.
7341 elif test $ac_prog = install &&
7342 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7343 # program-specific install script used by HP pwplus--don't use.
7346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7359 if test "${ac_cv_path_install+set}" = set; then
7360 INSTALL=$ac_cv_path_install
7362 # As a last resort, use the slow shell script. Don't cache a
7363 # value for INSTALL within a source directory, because that will
7364 # break other packages using the cache if that directory is
7365 # removed, or if the value is a relative name.
7366 INSTALL=$ac_install_sh
7369 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7370 echo "${ECHO_T}$INSTALL" >&6; }
7372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7373 # It thinks the first close brace ends the variable substitution.
7374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7381 [\\/$]* | ?:[\\/]* ) ;;
7382 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7385 # Extract the first word of "bzip2", so it can be a program name with args.
7386 set dummy bzip2; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_BZIP2+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 BZIP2=$ac_cv_path_BZIP2
7416 if test -n "$BZIP2"; then
7417 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7418 echo "${ECHO_T}$BZIP2" >&6; }
7420 { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7425 # Extract the first word of "cat", so it can be a program name with args.
7426 set dummy cat; ac_word=$2
7427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7429 if test "${ac_cv_path_CAT+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7444 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 if test -n "$CAT"; then
7457 { echo "$as_me:$LINENO: result: $CAT" >&5
7458 echo "${ECHO_T}$CAT" >&6; }
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7465 # Extract the first word of "doxygen", so it can be a program name with args.
7466 set dummy doxygen; ac_word=$2
7467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7469 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 DOXYGEN=$ac_cv_path_DOXYGEN
7496 if test -n "$DOXYGEN"; then
7497 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7498 echo "${ECHO_T}$DOXYGEN" >&6; }
7500 { echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6; }
7505 # Extract the first word of "groff", so it can be a program name with args.
7506 set dummy groff; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_path_GROFF+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 GROFF=$ac_cv_path_GROFF
7536 if test -n "$GROFF"; then
7537 { echo "$as_me:$LINENO: result: $GROFF" >&5
7538 echo "${ECHO_T}$GROFF" >&6; }
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7545 # Extract the first word of "gzip", so it can be a program name with args.
7546 set dummy gzip; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 GZIPBIN=$ac_cv_path_GZIPBIN
7576 if test -n "$GZIPBIN"; then
7577 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7578 echo "${ECHO_T}$GZIPBIN" >&6; }
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7585 # Extract the first word of "pdfroff", so it can be a program name with args.
7586 set dummy pdfroff; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_PDFROFF+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 PDFROFF=$ac_cv_path_PDFROFF
7616 if test -n "$PDFROFF"; then
7617 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7618 echo "${ECHO_T}$PDFROFF" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7625 # Extract the first word of "zip", so it can be a program name with args.
7626 set dummy zip; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_ZIP+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 if test -n "$ZIP"; then
7657 { echo "$as_me:$LINENO: result: $ZIP" >&5
7658 echo "${ECHO_T}$ZIP" >&6; }
7660 { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7665 for ac_prog in ocamlc
7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_OCAMLC+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 OCAMLC=$ac_cv_path_OCAMLC
7698 if test -n "$OCAMLC"; then
7699 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7700 echo "${ECHO_T}$OCAMLC" >&6; }
7702 { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7707 test -n "$OCAMLC" && break
7710 for ac_prog in ocamlopt
7712 # Extract the first word of "$ac_prog", so it can be a program name with args.
7713 set dummy $ac_prog; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 OCAMLOPT=$ac_cv_path_OCAMLOPT
7743 if test -n "$OCAMLOPT"; then
7744 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7745 echo "${ECHO_T}$OCAMLOPT" >&6; }
7747 { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7752 test -n "$OCAMLOPT" && break
7755 for ac_prog in ocamldep
7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 OCAMLDEP=$ac_cv_path_OCAMLDEP
7788 if test -n "$OCAMLDEP"; then
7789 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7790 echo "${ECHO_T}$OCAMLDEP" >&6; }
7792 { echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6; }
7797 test -n "$OCAMLDEP" && break
7800 for ac_prog in ocamldoc
7802 # Extract the first word of "$ac_prog", so it can be a program name with args.
7803 set dummy $ac_prog; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 OCAMLDOC=$ac_cv_path_OCAMLDOC
7833 if test -n "$OCAMLDOC"; then
7834 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7835 echo "${ECHO_T}$OCAMLDOC" >&6; }
7837 { echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6; }
7842 test -n "$OCAMLDOC" && break
7845 for ac_prog in gas as
7847 # Extract the first word of "$ac_prog", so it can be a program name with args.
7848 set dummy $ac_prog; ac_word=$2
7849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851 if test "${ac_cv_path_GAS+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 if test -n "$GAS"; then
7879 { echo "$as_me:$LINENO: result: $GAS" >&5
7880 echo "${ECHO_T}$GAS" >&6; }
7882 { echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6; }
7887 test -n "$GAS" && break
7891 { echo "$as_me:$LINENO: checking for linker version" >&5
7892 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7893 if test "${llvm_cv_link_version+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 version_string="$(ld -v 2>&1 | head -1)"
7900 if (echo "$version_string" | grep -q "ld64"); then
7901 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7903 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7907 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7908 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7910 cat >>confdefs.h <<_ACEOF
7911 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7916 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7917 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_use_r+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_cpp='$CPP $CPPFLAGS'
7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928 CFLAGS="$CFLAGS -Wl,-R."
7929 cat >conftest.$ac_ext <<_ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_link") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1 >conftest.err
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959 { (case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_try") 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 llvm_cv_link_use_r=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 llvm_cv_link_use_r=no
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7998 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7999 if test "$llvm_cv_link_use_r" = yes ; then
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_LINK_R 1
8008 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8009 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8010 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 ac_cpp='$CPP $CPPFLAGS'
8015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020 CFLAGS="$CFLAGS -rdynamic"
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (ac_try="$ac_link"
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_link") 2>conftest.er1
8045 grep -v '^ *+' conftest.er1 >conftest.err
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8051 { (case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_try") 2>&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
8061 { (case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_try") 2>&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 llvm_cv_link_use_export_dynamic=yes
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 llvm_cv_link_use_export_dynamic=no
8078 rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8082 ac_cpp='$CPP $CPPFLAGS'
8083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8089 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8090 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8091 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8093 cat >>confdefs.h <<\_ACEOF
8094 #define HAVE_LINK_EXPORT_DYNAMIC 1
8100 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8101 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8102 if test "${llvm_cv_link_use_version_script+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 ac_cpp='$CPP $CPPFLAGS'
8107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8113 # The following code is from the autoconf manual,
8114 # "11.13: Limitations of Usual Tools".
8115 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8116 # Use mktemp if possible; otherwise fall back on mkdir,
8117 # with $RANDOM to make collisions less likely.
8121 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8123 test -n "$tmp" && test -d "$tmp"
8125 tmp=$TMPDIR/foo$$-$RANDOM
8126 (umask 077 && mkdir "$tmp")
8129 echo "{" > "$tmp/export.map"
8130 echo " global: main;" >> "$tmp/export.map"
8131 echo " local: *;" >> "$tmp/export.map"
8132 echo "};" >> "$tmp/export.map"
8134 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8150 rm -f conftest.$ac_objext conftest$ac_exeext
8151 if { (ac_try="$ac_link"
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_link") 2>conftest.er1
8159 grep -v '^ *+' conftest.er1 >conftest.err
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try='test -s conftest$ac_exeext'
8175 { (case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_try") 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 llvm_cv_link_use_version_script=yes
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8189 llvm_cv_link_use_version_script=no
8192 rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194 rm "$tmp/export.map"
8198 ac_cpp='$CPP $CPPFLAGS'
8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8205 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8206 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8207 if test "$llvm_cv_link_use_version_script" = yes ; then
8208 HAVE_LINK_VERSION_SCRIPT=1
8215 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8216 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8217 if test "${ac_cv_c_const+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8230 /* FIXME: Include the comments suggested by Paul. */
8232 /* Ultrix mips cc rejects this. */
8233 typedef int charset[2];
8235 /* SunOS 4.1.1 cc rejects this. */
8236 char const *const *ccp;
8238 /* NEC SVR4.0.2 mips cc rejects this. */
8239 struct point {int x, y;};
8240 static struct point const zero = {0,0};
8241 /* AIX XL C 1.02.0.0 rejects this.
8242 It does not let you subtract one const X* pointer from another in
8243 an arm of an if-expression whose if-part is not a constant
8245 const char *g = "string";
8246 ccp = &g + (g ? g-g : 0);
8247 /* HPUX 7.0 cc rejects these. */
8250 ccp = (char const *const *) p;
8251 { /* SCO 3.2v4 cc rejects this. */
8253 char const *s = 0 ? (char *) 0 : (char const *) 0;
8258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8260 const int *foo = &x[0];
8263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8264 typedef const int *iptr;
8268 { /* AIX XL C 1.02.0.0 rejects this saying
8269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8270 struct s { int j; const int *ap[3]; };
8271 struct s *b; b->j = 5;
8273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8277 return !x[0] && !zero.x;
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_try") 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8329 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8330 if test $ac_cv_c_const = no; then
8332 cat >>confdefs.h <<\_ACEOF
8344 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8345 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8346 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8347 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 #include <sys/types.h>
8369 rm -f conftest.$ac_objext
8370 if { (ac_try="$ac_compile"
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_compile") 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384 { (case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_try") 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest.$ac_objext'
8394 { (case "(($ac_try" in
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_try") 2>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 eval "$as_ac_Header=yes"
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 eval "$as_ac_Header=no"
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8413 ac_res=`eval echo '${'$as_ac_Header'}'`
8414 { echo "$as_me:$LINENO: result: $ac_res" >&5
8415 echo "${ECHO_T}$ac_res" >&6; }
8416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8417 cat >>confdefs.h <<_ACEOF
8418 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8421 ac_header_dirent=$ac_hdr; break
8425 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8426 if test $ac_header_dirent = dirent.h; then
8427 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8428 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8429 if test "${ac_cv_search_opendir+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 ac_func_search_save_LIBS=$LIBS
8433 cat >conftest.$ac_ext <<_ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8440 /* Override any GCC internal prototype to avoid an error.
8441 Use char because int might match the return type of a GCC
8442 builtin and then its argument prototype would still apply. */
8455 for ac_lib in '' dir; do
8456 if test -z "$ac_lib"; then
8457 ac_res="none required"
8460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (ac_try="$ac_link"
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_link") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8477 { (case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_try") 2>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; } &&
8486 { ac_try='test -s conftest$ac_exeext'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_search_opendir=$ac_res
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8504 rm -f core conftest.err conftest.$ac_objext \
8506 if test "${ac_cv_search_opendir+set}" = set; then
8510 if test "${ac_cv_search_opendir+set}" = set; then
8513 ac_cv_search_opendir=no
8516 LIBS=$ac_func_search_save_LIBS
8518 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8519 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8520 ac_res=$ac_cv_search_opendir
8521 if test "$ac_res" != no; then
8522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8527 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8528 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8529 if test "${ac_cv_search_opendir+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 ac_func_search_save_LIBS=$LIBS
8533 cat >conftest.$ac_ext <<_ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8540 /* Override any GCC internal prototype to avoid an error.
8541 Use char because int might match the return type of a GCC
8542 builtin and then its argument prototype would still apply. */
8555 for ac_lib in '' x; do
8556 if test -z "$ac_lib"; then
8557 ac_res="none required"
8560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_link") 2>conftest.er1
8571 grep -v '^ *+' conftest.er1 >conftest.err
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8577 { (case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_try") 2>&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; } &&
8586 { ac_try='test -s conftest$ac_exeext'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 ac_cv_search_opendir=$ac_res
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8604 rm -f core conftest.err conftest.$ac_objext \
8606 if test "${ac_cv_search_opendir+set}" = set; then
8610 if test "${ac_cv_search_opendir+set}" = set; then
8613 ac_cv_search_opendir=no
8616 LIBS=$ac_func_search_save_LIBS
8618 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8619 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8620 ac_res=$ac_cv_search_opendir
8621 if test "$ac_res" != no; then
8622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8629 for ac_header in dlfcn.h
8631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 ac_res=`eval echo '${'$as_ac_Header'}'`
8639 { echo "$as_me:$LINENO: result: $ac_res" >&5
8640 echo "${ECHO_T}$ac_res" >&6; }
8642 # Is the header compilable?
8643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8645 cat >conftest.$ac_ext <<_ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 #include <$ac_header>
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_compile") 2>conftest.er1
8663 grep -v '^ *+' conftest.er1 >conftest.err
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8669 { (case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_try") 2>&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest.$ac_objext'
8679 { (case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_try") 2>&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 ac_header_compiler=yes
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 ac_header_compiler=no
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8698 echo "${ECHO_T}$ac_header_compiler" >&6; }
8700 # Is the header present?
8701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8703 cat >conftest.$ac_ext <<_ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 #include <$ac_header>
8711 if { (ac_try="$ac_cpp conftest.$ac_ext"
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8719 grep -v '^ *+' conftest.er1 >conftest.err
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } >/dev/null; then
8724 if test -s conftest.err; then
8725 ac_cpp_err=$ac_c_preproc_warn_flag
8726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8733 if test -z "$ac_cpp_err"; then
8734 ac_header_preproc=yes
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ac_header_preproc=no
8742 rm -f conftest.err conftest.$ac_ext
8743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8744 echo "${ECHO_T}$ac_header_preproc" >&6; }
8746 # So? What about this header?
8747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8753 ac_header_preproc=yes
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8769 ## ------------------------------------ ##
8770 ## Report this to http://llvm.org/bugs/ ##
8771 ## ------------------------------------ ##
8773 ) | sed "s/^/$as_me: WARNING: /" >&2
8776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 eval "$as_ac_Header=\$ac_header_preproc"
8783 ac_res=`eval echo '${'$as_ac_Header'}'`
8784 { echo "$as_me:$LINENO: result: $ac_res" >&5
8785 echo "${ECHO_T}$ac_res" >&6; }
8788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8789 cat >>confdefs.h <<_ACEOF
8790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8797 # Check whether --enable-ltdl-install was given.
8798 if test "${enable_ltdl_install+set}" = set; then
8799 enableval=$enable_ltdl_install;
8805 if test x"${enable_ltdl_install-no}" != xno; then
8807 INSTALL_LTDL_FALSE='#'
8809 INSTALL_LTDL_TRUE='#'
8815 if test x"${enable_ltdl_convenience-no}" != xno; then
8816 CONVENIENCE_LTDL_TRUE=
8817 CONVENIENCE_LTDL_FALSE='#'
8819 CONVENIENCE_LTDL_TRUE='#'
8820 CONVENIENCE_LTDL_FALSE=
8824 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8825 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8827 libname_spec='lib$name'
8835 shlibpath_overrides_runpath=unknown
8837 dynamic_linker="$host_os ld.so"
8838 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8839 if test "$GCC" = yes; then
8840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8841 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8842 # if the path contains ";" then we assume it to be the separator
8843 # otherwise default to the standard path separator (i.e. ":") - it is
8844 # assumed that no part of a normal pathname contains ";" but that should
8845 # okay in the real world where ";" in dirpaths is itself problematic.
8846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8853 need_lib_prefix=unknown
8854 hardcode_into_libs=no
8856 # when you set need_version to no, make sure it does not cause -set_version
8857 # flags to be left without arguments
8858 need_version=unknown
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8864 shlibpath_var=LIBPATH
8866 # AIX 3 has no versioning support, so we append a major version to the name.
8867 soname_spec='${libname}${release}${shared_ext}$major'
8874 hardcode_into_libs=yes
8875 if test "$host_cpu" = ia64; then
8876 # AIX 5 supports IA64
8877 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8878 shlibpath_var=LD_LIBRARY_PATH
8880 # With GCC up to 2.95.x, collect2 would create an import file
8881 # for dependence libraries. The import file would start with
8882 # the line `#! .'. This would cause the generated library to
8883 # depend on `.', always an invalid library. This was fixed in
8884 # development snapshots of GCC prior to 3.0.
8886 aix4 | aix4.[01] | aix4.[01].*)
8887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8889 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8897 # soname into executable. Probably we can add versioning support to
8898 # collect2, so additional links can be useful in future.
8899 if test "$aix_use_runtimelinking" = yes; then
8900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8901 # instead of lib<name>.a to let people know that these are not
8902 # typical AIX shared libraries.
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 # We preserve .a as extension for shared libraries through AIX4.2
8906 # and later when we are not doing run time linking.
8907 library_names_spec='${libname}${release}.a $libname.a'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8910 shlibpath_var=LIBPATH
8915 library_names_spec='$libname.ixlibrary $libname.a'
8916 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8917 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8921 library_names_spec='${libname}${shared_ext}'
8922 dynamic_linker="$host_os ld.so"
8923 shlibpath_var=LIBRARY_PATH
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8935 # the default ld.so.conf also contains /usr/contrib/lib and
8936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8937 # libtool to hard-code these into programs
8940 cygwin* | mingw* | pw32*)
8941 version_type=windows
8946 case $GCC,$host_os in
8947 yes,cygwin* | yes,mingw* | yes,pw32*)
8948 library_names_spec='$libname.dll.a'
8949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8950 postinstall_cmds='base_file=`basename \${file}`~
8951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8952 dldir=$destdir/`dirname \$dlpath`~
8953 test -d \$dldir || mkdir -p \$dldir~
8954 $install_prog $dir/$dlname \$dldir/$dlname~
8955 chmod a+x \$dldir/$dlname'
8956 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8957 dlpath=$dir/\$dldll~
8959 shlibpath_overrides_runpath=yes
8963 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8965 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8968 # MinGW DLLs use traditional 'lib' prefix
8969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8970 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8971 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8972 # It is most probably a Windows format PATH printed by
8973 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8974 # path with ; separators, and with drive letters. We can handle the
8975 # drive letters (cygwin fileutils understands them), so leave them,
8976 # especially as we might pass files found there to a mingw objdump,
8977 # which wouldn't understand a cygwinified path. Ahh.
8978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8984 # pw32 DLLs use 'pw' prefix rather than 'lib'
8985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8991 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8994 dynamic_linker='Win32 ld.exe'
8995 # FIXME: first we should search . and the directory the executable is in
8999 darwin* | rhapsody*)
9000 dynamic_linker="$host_os dyld"
9004 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9005 soname_spec='${libname}${release}${major}$shared_ext'
9006 shlibpath_overrides_runpath=yes
9007 shlibpath_var=DYLD_LIBRARY_PATH
9008 shrext_cmds='.dylib'
9009 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9010 if test "$GCC" = yes; then
9011 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9013 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 shlibpath_var=LD_LIBRARY_PATH
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=no
9039 hardcode_into_libs=yes
9040 dynamic_linker='GNU ld.so'
9043 freebsd* | dragonfly*)
9044 # DragonFly does not have aout. When/if they implement a new
9045 # versioning mechanism, adjust this.
9046 if test -x /usr/bin/objformat; then
9047 objformat=`/usr/bin/objformat`
9050 freebsd[123].*) objformat=aout ;;
9054 version_type=freebsd-$objformat
9055 case $version_type in
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9066 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9071 freebsd3.[01]* | freebsdelf3.[01]*)
9072 shlibpath_overrides_runpath=yes
9073 hardcode_into_libs=yes
9075 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9076 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9077 shlibpath_overrides_runpath=no
9078 hardcode_into_libs=yes
9080 freebsd*) # from 4.6 on
9081 shlibpath_overrides_runpath=yes
9082 hardcode_into_libs=yes
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 hardcode_into_libs=yes
9097 hpux9* | hpux10* | hpux11*)
9098 # Give a soname corresponding to the major version so that dld.sl refuses to
9099 # link against other versions.
9106 hardcode_into_libs=yes
9107 dynamic_linker="$host_os dld.so"
9108 shlibpath_var=LD_LIBRARY_PATH
9109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 if test "X$HPUX_IA64_MODE" = X32; then
9113 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9115 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9121 hardcode_into_libs=yes
9122 dynamic_linker="$host_os dld.sl"
9123 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9132 dynamic_linker="$host_os dld.sl"
9133 shlibpath_var=SHLIB_PATH
9134 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9139 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9140 postinstall_cmds='chmod 555 $lib'
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 shlibpath_overrides_runpath=no
9152 hardcode_into_libs=yes
9155 irix5* | irix6* | nonstopux*)
9157 nonstopux*) version_type=nonstopux ;;
9159 if test "$lt_cv_prog_gnu_ld" = yes; then
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9170 irix5* | nonstopux*)
9174 case $LD in # libtool.m4 will add one of these switches to LD
9175 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9176 libsuff= shlibsuff= libmagic=32-bit;;
9177 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9178 libsuff=32 shlibsuff=N32 libmagic=N32;;
9179 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9180 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9181 *) libsuff= shlibsuff= libmagic=never-match;;
9185 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9186 shlibpath_overrides_runpath=no
9187 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9188 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9189 hardcode_into_libs=yes
9192 # No shared lib support for Linux oldld, aout, or coff.
9193 linux*oldld* | linux*aout* | linux*coff*)
9197 # This must be Linux ELF.
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 shlibpath_overrides_runpath=no
9207 # This implies no fast_install, which is unacceptable.
9208 # Some rework will be needed to allow for fast_install
9209 # before this can be enabled.
9210 hardcode_into_libs=yes
9212 # Append ld.so.conf contents to the search path
9213 if test -f /etc/ld.so.conf; then
9214 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9215 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9218 # We used to test for /lib/ld.so.1 and disable shared libraries on
9219 # powerpc, because MkLinux only supported shared libraries with the
9220 # GNU dynamic linker. Since this was broken with cross compilers,
9221 # most powerpc-linux boxes support dynamic linking these days and
9222 # people can always --disable-shared, the test was removed, and we
9223 # assume the GNU/Linux dynamic linker is in use.
9224 dynamic_linker='GNU/Linux ld.so'
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 shlibpath_overrides_runpath=no
9235 hardcode_into_libs=yes
9236 dynamic_linker='GNU ld.so'
9243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9246 dynamic_linker='NetBSD (a.out) ld.so'
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 dynamic_linker='NetBSD ld.elf_so'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 shlibpath_overrides_runpath=yes
9254 hardcode_into_libs=yes
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 shlibpath_overrides_runpath=yes
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 shlibpath_overrides_runpath=yes
9276 sys_lib_dlsearch_path_spec="/usr/lib"
9278 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9280 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9281 *) need_version=no ;;
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9288 openbsd2.[89] | openbsd2.[89].*)
9289 shlibpath_overrides_runpath=no
9292 shlibpath_overrides_runpath=yes
9296 shlibpath_overrides_runpath=yes
9301 libname_spec='$name'
9304 library_names_spec='$libname${shared_ext} $libname.a'
9305 dynamic_linker='OS/2 ld.exe'
9306 shlibpath_var=LIBPATH
9309 osf3* | osf4* | osf5*)
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9317 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 shlibpath_overrides_runpath=yes
9328 hardcode_into_libs=yes
9329 # ldd complains unless libraries are executable
9330 postinstall_cmds='chmod +x $lib'
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9336 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 shlibpath_overrides_runpath=yes
9339 if test "$with_gnu_ld" = yes; then
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 case $host_vendor in
9352 shlibpath_overrides_runpath=no
9354 export_dynamic_flag_spec='${wl}-Blargedynsym'
9355 runpath_var=LD_RUN_PATH
9363 shlibpath_overrides_runpath=no
9364 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9370 if test -d /usr/nec ;then
9372 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9373 soname_spec='$libname${shared_ext}.$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9379 version_type=freebsd-elf
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 hardcode_into_libs=yes
9386 if test "$with_gnu_ld" = yes; then
9387 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9388 shlibpath_overrides_runpath=no
9390 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9391 shlibpath_overrides_runpath=yes
9394 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9398 sys_lib_dlsearch_path_spec='/usr/lib'
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9412 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9413 echo "${ECHO_T}$dynamic_linker" >&6; }
9414 test "$dynamic_linker" = no && can_build_shared=no
9416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9417 if test "$GCC" = yes; then
9418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9422 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9423 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9424 if test "${libltdl_cv_shlibext+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 eval libltdl_cv_shlibext=$shrext_cmds
9432 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9433 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9434 if test -n "$libltdl_cv_shlibext"; then
9436 cat >>confdefs.h <<_ACEOF
9437 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9443 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9444 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9445 if test "${libltdl_cv_sys_search_path+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9450 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9451 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9452 if test -n "$libltdl_cv_sys_search_path"; then
9454 for dir in $libltdl_cv_sys_search_path; do
9455 if test -z "$sys_search_path"; then
9456 sys_search_path="$dir"
9458 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9462 cat >>confdefs.h <<_ACEOF
9463 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9468 { echo "$as_me:$LINENO: checking for objdir" >&5
9469 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9470 if test "${libltdl_cv_objdir+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 libltdl_cv_objdir="$objdir"
9474 if test -n "$objdir"; then
9477 rm -f .libs 2>/dev/null
9478 mkdir .libs 2>/dev/null
9479 if test -d .libs; then
9480 libltdl_cv_objdir=.libs
9482 # MS-DOS does not allow filenames that begin with a dot.
9483 libltdl_cv_objdir=_libs
9485 rmdir .libs 2>/dev/null
9489 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9490 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9492 cat >>confdefs.h <<_ACEOF
9493 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9501 # Check for command to grab the raw symbol name followed by C symbol from nm.
9502 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9503 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 # These are sane defaults that work on at least a few old systems.
9509 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9511 # Character class describing NM global symbol codes.
9512 symcode='[BCDEGRST]'
9514 # Regexp to match symbols that can be accessed directly from C.
9515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9517 # Transform an extracted symbol line into a proper C declaration
9518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9520 # Transform an extracted symbol line into symbol name and symbol address
9521 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9523 # Define system-specific variables.
9528 cygwin* | mingw* | pw32*)
9529 symcode='[ABCDGISTW]'
9531 hpux*) # Its linker distinguishes data from code symbols
9532 if test "$host_cpu" = ia64; then
9533 symcode='[ABCDEGRST]'
9535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9536 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9539 if test "$host_cpu" = ia64; then
9540 symcode='[ABCDGIRSTW]'
9541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9542 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9546 symcode='[BCDEGRST]'
9549 symcode='[BCDEGQRST]'
9560 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9568 # Handle CRLF in mingw tool chain
9572 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9576 # If we're using GNU nm, then use its standard symbol codes.
9577 case `$NM -V 2>&1` in
9578 *GNU* | *'with BFD'*)
9579 symcode='[ABCDGIRSTW]' ;;
9582 # Try without a prefix undercore, then with it.
9583 for ac_symprfx in "" "_"; do
9585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9586 symxfrm="\\1 $ac_symprfx\\2 \\2"
9588 # Write the raw and C identifiers.
9589 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9591 # Check to see that the pipe works correctly.
9595 cat > conftest.$ac_ext <<EOF
9600 void nm_test_func(){}
9604 int main(){nm_test_var='a';nm_test_func();return(0);}
9607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9608 (eval $ac_compile) 2>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; then
9612 # Now try to grab the symbols.
9614 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9615 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && test -s "$nlist"; then
9619 # Try sorting and uniquifying the output.
9620 if sort "$nlist" | uniq > "$nlist"T; then
9621 mv -f "$nlist"T "$nlist"
9626 # Make sure that we snagged all the symbols we need.
9627 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9628 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9629 cat <<EOF > conftest.$ac_ext
9635 # Now generate the symbol file.
9636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9638 cat <<EOF >> conftest.$ac_ext
9639 #if defined (__STDC__) && __STDC__
9640 # define lt_ptr_t void *
9642 # define lt_ptr_t char *
9646 /* The mapping between symbol names and symbols. */
9651 lt_preloaded_symbols[] =
9654 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9655 cat <<\EOF >> conftest.$ac_ext
9663 # Now try linking the two files.
9664 mv conftest.$ac_objext conftstm.$ac_objext
9665 lt_save_LIBS="$LIBS"
9666 lt_save_CFLAGS="$CFLAGS"
9667 LIBS="conftstm.$ac_objext"
9668 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9676 LIBS="$lt_save_LIBS"
9677 CFLAGS="$lt_save_CFLAGS"
9679 echo "cannot find nm_test_func in $nlist" >&5
9682 echo "cannot find nm_test_var in $nlist" >&5
9685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9688 echo "$progname: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9691 rm -f conftest* conftst*
9693 # Do not use the global_symbol_pipe unless it works.
9694 if test "$pipe_works" = yes; then
9697 lt_cv_sys_global_symbol_pipe=
9703 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9704 lt_cv_sys_global_symbol_to_cdecl=
9706 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9707 { echo "$as_me:$LINENO: result: failed" >&5
9708 echo "${ECHO_T}failed" >&6; }
9710 { echo "$as_me:$LINENO: result: ok" >&5
9711 echo "${ECHO_T}ok" >&6; }
9715 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9716 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9717 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9721 libltdl_cv_preloaded_symbols=yes
9723 libltdl_cv_preloaded_symbols=no
9727 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9728 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9729 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9731 cat >>confdefs.h <<\_ACEOF
9732 #define HAVE_PRELOADED_SYMBOLS 1
9740 ac_cpp='$CPP $CPPFLAGS'
9741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9746 { echo "$as_me:$LINENO: checking for shl_load" >&5
9747 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9748 if test "${ac_cv_func_shl_load+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9759 #define shl_load innocuous_shl_load
9761 /* System header to define __stub macros and hopefully few prototypes,
9762 which can conflict with char shl_load (); below.
9763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9764 <limits.h> exists even on freestanding compilers. */
9767 # include <limits.h>
9769 # include <assert.h>
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9781 /* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784 #if defined __stub_shl_load || defined __stub___shl_load
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (ac_try="$ac_link"
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_link") 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811 { (case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_try") 2>&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; } &&
9820 { ac_try='test -s conftest$ac_exeext'
9821 { (case "(($ac_try" in
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826 (eval "$ac_try") 2>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 ac_cv_func_shl_load=yes
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 ac_cv_func_shl_load=no
9838 rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
9841 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9843 if test $ac_cv_func_shl_load = yes; then
9845 cat >>confdefs.h <<\_ACEOF
9846 #define HAVE_SHL_LOAD 1
9850 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 ac_check_lib_save_LIBS=$LIBS
9857 cat >conftest.$ac_ext <<_ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9864 /* Override any GCC internal prototype to avoid an error.
9865 Use char because int might match the return type of a GCC
9866 builtin and then its argument prototype would still apply. */
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (ac_try="$ac_link"
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_link") 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894 { (case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_try") 2>&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_try") 2>&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 ac_cv_lib_dld_shl_load=yes
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_cv_lib_dld_shl_load=no
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9926 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9927 if test $ac_cv_lib_dld_shl_load = yes; then
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_SHL_LOAD 1
9933 LIBADD_DL="$LIBADD_DL -ldld"
9935 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9936 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 ac_check_lib_save_LIBS=$LIBS
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9973 grep -v '^ *+' conftest.er1 >conftest.err
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try='test -s conftest$ac_exeext'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_lib_dl_dlopen=yes
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ac_cv_lib_dl_dlopen=no
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10010 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10012 if test $ac_cv_lib_dl_dlopen = yes; then
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_LIBDL 1
10018 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 # include <dlfcn.h>
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_link") 2>conftest.er1
10047 grep -v '^ *+' conftest.er1 >conftest.err
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10073 cat >>confdefs.h <<\_ACEOF
10074 #define HAVE_LIBDL 1
10076 libltdl_cv_func_dlopen="yes"
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10082 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10083 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-lsvld $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10095 /* Override any GCC internal prototype to avoid an error.
10096 Use char because int might match the return type of a GCC
10097 builtin and then its argument prototype would still apply. */
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_link") 2>conftest.er1
10119 grep -v '^ *+' conftest.er1 >conftest.err
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_try") 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_lib_svld_dlopen=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_lib_svld_dlopen=no
10152 rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10154 LIBS=$ac_check_lib_save_LIBS
10156 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10157 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10158 if test $ac_cv_lib_svld_dlopen = yes; then
10160 cat >>confdefs.h <<\_ACEOF
10161 #define HAVE_LIBDL 1
10164 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10166 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10167 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10168 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 ac_check_lib_save_LIBS=$LIBS
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10180 /* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
10190 return dld_link ();
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_link") 2>conftest.er1
10204 grep -v '^ *+' conftest.er1 >conftest.err
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210 { (case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_try") 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_try") 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_lib_dld_dld_link=yes
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ac_cv_lib_dld_dld_link=no
10237 rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_check_lib_save_LIBS
10241 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10242 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10243 if test $ac_cv_lib_dld_dld_link = yes; then
10245 cat >>confdefs.h <<\_ACEOF
10249 LIBADD_DL="$LIBADD_DL -ldld"
10251 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10252 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10253 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 cat >conftest.$ac_ext <<_ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10264 #define _dyld_func_lookup innocuous__dyld_func_lookup
10266 /* System header to define __stub macros and hopefully few prototypes,
10267 which can conflict with char _dyld_func_lookup (); below.
10268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10269 <limits.h> exists even on freestanding compilers. */
10272 # include <limits.h>
10274 # include <assert.h>
10277 #undef _dyld_func_lookup
10279 /* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
10285 char _dyld_func_lookup ();
10286 /* The GNU C library defines this for functions which it implements
10287 to always fail with ENOSYS. Some functions are actually named
10288 something starting with __ and the normal name is an alias. */
10289 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10296 return _dyld_func_lookup ();
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (ac_try="$ac_link"
10303 case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_link") 2>conftest.er1
10310 grep -v '^ *+' conftest.er1 >conftest.err
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10316 { (case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_try") 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest$ac_exeext'
10326 { (case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_try") 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_cv_func__dyld_func_lookup=yes
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_cv_func__dyld_func_lookup=no
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10346 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10347 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10348 if test $ac_cv_func__dyld_func_lookup = yes; then
10350 cat >>confdefs.h <<\_ACEOF
10351 #define HAVE_DYLD 1
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10377 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10379 lt_save_LIBS="$LIBS"
10380 LIBS="$LIBS $LIBADD_DL"
10382 for ac_func in dlerror
10384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 cat >conftest.$ac_ext <<_ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10398 #define $ac_func innocuous_$ac_func
10400 /* System header to define __stub macros and hopefully few prototypes,
10401 which can conflict with char $ac_func (); below.
10402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10403 <limits.h> exists even on freestanding compilers. */
10406 # include <limits.h>
10408 # include <assert.h>
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10420 /* The GNU C library defines this for functions which it implements
10421 to always fail with ENOSYS. Some functions are actually named
10422 something starting with __ and the normal name is an alias. */
10423 #if defined __stub_$ac_func || defined __stub___$ac_func
10430 return $ac_func ();
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (ac_try="$ac_link"
10437 case "(($ac_try" in
10438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439 *) ac_try_echo=$ac_try;;
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442 (eval "$ac_link") 2>conftest.er1
10444 grep -v '^ *+' conftest.er1 >conftest.err
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450 { (case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_try") 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest$ac_exeext'
10460 { (case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_try") 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 eval "$as_ac_var=yes"
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 eval "$as_ac_var=no"
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10480 ac_res=`eval echo '${'$as_ac_var'}'`
10481 { echo "$as_me:$LINENO: result: $ac_res" >&5
10482 echo "${ECHO_T}$ac_res" >&6; }
10483 if test `eval echo '${'$as_ac_var'}'` = yes; then
10484 cat >>confdefs.h <<_ACEOF
10485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10491 LIBS="$lt_save_LIBS"
10494 ac_cpp='$CPP $CPPFLAGS'
10495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10501 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10502 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10503 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 ac_cv_sys_symbol_underscore=no
10507 cat > conftest.$ac_ext <<EOF
10508 void nm_test_func(){}
10509 int main(){nm_test_func;return 0;}
10511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10512 (eval $ac_compile) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; then
10516 # Now try to grab the symbols.
10517 ac_nlist=conftest.nm
10518 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10519 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } && test -s "$ac_nlist"; then
10523 # See whether the symbols have a leading underscore.
10524 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10525 ac_cv_sys_symbol_underscore=yes
10527 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10530 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10534 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10537 echo "configure: failed program was:" >&5
10543 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10544 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10547 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10548 if test x"$libltdl_cv_func_dlopen" = xyes ||
10549 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10550 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10551 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10552 if test "${libltdl_cv_need_uscore+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 libltdl_cv_need_uscore=unknown
10557 LIBS="$LIBS $LIBADD_DL"
10558 if test "$cross_compiling" = yes; then :
10559 libltdl_cv_need_uscore=cross
10561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10562 lt_status=$lt_dlunknown
10563 cat > conftest.$ac_ext <<EOF
10564 #line 10564 "configure"
10565 #include "confdefs.h"
10574 # define LT_DLGLOBAL RTLD_GLOBAL
10577 # define LT_DLGLOBAL DL_GLOBAL
10579 # define LT_DLGLOBAL 0
10583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10584 find out it does not work in some platform. */
10585 #ifndef LT_DLLAZY_OR_NOW
10587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10590 # define LT_DLLAZY_OR_NOW DL_LAZY
10593 # define LT_DLLAZY_OR_NOW RTLD_NOW
10596 # define LT_DLLAZY_OR_NOW DL_NOW
10598 # define LT_DLLAZY_OR_NOW 0
10606 extern "C" void exit (int);
10609 void fnord() { int i=42;}
10612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10613 int status = $lt_dlunknown;
10617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10619 /* dlclose (self); */
10627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628 (eval $ac_link) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10632 (./conftest; exit; ) >&5 2>/dev/null
10634 case x$lt_status in
10635 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10636 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10637 x$lt_dlunknown|x*) ;;
10640 # compilation failed
10649 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10650 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10654 if test x"$libltdl_cv_need_uscore" = xyes; then
10656 cat >>confdefs.h <<\_ACEOF
10657 #define NEED_USCORE 1
10663 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10664 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10665 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 # PORTME does your system automatically load deplibs for dlopen?
10669 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10670 # For now, we just catch OSes we know something about -- in the
10671 # future, we'll try test this programmatically.
10672 libltdl_cv_sys_dlopen_deplibs=unknown
10674 aix3*|aix4.1.*|aix4.2.*)
10675 # Unknown whether this is true for these versions of AIX, but
10676 # we want this `case' here to explicitly catch those versions.
10677 libltdl_cv_sys_dlopen_deplibs=unknown
10680 libltdl_cv_sys_dlopen_deplibs=yes
10683 # Assuming the user has installed a libdl from somewhere, this is true
10684 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10685 libltdl_cv_sys_dlopen_deplibs=yes
10687 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10688 # GNU and its variants, using gnu ld.so (Glibc)
10689 libltdl_cv_sys_dlopen_deplibs=yes
10692 libltdl_cv_sys_dlopen_deplibs=yes
10695 libltdl_cv_sys_dlopen_deplibs=yes
10697 irix[12345]*|irix6.[01]*)
10698 # Catch all versions of IRIX before 6.2, and indicate that we don't
10699 # know how it worked for any of those versions.
10700 libltdl_cv_sys_dlopen_deplibs=unknown
10703 # The case above catches anything before 6.2, and it's known that
10704 # at 6.2 and later dlopen does load deplibs.
10705 libltdl_cv_sys_dlopen_deplibs=yes
10708 libltdl_cv_sys_dlopen_deplibs=yes
10711 libltdl_cv_sys_dlopen_deplibs=yes
10714 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10715 # it did *not* use an RPATH in a shared library to find objects the
10716 # library depends on, so we explicitly say `no'.
10717 libltdl_cv_sys_dlopen_deplibs=no
10719 osf5.0|osf5.0a|osf5.1)
10720 # dlopen *does* load deplibs and with the right loader patch applied
10721 # it even uses RPATH in a shared library to search for shared objects
10722 # that the library depends on, but there's no easy way to know if that
10723 # patch is installed. Since this is the case, all we can really
10724 # say is unknown -- it depends on the patch being installed. If
10725 # it is, this changes to `yes'. Without it, it would be `no'.
10726 libltdl_cv_sys_dlopen_deplibs=unknown
10729 # the two cases above should catch all versions of osf <= 5.1. Read
10730 # the comments above for what we know about them.
10731 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10732 # is used to find them so we can finally say `yes'.
10733 libltdl_cv_sys_dlopen_deplibs=yes
10736 libltdl_cv_sys_dlopen_deplibs=yes
10738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10739 libltdl_cv_sys_dlopen_deplibs=yes
10744 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10745 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10746 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10748 cat >>confdefs.h <<\_ACEOF
10749 #define LTDL_DLOPEN_DEPLIBS 1
10755 for ac_header in argz.h
10757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 ac_res=`eval echo '${'$as_ac_Header'}'`
10765 { echo "$as_me:$LINENO: result: $ac_res" >&5
10766 echo "${ECHO_T}$ac_res" >&6; }
10768 # Is the header compilable?
10769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10771 cat >conftest.$ac_ext <<_ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10777 $ac_includes_default
10778 #include <$ac_header>
10780 rm -f conftest.$ac_objext
10781 if { (ac_try="$ac_compile"
10782 case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_compile") 2>conftest.er1
10789 grep -v '^ *+' conftest.er1 >conftest.err
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10795 { (case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_try") 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10814 ac_header_compiler=yes
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10819 ac_header_compiler=no
10822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10824 echo "${ECHO_T}$ac_header_compiler" >&6; }
10826 # Is the header present?
10827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10829 cat >conftest.$ac_ext <<_ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 #include <$ac_header>
10837 if { (ac_try="$ac_cpp conftest.$ac_ext"
10838 case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10845 grep -v '^ *+' conftest.er1 >conftest.err
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } >/dev/null; then
10850 if test -s conftest.err; then
10851 ac_cpp_err=$ac_c_preproc_warn_flag
10852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10859 if test -z "$ac_cpp_err"; then
10860 ac_header_preproc=yes
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_header_preproc=no
10868 rm -f conftest.err conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10870 echo "${ECHO_T}$ac_header_preproc" >&6; }
10872 # So? What about this header?
10873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10879 ac_header_preproc=yes
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10895 ## ------------------------------------ ##
10896 ## Report this to http://llvm.org/bugs/ ##
10897 ## ------------------------------------ ##
10899 ) | sed "s/^/$as_me: WARNING: /" >&2
10902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 eval "$as_ac_Header=\$ac_header_preproc"
10909 ac_res=`eval echo '${'$as_ac_Header'}'`
10910 { echo "$as_me:$LINENO: result: $ac_res" >&5
10911 echo "${ECHO_T}$ac_res" >&6; }
10914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10915 cat >>confdefs.h <<_ACEOF
10916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10924 { echo "$as_me:$LINENO: checking for error_t" >&5
10925 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10926 if test "${ac_cv_type_error_t+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.$ac_ext <<_ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10939 typedef error_t ac__type_new_;
10943 if ((ac__type_new_ *) 0)
10945 if (sizeof (ac__type_new_))
10951 rm -f conftest.$ac_objext
10952 if { (ac_try="$ac_compile"
10953 case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_compile") 2>conftest.er1
10960 grep -v '^ *+' conftest.er1 >conftest.err
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10966 { (case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_try") 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest.$ac_objext'
10976 { (case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_try") 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_type_error_t=yes
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 ac_cv_type_error_t=no
10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10995 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10996 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10997 if test $ac_cv_type_error_t = yes; then
10999 cat >>confdefs.h <<_ACEOF
11000 #define HAVE_ERROR_T 1
11006 cat >>confdefs.h <<\_ACEOF
11007 #define error_t int
11018 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11034 #define $ac_func innocuous_$ac_func
11036 /* System header to define __stub macros and hopefully few prototypes,
11037 which can conflict with char $ac_func (); below.
11038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11039 <limits.h> exists even on freestanding compilers. */
11042 # include <limits.h>
11044 # include <assert.h>
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11056 /* The GNU C library defines this for functions which it implements
11057 to always fail with ENOSYS. Some functions are actually named
11058 something starting with __ and the normal name is an alias. */
11059 #if defined __stub_$ac_func || defined __stub___$ac_func
11066 return $ac_func ();
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (ac_try="$ac_link"
11073 case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_link") 2>conftest.er1
11080 grep -v '^ *+' conftest.er1 >conftest.err
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } &&
11085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11086 { (case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_try") 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest$ac_exeext'
11096 { (case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_try") 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 eval "$as_ac_var=yes"
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 eval "$as_ac_var=no"
11113 rm -f core conftest.err conftest.$ac_objext \
11114 conftest$ac_exeext conftest.$ac_ext
11116 ac_res=`eval echo '${'$as_ac_var'}'`
11117 { echo "$as_me:$LINENO: result: $ac_res" >&5
11118 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11149 for ac_header in errno.h malloc.h memory.h unistd.h
11151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11162 # Is the header compilable?
11163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 $ac_includes_default
11172 #include <$ac_header>
11174 rm -f conftest.$ac_objext
11175 if { (ac_try="$ac_compile"
11176 case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_compile") 2>conftest.er1
11183 grep -v '^ *+' conftest.er1 >conftest.err
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } &&
11188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11189 { (case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_try") 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; } &&
11198 { ac_try='test -s conftest.$ac_objext'
11199 { (case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_try") 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; }; then
11208 ac_header_compiler=yes
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 ac_header_compiler=no
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11218 echo "${ECHO_T}$ac_header_compiler" >&6; }
11220 # Is the header present?
11221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11223 cat >conftest.$ac_ext <<_ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 #include <$ac_header>
11231 if { (ac_try="$ac_cpp conftest.$ac_ext"
11232 case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } >/dev/null; then
11244 if test -s conftest.err; then
11245 ac_cpp_err=$ac_c_preproc_warn_flag
11246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11253 if test -z "$ac_cpp_err"; then
11254 ac_header_preproc=yes
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 ac_header_preproc=no
11262 rm -f conftest.err conftest.$ac_ext
11263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11264 echo "${ECHO_T}$ac_header_preproc" >&6; }
11266 # So? What about this header?
11267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11273 ac_header_preproc=yes
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11289 ## ------------------------------------ ##
11290 ## Report this to http://llvm.org/bugs/ ##
11291 ## ------------------------------------ ##
11293 ) | sed "s/^/$as_me: WARNING: /" >&2
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 eval "$as_ac_Header=\$ac_header_preproc"
11303 ac_res=`eval echo '${'$as_ac_Header'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11309 cat >>confdefs.h <<_ACEOF
11310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11318 for ac_header in mach-o/dyld.h
11320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 ac_res=`eval echo '${'$as_ac_Header'}'`
11328 { echo "$as_me:$LINENO: result: $ac_res" >&5
11329 echo "${ECHO_T}$ac_res" >&6; }
11331 # Is the header compilable?
11332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11333 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11341 #include <$ac_header>
11343 rm -f conftest.$ac_objext
11344 if { (ac_try="$ac_compile"
11345 case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_compile") 2>conftest.er1
11352 grep -v '^ *+' conftest.er1 >conftest.err
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11358 { (case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_try") 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; } &&
11367 { ac_try='test -s conftest.$ac_objext'
11368 { (case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_try") 2>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; }; then
11377 ac_header_compiler=yes
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11382 ac_header_compiler=no
11385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11387 echo "${ECHO_T}$ac_header_compiler" >&6; }
11389 # Is the header present?
11390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11392 cat >conftest.$ac_ext <<_ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 #include <$ac_header>
11400 if { (ac_try="$ac_cpp conftest.$ac_ext"
11401 case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11408 grep -v '^ *+' conftest.er1 >conftest.err
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } >/dev/null; then
11413 if test -s conftest.err; then
11414 ac_cpp_err=$ac_c_preproc_warn_flag
11415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11422 if test -z "$ac_cpp_err"; then
11423 ac_header_preproc=yes
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_header_preproc=no
11431 rm -f conftest.err conftest.$ac_ext
11432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11433 echo "${ECHO_T}$ac_header_preproc" >&6; }
11435 # So? What about this header?
11436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11442 ac_header_preproc=yes
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11458 ## ------------------------------------ ##
11459 ## Report this to http://llvm.org/bugs/ ##
11460 ## ------------------------------------ ##
11462 ) | sed "s/^/$as_me: WARNING: /" >&2
11465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 eval "$as_ac_Header=\$ac_header_preproc"
11472 ac_res=`eval echo '${'$as_ac_Header'}'`
11473 { echo "$as_me:$LINENO: result: $ac_res" >&5
11474 echo "${ECHO_T}$ac_res" >&6; }
11477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11490 for ac_func in closedir opendir readdir
11492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 cat >conftest.$ac_ext <<_ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11506 #define $ac_func innocuous_$ac_func
11508 /* System header to define __stub macros and hopefully few prototypes,
11509 which can conflict with char $ac_func (); below.
11510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511 <limits.h> exists even on freestanding compilers. */
11514 # include <limits.h>
11516 # include <assert.h>
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11528 /* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531 #if defined __stub_$ac_func || defined __stub___$ac_func
11538 return $ac_func ();
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (ac_try="$ac_link"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_link") 2>conftest.er1
11552 grep -v '^ *+' conftest.er1 >conftest.err
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } &&
11557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558 { (case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_try") 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest$ac_exeext'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 eval "$as_ac_var=yes"
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 eval "$as_ac_var=no"
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11588 ac_res=`eval echo '${'$as_ac_var'}'`
11589 { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_var'}'` = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11601 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11602 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11615 if test "$GCC" != "yes" && test "$ICC" != "yes"
11617 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11618 echo "$as_me: error: gcc|icc required but not found" >&2;}
11619 { (exit 1); exit 1; }; }
11622 if test "$GXX" != "yes" && test "$IXX" != "yes"
11624 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11625 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11626 { (exit 1); exit 1; }; }
11629 if test "$GCC" = "yes"
11631 cat >conftest.$ac_ext <<_ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11639 #if !defined(__GNUC__) || __GNUC__ < 3
11640 #error Unsupported GCC version
11645 rm -f conftest.$ac_objext
11646 if { (ac_try="$ac_compile"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_compile") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660 { (case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_try") 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest.$ac_objext'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11685 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11686 { (exit 1); exit 1; }; }
11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692 if test -z "$llvm_cv_gnu_make_command"
11694 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11695 echo "$as_me: error: GNU Make required but not found" >&2;}
11696 { (exit 1); exit 1; }; }
11699 { echo "$as_me:$LINENO: result: ok" >&5
11700 echo "${ECHO_T}ok" >&6; }
11702 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11703 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11704 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11706 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11708 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11712 NO_MAYBE_UNINITIALIZED=
11713 if test "$GXX" = "yes"
11715 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11717 if test -z "$NO_MAYBE_UNINITIALIZED"
11719 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11723 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11724 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11727 # Check whether --with-python was given.
11728 if test "${with_python+set}" = set; then
11729 withval=$with_python; PYTHON="$withval"
11733 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11734 { echo "$as_me:$LINENO: checking for python" >&5
11735 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11736 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11737 echo "${ECHO_T}user defined: $with_python" >&6; }
11739 if test -n "$PYTHON" ; then
11740 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11741 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11744 # Extract the first word of "python python2 python26", so it can be a program name with args.
11745 set dummy python python2 python26; ac_word=$2
11746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11748 if test "${ac_cv_path_PYTHON+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11763 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11771 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11772 echo "${ECHO_T}not found" >&6; }
11773 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11774 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11775 { (exit 1); exit 1; }; }"
11779 PYTHON=$ac_cv_path_PYTHON
11780 if test -n "$PYTHON"; then
11781 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11782 echo "${ECHO_T}$PYTHON" >&6; }
11784 { echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6; }
11791 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11792 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11793 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11794 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11795 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11796 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11797 if test "$ac_python_version_major" -eq "2" \
11798 && test "$ac_python_version_minor" -ge "5" ; then
11799 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11800 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11802 { echo "$as_me:$LINENO: result: not found" >&5
11803 echo "${ECHO_T}not found" >&6; }
11804 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11805 See \`config.log' for more details." >&5
11806 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11807 See \`config.log' for more details." >&2;}
11808 { (exit 1); exit 1; }; }
11813 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11814 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11815 if test "${ac_cv_lib_m_sin+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 ac_check_lib_save_LIBS=$LIBS
11820 cat >conftest.$ac_ext <<_ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11827 /* Override any GCC internal prototype to avoid an error.
11828 Use char because int might match the return type of a GCC
11829 builtin and then its argument prototype would still apply. */
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_link") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857 { (case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_try") 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_lib_m_sin=yes
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11884 rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11886 LIBS=$ac_check_lib_save_LIBS
11888 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11889 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11890 if test $ac_cv_lib_m_sin = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892 #define HAVE_LIBM 1
11899 if test "$llvm_cv_os_type" = "MingW" ; then
11901 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11902 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11903 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 ac_check_lib_save_LIBS=$LIBS
11907 LIBS="-limagehlp $LIBS"
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (ac_try="$ac_link"
11926 case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_link") 2>conftest.er1
11933 grep -v '^ *+' conftest.er1 >conftest.err
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11939 { (case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_try") 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest$ac_exeext'
11949 { (case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_try") 2>&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; }; then
11958 ac_cv_lib_imagehlp_main=yes
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ac_cv_lib_imagehlp_main=no
11966 rm -f core conftest.err conftest.$ac_objext \
11967 conftest$ac_exeext conftest.$ac_ext
11968 LIBS=$ac_check_lib_save_LIBS
11970 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11971 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11972 if test $ac_cv_lib_imagehlp_main = yes; then
11973 cat >>confdefs.h <<_ACEOF
11974 #define HAVE_LIBIMAGEHLP 1
11977 LIBS="-limagehlp $LIBS"
11982 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11983 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11984 if test "${ac_cv_lib_psapi_main+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 ac_check_lib_save_LIBS=$LIBS
11988 LIBS="-lpsapi $LIBS"
11989 cat >conftest.$ac_ext <<_ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
12005 rm -f conftest.$ac_objext conftest$ac_exeext
12006 if { (ac_try="$ac_link"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_link") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12020 { (case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_try") 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; } &&
12029 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_lib_psapi_main=yes
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12044 ac_cv_lib_psapi_main=no
12047 rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
12049 LIBS=$ac_check_lib_save_LIBS
12051 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12052 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12053 if test $ac_cv_lib_psapi_main = yes; then
12054 cat >>confdefs.h <<_ACEOF
12055 #define HAVE_LIBPSAPI 1
12058 LIBS="-lpsapi $LIBS"
12064 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12065 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12066 if test "${ac_cv_search_dlopen+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 ac_func_search_save_LIBS=$LIBS
12070 cat >conftest.$ac_ext <<_ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12092 for ac_lib in '' dl; do
12093 if test -z "$ac_lib"; then
12094 ac_res="none required"
12097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (ac_try="$ac_link"
12101 case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_link") 2>conftest.er1
12108 grep -v '^ *+' conftest.er1 >conftest.err
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12114 { (case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_try") 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; } &&
12123 { ac_try='test -s conftest$ac_exeext'
12124 { (case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_try") 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 ac_cv_search_dlopen=$ac_res
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12141 rm -f core conftest.err conftest.$ac_objext \
12143 if test "${ac_cv_search_dlopen+set}" = set; then
12147 if test "${ac_cv_search_dlopen+set}" = set; then
12150 ac_cv_search_dlopen=no
12152 rm conftest.$ac_ext
12153 LIBS=$ac_func_search_save_LIBS
12155 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12156 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12157 ac_res=$ac_cv_search_dlopen
12158 if test "$ac_res" != no; then
12159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12161 cat >>confdefs.h <<\_ACEOF
12162 #define HAVE_DLOPEN 1
12166 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12167 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12171 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12172 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12173 if test "${ac_cv_search_clock_gettime+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 ac_func_search_save_LIBS=$LIBS
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12190 char clock_gettime ();
12194 return clock_gettime ();
12199 for ac_lib in '' rt; do
12200 if test -z "$ac_lib"; then
12201 ac_res="none required"
12204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_link") 2>conftest.er1
12215 grep -v '^ *+' conftest.er1 >conftest.err
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest$ac_exeext'
12231 { (case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_try") 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_search_clock_gettime=$ac_res
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12248 rm -f core conftest.err conftest.$ac_objext \
12250 if test "${ac_cv_search_clock_gettime+set}" = set; then
12254 if test "${ac_cv_search_clock_gettime+set}" = set; then
12257 ac_cv_search_clock_gettime=no
12259 rm conftest.$ac_ext
12260 LIBS=$ac_func_search_save_LIBS
12262 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12263 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12264 ac_res=$ac_cv_search_clock_gettime
12265 if test "$ac_res" != no; then
12266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12271 if test "$llvm_cv_enable_curses" = "yes" ; then
12272 { echo "$as_me:$LINENO: checking for library containing has_colors" >&5
12273 echo $ECHO_N "checking for library containing has_colors... $ECHO_C" >&6; }
12274 if test "${ac_cv_search_has_colors+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 ac_func_search_save_LIBS=$LIBS
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12285 /* Override any GCC internal prototype to avoid an error.
12286 Use char because int might match the return type of a GCC
12287 builtin and then its argument prototype would still apply. */
12291 char has_colors ();
12295 return has_colors ();
12300 for ac_lib in '' curses ncurses ncursesw; do
12301 if test -z "$ac_lib"; then
12302 ac_res="none required"
12305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12307 rm -f conftest.$ac_objext conftest$ac_exeext
12308 if { (ac_try="$ac_link"
12309 case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_link") 2>conftest.er1
12316 grep -v '^ *+' conftest.er1 >conftest.err
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } &&
12321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12322 { (case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_try") 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest$ac_exeext'
12332 { (case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_try") 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_search_has_colors=$ac_res
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12349 rm -f core conftest.err conftest.$ac_objext \
12351 if test "${ac_cv_search_has_colors+set}" = set; then
12355 if test "${ac_cv_search_has_colors+set}" = set; then
12358 ac_cv_search_has_colors=no
12360 rm conftest.$ac_ext
12361 LIBS=$ac_func_search_save_LIBS
12363 { echo "$as_me:$LINENO: result: $ac_cv_search_has_colors" >&5
12364 echo "${ECHO_T}$ac_cv_search_has_colors" >&6; }
12365 ac_res=$ac_cv_search_has_colors
12366 if test "$ac_res" != no; then
12367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12369 cat >>confdefs.h <<\_ACEOF
12370 #define HAVE_CURSES 1
12377 if test "$llvm_cv_enable_libffi" = "yes" ; then
12378 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12379 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12380 if test "${ac_cv_search_ffi_call+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 ac_func_search_save_LIBS=$LIBS
12384 cat >conftest.$ac_ext <<_ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12401 return ffi_call ();
12406 for ac_lib in '' ffi; do
12407 if test -z "$ac_lib"; then
12408 ac_res="none required"
12411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } &&
12437 { ac_try='test -s conftest$ac_exeext'
12438 { (case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_try") 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_cv_search_ffi_call=$ac_res
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12455 rm -f core conftest.err conftest.$ac_objext \
12457 if test "${ac_cv_search_ffi_call+set}" = set; then
12461 if test "${ac_cv_search_ffi_call+set}" = set; then
12464 ac_cv_search_ffi_call=no
12466 rm conftest.$ac_ext
12467 LIBS=$ac_func_search_save_LIBS
12469 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12470 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12471 ac_res=$ac_cv_search_ffi_call
12472 if test "$ac_res" != no; then
12473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_FFI_CALL 1
12480 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12481 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12482 { (exit 1); exit 1; }; }
12487 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12488 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12489 if test "${ac_cv_search_mallinfo+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 ac_func_search_save_LIBS=$LIBS
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12500 /* Override any GCC internal prototype to avoid an error.
12501 Use char because int might match the return type of a GCC
12502 builtin and then its argument prototype would still apply. */
12510 return mallinfo ();
12515 for ac_lib in '' malloc; do
12516 if test -z "$ac_lib"; then
12517 ac_res="none required"
12520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12522 rm -f conftest.$ac_objext conftest$ac_exeext
12523 if { (ac_try="$ac_link"
12524 case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_link") 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest$ac_exeext'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_cv_search_mallinfo=$ac_res
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12564 rm -f core conftest.err conftest.$ac_objext \
12566 if test "${ac_cv_search_mallinfo+set}" = set; then
12570 if test "${ac_cv_search_mallinfo+set}" = set; then
12573 ac_cv_search_mallinfo=no
12575 rm conftest.$ac_ext
12576 LIBS=$ac_func_search_save_LIBS
12578 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12579 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12580 ac_res=$ac_cv_search_mallinfo
12581 if test "$ac_res" != no; then
12582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12584 cat >>confdefs.h <<\_ACEOF
12585 #define HAVE_MALLINFO 1
12591 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12593 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12594 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12595 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 ac_check_lib_save_LIBS=$LIBS
12599 LIBS="-lpthread $LIBS"
12600 cat >conftest.$ac_ext <<_ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12613 char pthread_mutex_init ();
12617 return pthread_mutex_init ();
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_link") 2>conftest.er1
12631 grep -v '^ *+' conftest.er1 >conftest.err
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
12636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12637 { (case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_try") 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest$ac_exeext'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_try") 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 ac_cv_lib_pthread_pthread_mutex_init=yes
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 ac_cv_lib_pthread_pthread_mutex_init=no
12664 rm -f core conftest.err conftest.$ac_objext \
12665 conftest$ac_exeext conftest.$ac_ext
12666 LIBS=$ac_check_lib_save_LIBS
12668 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12669 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12670 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12671 cat >>confdefs.h <<_ACEOF
12672 #define HAVE_LIBPTHREAD 1
12675 LIBS="-lpthread $LIBS"
12679 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12680 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12681 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 ac_func_search_save_LIBS=$LIBS
12685 cat >conftest.$ac_ext <<_ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12692 /* Override any GCC internal prototype to avoid an error.
12693 Use char because int might match the return type of a GCC
12694 builtin and then its argument prototype would still apply. */
12698 char pthread_mutex_lock ();
12702 return pthread_mutex_lock ();
12707 for ac_lib in '' pthread; do
12708 if test -z "$ac_lib"; then
12709 ac_res="none required"
12712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12714 rm -f conftest.$ac_objext conftest$ac_exeext
12715 if { (ac_try="$ac_link"
12716 case "(($ac_try" in
12717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718 *) ac_try_echo=$ac_try;;
12720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721 (eval "$ac_link") 2>conftest.er1
12723 grep -v '^ *+' conftest.er1 >conftest.err
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } &&
12728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12729 { (case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_try") 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest$ac_exeext'
12739 { (case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_try") 2>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; }; then
12748 ac_cv_search_pthread_mutex_lock=$ac_res
12750 echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12756 rm -f core conftest.err conftest.$ac_objext \
12758 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12762 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12765 ac_cv_search_pthread_mutex_lock=no
12767 rm conftest.$ac_ext
12768 LIBS=$ac_func_search_save_LIBS
12770 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12771 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12772 ac_res=$ac_cv_search_pthread_mutex_lock
12773 if test "$ac_res" != no; then
12774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12776 cat >>confdefs.h <<\_ACEOF
12777 #define HAVE_PTHREAD_MUTEX_LOCK 1
12782 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12783 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12784 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 ac_func_search_save_LIBS=$LIBS
12788 cat >conftest.$ac_ext <<_ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12795 /* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply. */
12801 char pthread_rwlock_init ();
12805 return pthread_rwlock_init ();
12810 for ac_lib in '' pthread; do
12811 if test -z "$ac_lib"; then
12812 ac_res="none required"
12815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_link") 2>conftest.er1
12826 grep -v '^ *+' conftest.er1 >conftest.err
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; } &&
12841 { ac_try='test -s conftest$ac_exeext'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 ac_cv_search_pthread_rwlock_init=$ac_res
12853 echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12859 rm -f core conftest.err conftest.$ac_objext \
12861 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12865 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12868 ac_cv_search_pthread_rwlock_init=no
12870 rm conftest.$ac_ext
12871 LIBS=$ac_func_search_save_LIBS
12873 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12874 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12875 ac_res=$ac_cv_search_pthread_rwlock_init
12876 if test "$ac_res" != no; then
12877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12879 cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_PTHREAD_RWLOCK_INIT 1
12885 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12886 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12887 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 ac_func_search_save_LIBS=$LIBS
12891 cat >conftest.$ac_ext <<_ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12904 char pthread_getspecific ();
12908 return pthread_getspecific ();
12913 for ac_lib in '' pthread; do
12914 if test -z "$ac_lib"; then
12915 ac_res="none required"
12918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_link") 2>conftest.er1
12929 grep -v '^ *+' conftest.er1 >conftest.err
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12935 { (case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_try") 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest$ac_exeext'
12945 { (case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_try") 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_cv_search_pthread_getspecific=$ac_res
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12962 rm -f core conftest.err conftest.$ac_objext \
12964 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12968 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12971 ac_cv_search_pthread_getspecific=no
12973 rm conftest.$ac_ext
12974 LIBS=$ac_func_search_save_LIBS
12976 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12977 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12978 ac_res=$ac_cv_search_pthread_getspecific
12979 if test "$ac_res" != no; then
12980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12982 cat >>confdefs.h <<\_ACEOF
12983 #define HAVE_PTHREAD_GETSPECIFIC 1
12990 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12992 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12993 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
12994 if test "${ac_cv_lib_z_compress2+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 ac_check_lib_save_LIBS=$LIBS
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13016 return compress2 ();
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (ac_try="$ac_link"
13023 case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_link") 2>conftest.er1
13030 grep -v '^ *+' conftest.er1 >conftest.err
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13036 { (case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_try") 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } &&
13045 { ac_try='test -s conftest$ac_exeext'
13046 { (case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_try") 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13055 ac_cv_lib_z_compress2=yes
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13060 ac_cv_lib_z_compress2=no
13063 rm -f core conftest.err conftest.$ac_objext \
13064 conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13067 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13068 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13069 if test $ac_cv_lib_z_compress2 = yes; then
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_LIBZ 1
13081 # Check whether --with-udis86 was given.
13082 if test "${with_udis86+set}" = set; then
13083 withval=$with_udis86;
13088 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13091 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13092 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13093 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 ac_check_lib_save_LIBS=$LIBS
13097 LIBS="-ludis86 $LIBS"
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13105 /* Override any GCC internal prototype to avoid an error.
13106 Use char because int might match the return type of a GCC
13107 builtin and then its argument prototype would still apply. */
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (ac_try="$ac_link"
13122 case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_link") 2>conftest.er1
13129 grep -v '^ *+' conftest.er1 >conftest.err
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_lib_udis86_ud_init=yes
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ac_cv_lib_udis86_ud_init=no
13162 rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164 LIBS=$ac_check_lib_save_LIBS
13166 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13167 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13168 if test $ac_cv_lib_udis86_ud_init = yes; then
13169 cat >>confdefs.h <<_ACEOF
13170 #define HAVE_LIBUDIS86 1
13173 LIBS="-ludis86 $LIBS"
13177 echo "Error! You need to have libudis86 around."
13189 cat >>confdefs.h <<_ACEOF
13190 #define USE_UDIS86 $USE_UDIS86
13195 # Check whether --with-oprofile was given.
13196 if test "${with_oprofile+set}" = set; then
13197 withval=$with_oprofile;
13201 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13202 no) llvm_cv_oppath=
13205 *) llvm_cv_oppath="${withval}/lib/oprofile"
13206 CPPFLAGS="-I${withval}/include";;
13208 case $llvm_cv_os_type in
13210 if test -n "$llvm_cv_oppath" ; then
13211 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13212 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13213 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13214 if test "${ac_cv_search_bfd_init+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 ac_func_search_save_LIBS=$LIBS
13218 cat >conftest.$ac_ext <<_ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13225 /* Override any GCC internal prototype to avoid an error.
13226 Use char because int might match the return type of a GCC
13227 builtin and then its argument prototype would still apply. */
13235 return bfd_init ();
13240 for ac_lib in '' bfd; do
13241 if test -z "$ac_lib"; then
13242 ac_res="none required"
13245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (ac_try="$ac_link"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_link") 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13262 { (case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_try") 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; } &&
13271 { ac_try='test -s conftest$ac_exeext'
13272 { (case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_try") 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_cv_search_bfd_init=$ac_res
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13289 rm -f core conftest.err conftest.$ac_objext \
13291 if test "${ac_cv_search_bfd_init+set}" = set; then
13295 if test "${ac_cv_search_bfd_init+set}" = set; then
13298 ac_cv_search_bfd_init=no
13300 rm conftest.$ac_ext
13301 LIBS=$ac_func_search_save_LIBS
13303 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13304 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13305 ac_res=$ac_cv_search_bfd_init
13306 if test "$ac_res" != no; then
13307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13311 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13312 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13313 if test "${ac_cv_search_op_open_agent+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 ac_func_search_save_LIBS=$LIBS
13317 cat >conftest.$ac_ext <<_ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13324 /* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13330 char op_open_agent ();
13334 return op_open_agent ();
13339 for ac_lib in '' opagent; do
13340 if test -z "$ac_lib"; then
13341 ac_res="none required"
13344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_link") 2>conftest.er1
13355 grep -v '^ *+' conftest.er1 >conftest.err
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } &&
13360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13361 { (case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366 (eval "$ac_try") 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest$ac_exeext'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 ac_cv_search_op_open_agent=$ac_res
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13388 rm -f core conftest.err conftest.$ac_objext \
13390 if test "${ac_cv_search_op_open_agent+set}" = set; then
13394 if test "${ac_cv_search_op_open_agent+set}" = set; then
13397 ac_cv_search_op_open_agent=no
13399 rm conftest.$ac_ext
13400 LIBS=$ac_func_search_save_LIBS
13402 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13403 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13404 ac_res=$ac_cv_search_op_open_agent
13405 if test "$ac_res" != no; then
13406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13410 echo "Error! You need to have libopagent around."
13415 if test "${ac_cv_header_opagent_h+set}" = set; then
13416 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13417 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13418 if test "${ac_cv_header_opagent_h+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13422 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13424 # Is the header compilable?
13425 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13426 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13427 cat >conftest.$ac_ext <<_ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 $ac_includes_default
13434 #include <opagent.h>
13436 rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_compile") 2>conftest.er1
13445 grep -v '^ *+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
13450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13451 { (case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_try") 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_try") 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 ac_header_compiler=yes
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 ac_header_compiler=no
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13480 echo "${ECHO_T}$ac_header_compiler" >&6; }
13482 # Is the header present?
13483 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13484 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 #include <opagent.h>
13493 if { (ac_try="$ac_cpp conftest.$ac_ext"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } >/dev/null; then
13506 if test -s conftest.err; then
13507 ac_cpp_err=$ac_c_preproc_warn_flag
13508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13515 if test -z "$ac_cpp_err"; then
13516 ac_header_preproc=yes
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13521 ac_header_preproc=no
13524 rm -f conftest.err conftest.$ac_ext
13525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 echo "${ECHO_T}$ac_header_preproc" >&6; }
13528 # So? What about this header?
13529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13531 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13532 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13534 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13535 ac_header_preproc=yes
13538 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13539 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13540 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13541 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13543 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13545 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13547 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13549 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13551 ## ------------------------------------ ##
13552 ## Report this to http://llvm.org/bugs/ ##
13553 ## ------------------------------------ ##
13555 ) | sed "s/^/$as_me: WARNING: /" >&2
13558 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13559 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13560 if test "${ac_cv_header_opagent_h+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 ac_cv_header_opagent_h=$ac_header_preproc
13565 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13566 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13569 if test $ac_cv_header_opagent_h = yes; then
13573 echo "Error! You need to have opagent.h around."
13581 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13582 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13583 { (exit 1); exit 1; }; } ;;
13594 cat >>confdefs.h <<_ACEOF
13595 #define LLVM_USE_OPROFILE $USE_OPROFILE
13600 # Check whether --with-intel-jitevents was given.
13601 if test "${with_intel_jitevents+set}" = set; then
13602 withval=$with_intel_jitevents;
13604 yes) USE_INTEL_JITEVENTS=1
13606 no) USE_INTEL_JITEVENTS=0
13608 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13609 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13610 { (exit 1); exit 1; }; };;
13613 case $llvm_cv_os_type in
13614 Linux|Win32|Cygwin|MingW) ;;
13615 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13616 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13617 { (exit 1); exit 1; }; };;
13620 case "$llvm_cv_target_arch" in
13622 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13623 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13624 { (exit 1); exit 1; }; };;
13629 USE_INTEL_JITEVENTS=0
13635 cat >>confdefs.h <<_ACEOF
13636 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13640 for ac_prog in xml2-config
13642 # Extract the first word of "$ac_prog", so it can be a program name with args.
13643 set dummy $ac_prog; ac_word=$2
13644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13646 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 if test -n "$XML2CONFIG"; then
13650 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13659 ac_cv_prog_XML2CONFIG="$ac_prog"
13660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13669 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13670 if test -n "$XML2CONFIG"; then
13671 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13672 echo "${ECHO_T}$XML2CONFIG" >&6; }
13674 { echo "$as_me:$LINENO: result: no" >&5
13675 echo "${ECHO_T}no" >&6; }
13679 test -n "$XML2CONFIG" && break
13683 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13684 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13685 if test "x$XML2CONFIG" = "x"; then
13686 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13687 echo "${ECHO_T}xml2-config not found" >&6; }
13689 LIBXML2_INC=`$XML2CONFIG --cflags`
13690 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13691 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13692 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13693 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13694 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 ac_check_lib_save_LIBS=$LIBS
13698 LIBS="-lxml2 $LIBS"
13699 cat >conftest.$ac_ext <<_ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13712 char xmlReadFile ();
13716 return xmlReadFile ();
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (ac_try="$ac_link"
13723 case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_link") 2>conftest.er1
13730 grep -v '^ *+' conftest.er1 >conftest.err
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
13735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try='test -s conftest$ac_exeext'
13746 { (case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_try") 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_cv_lib_xml2_xmlReadFile=yes
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13760 ac_cv_lib_xml2_xmlReadFile=no
13763 rm -f core conftest.err conftest.$ac_objext \
13764 conftest$ac_exeext conftest.$ac_ext
13765 LIBS=$ac_check_lib_save_LIBS
13767 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13768 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13769 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13771 cat >>confdefs.h <<\_ACEOF
13772 #define CLANG_HAVE_LIBXML 1
13775 LIBXML2_LIBS="-lxml2"
13788 ac_header_dirent=no
13789 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13790 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13791 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13792 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 #include <sys/types.h>
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_compile") 2>conftest.er1
13823 grep -v '^ *+' conftest.er1 >conftest.err
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
13828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_try") 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 eval "$as_ac_Header=yes"
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 eval "$as_ac_Header=no"
13856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13858 ac_res=`eval echo '${'$as_ac_Header'}'`
13859 { echo "$as_me:$LINENO: result: $ac_res" >&5
13860 echo "${ECHO_T}$ac_res" >&6; }
13861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13862 cat >>confdefs.h <<_ACEOF
13863 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13866 ac_header_dirent=$ac_hdr; break
13870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13871 if test $ac_header_dirent = dirent.h; then
13872 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13874 if test "${ac_cv_search_opendir+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 ac_func_search_save_LIBS=$LIBS
13878 cat >conftest.$ac_ext <<_ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13885 /* Override any GCC internal prototype to avoid an error.
13886 Use char because int might match the return type of a GCC
13887 builtin and then its argument prototype would still apply. */
13900 for ac_lib in '' dir; do
13901 if test -z "$ac_lib"; then
13902 ac_res="none required"
13905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13907 rm -f conftest.$ac_objext conftest$ac_exeext
13908 if { (ac_try="$ac_link"
13909 case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_link") 2>conftest.er1
13916 grep -v '^ *+' conftest.er1 >conftest.err
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } &&
13921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13922 { (case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_try") 2>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; } &&
13931 { ac_try='test -s conftest$ac_exeext'
13932 { (case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_try") 2>&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 ac_cv_search_opendir=$ac_res
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13949 rm -f core conftest.err conftest.$ac_objext \
13951 if test "${ac_cv_search_opendir+set}" = set; then
13955 if test "${ac_cv_search_opendir+set}" = set; then
13958 ac_cv_search_opendir=no
13960 rm conftest.$ac_ext
13961 LIBS=$ac_func_search_save_LIBS
13963 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13964 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13965 ac_res=$ac_cv_search_opendir
13966 if test "$ac_res" != no; then
13967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13972 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13973 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13974 if test "${ac_cv_search_opendir+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 ac_func_search_save_LIBS=$LIBS
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13985 /* Override any GCC internal prototype to avoid an error.
13986 Use char because int might match the return type of a GCC
13987 builtin and then its argument prototype would still apply. */
14000 for ac_lib in '' x; do
14001 if test -z "$ac_lib"; then
14002 ac_res="none required"
14005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14007 rm -f conftest.$ac_objext conftest$ac_exeext
14008 if { (ac_try="$ac_link"
14009 case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_link") 2>conftest.er1
14016 grep -v '^ *+' conftest.er1 >conftest.err
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14022 { (case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_try") 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest$ac_exeext'
14032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_try") 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_cv_search_opendir=$ac_res
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14049 rm -f core conftest.err conftest.$ac_objext \
14051 if test "${ac_cv_search_opendir+set}" = set; then
14055 if test "${ac_cv_search_opendir+set}" = set; then
14058 ac_cv_search_opendir=no
14060 rm conftest.$ac_ext
14061 LIBS=$ac_func_search_save_LIBS
14063 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14064 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14065 ac_res=$ac_cv_search_opendir
14066 if test "$ac_res" != no; then
14067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14073 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14074 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14075 if test "${ac_cv_header_mmap_anon+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 ac_cpp='$CPP $CPPFLAGS'
14080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14084 cat >conftest.$ac_ext <<_ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090 #include <sys/mman.h>
14091 #include <unistd.h>
14096 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14101 rm -f conftest.$ac_objext
14102 if { (ac_try="$ac_compile"
14103 case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_compile") 2>conftest.er1
14110 grep -v '^ *+' conftest.er1 >conftest.err
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14116 { (case "(($ac_try" in
14117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118 *) ac_try_echo=$ac_try;;
14120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121 (eval "$ac_try") 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; } &&
14125 { ac_try='test -s conftest.$ac_objext'
14126 { (case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_try") 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }; then
14135 ac_cv_header_mmap_anon=yes
14137 echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 ac_cv_header_mmap_anon=no
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 ac_cpp='$CPP $CPPFLAGS'
14146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14152 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14153 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14154 if test "$ac_cv_header_mmap_anon" = yes; then
14156 cat >>confdefs.h <<\_ACEOF
14157 #define HAVE_MMAP_ANONYMOUS 1
14162 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14163 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14164 if test "${ac_cv_header_stat_broken+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 cat >conftest.$ac_ext <<_ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 #include <sys/types.h>
14174 #include <sys/stat.h>
14176 #if defined S_ISBLK && defined S_IFDIR
14177 # if S_ISBLK (S_IFDIR)
14182 #if defined S_ISBLK && defined S_IFCHR
14183 # if S_ISBLK (S_IFCHR)
14188 #if defined S_ISLNK && defined S_IFREG
14189 # if S_ISLNK (S_IFREG)
14194 #if defined S_ISSOCK && defined S_IFREG
14195 # if S_ISSOCK (S_IFREG)
14201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14202 $EGREP "You lose" >/dev/null 2>&1; then
14203 ac_cv_header_stat_broken=yes
14205 ac_cv_header_stat_broken=no
14210 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14211 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14212 if test $ac_cv_header_stat_broken = yes; then
14214 cat >>confdefs.h <<\_ACEOF
14215 #define STAT_MACROS_BROKEN 1
14220 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14221 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14222 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 cat >conftest.$ac_ext <<_ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <sys/types.h>
14232 #include <sys/wait.h>
14233 #ifndef WEXITSTATUS
14234 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14245 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14250 rm -f conftest.$ac_objext
14251 if { (ac_try="$ac_compile"
14252 case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_compile") 2>conftest.er1
14259 grep -v '^ *+' conftest.er1 >conftest.err
14261 cat conftest.err >&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } &&
14264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14265 { (case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_try") 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_try") 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_cv_header_sys_wait_h=yes
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 ac_cv_header_sys_wait_h=no
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14295 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14296 if test $ac_cv_header_sys_wait_h = yes; then
14298 cat >>confdefs.h <<\_ACEOF
14299 #define HAVE_SYS_WAIT_H 1
14304 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14305 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14306 if test "${ac_cv_header_time+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 cat >conftest.$ac_ext <<_ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14315 #include <sys/types.h>
14316 #include <sys/time.h>
14322 if ((struct tm *) 0)
14328 rm -f conftest.$ac_objext
14329 if { (ac_try="$ac_compile"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_compile") 2>conftest.er1
14337 grep -v '^ *+' conftest.er1 >conftest.err
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14343 { (case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_try") 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest.$ac_objext'
14353 { (case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_try") 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14362 ac_cv_header_time=yes
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 ac_cv_header_time=no
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14373 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14374 if test $ac_cv_header_time = yes; then
14376 cat >>confdefs.h <<\_ACEOF
14377 #define TIME_WITH_SYS_TIME 1
14384 ac_cpp='$CXXCPP $CPPFLAGS'
14385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14390 ac_cpp='$CXXCPP $CPPFLAGS'
14391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14394 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14395 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14396 if test -z "$CXXCPP"; then
14397 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 # Double quotes because CXXCPP needs to be expanded
14401 for CXXCPP in "$CXX -E" "/lib/cpp"
14403 ac_preproc_ok=false
14404 for ac_cxx_preproc_warn_flag in '' yes
14406 # Use a header file that comes with gcc, so configuring glibc
14407 # with a fresh cross-compiler works.
14408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14409 # <limits.h> exists even on freestanding compilers.
14410 # On the NeXT, cc -E runs the code through the compiler's parser,
14411 # not just through cpp. "Syntax error" is here to catch this case.
14412 cat >conftest.$ac_ext <<_ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14419 # include <limits.h>
14421 # include <assert.h>
14425 if { (ac_try="$ac_cpp conftest.$ac_ext"
14426 case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14433 grep -v '^ *+' conftest.er1 >conftest.err
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } >/dev/null; then
14438 if test -s conftest.err; then
14439 ac_cpp_err=$ac_cxx_preproc_warn_flag
14440 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14447 if test -z "$ac_cpp_err"; then
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 # Broken: fails on valid input.
14457 rm -f conftest.err conftest.$ac_ext
14459 # OK, works on sane cases. Now check whether nonexistent headers
14460 # can be detected and how.
14461 cat >conftest.$ac_ext <<_ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 #include <ac_nonexistent.h>
14469 if { (ac_try="$ac_cpp conftest.$ac_ext"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14477 grep -v '^ *+' conftest.er1 >conftest.err
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } >/dev/null; then
14482 if test -s conftest.err; then
14483 ac_cpp_err=$ac_cxx_preproc_warn_flag
14484 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14491 if test -z "$ac_cpp_err"; then
14492 # Broken: success on invalid input.
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14498 # Passes both tests.
14503 rm -f conftest.err conftest.$ac_ext
14506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14507 rm -f conftest.err conftest.$ac_ext
14508 if $ac_preproc_ok; then
14513 ac_cv_prog_CXXCPP=$CXXCPP
14516 CXXCPP=$ac_cv_prog_CXXCPP
14518 ac_cv_prog_CXXCPP=$CXXCPP
14520 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14521 echo "${ECHO_T}$CXXCPP" >&6; }
14522 ac_preproc_ok=false
14523 for ac_cxx_preproc_warn_flag in '' yes
14525 # Use a header file that comes with gcc, so configuring glibc
14526 # with a fresh cross-compiler works.
14527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14528 # <limits.h> exists even on freestanding compilers.
14529 # On the NeXT, cc -E runs the code through the compiler's parser,
14530 # not just through cpp. "Syntax error" is here to catch this case.
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14538 # include <limits.h>
14540 # include <assert.h>
14544 if { (ac_try="$ac_cpp conftest.$ac_ext"
14545 case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14552 grep -v '^ *+' conftest.er1 >conftest.err
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } >/dev/null; then
14557 if test -s conftest.err; then
14558 ac_cpp_err=$ac_cxx_preproc_warn_flag
14559 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14566 if test -z "$ac_cpp_err"; then
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 # Broken: fails on valid input.
14576 rm -f conftest.err conftest.$ac_ext
14578 # OK, works on sane cases. Now check whether nonexistent headers
14579 # can be detected and how.
14580 cat >conftest.$ac_ext <<_ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 #include <ac_nonexistent.h>
14588 if { (ac_try="$ac_cpp conftest.$ac_ext"
14589 case "(($ac_try" in
14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591 *) ac_try_echo=$ac_try;;
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14596 grep -v '^ *+' conftest.er1 >conftest.err
14598 cat conftest.err >&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } >/dev/null; then
14601 if test -s conftest.err; then
14602 ac_cpp_err=$ac_cxx_preproc_warn_flag
14603 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14610 if test -z "$ac_cpp_err"; then
14611 # Broken: success on invalid input.
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 # Passes both tests.
14622 rm -f conftest.err conftest.$ac_ext
14625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14626 rm -f conftest.err conftest.$ac_ext
14627 if $ac_preproc_ok; then
14630 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14631 See \`config.log' for more details." >&5
14632 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14633 See \`config.log' for more details." >&2;}
14634 { (exit 1); exit 1; }; }
14638 ac_cpp='$CXXCPP $CPPFLAGS'
14639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14645 for ac_header in cxxabi.h
14647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655 { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14658 # Is the header compilable?
14659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 $ac_includes_default
14668 #include <$ac_header>
14670 rm -f conftest.$ac_objext
14671 if { (ac_try="$ac_compile"
14672 case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_compile") 2>conftest.er1
14679 grep -v '^ *+' conftest.er1 >conftest.err
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
14684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14685 { (case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_try") 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; } &&
14694 { ac_try='test -s conftest.$ac_objext'
14695 { (case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_try") 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_header_compiler=yes
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_header_compiler=no
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 #include <$ac_header>
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } >/dev/null; then
14740 if test -s conftest.err; then
14741 ac_cpp_err=$ac_cxx_preproc_warn_flag
14742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14749 if test -z "$ac_cpp_err"; then
14750 ac_header_preproc=yes
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_header_preproc=no
14758 rm -f conftest.err conftest.$ac_ext
14759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14760 echo "${ECHO_T}$ac_header_preproc" >&6; }
14762 # So? What about this header?
14763 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14769 ac_header_preproc=yes
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14785 ## ------------------------------------ ##
14786 ## Report this to http://llvm.org/bugs/ ##
14787 ## ------------------------------------ ##
14789 ) | sed "s/^/$as_me: WARNING: /" >&2
14792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 eval "$as_ac_Header=\$ac_header_preproc"
14799 ac_res=`eval echo '${'$as_ac_Header'}'`
14800 { echo "$as_me:$LINENO: result: $ac_res" >&5
14801 echo "${ECHO_T}$ac_res" >&6; }
14804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14805 cat >>confdefs.h <<_ACEOF
14806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14814 ac_cpp='$CPP $CPPFLAGS'
14815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14824 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 ac_res=`eval echo '${'$as_ac_Header'}'`
14834 { echo "$as_me:$LINENO: result: $ac_res" >&5
14835 echo "${ECHO_T}$ac_res" >&6; }
14837 # Is the header compilable?
14838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14846 $ac_includes_default
14847 #include <$ac_header>
14849 rm -f conftest.$ac_objext
14850 if { (ac_try="$ac_compile"
14851 case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_compile") 2>conftest.er1
14858 grep -v '^ *+' conftest.er1 >conftest.err
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } &&
14863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14864 { (case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_try") 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try='test -s conftest.$ac_objext'
14874 { (case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_try") 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; }; then
14883 ac_header_compiler=yes
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 ac_header_compiler=no
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893 echo "${ECHO_T}$ac_header_compiler" >&6; }
14895 # Is the header present?
14896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <$ac_header>
14906 if { (ac_try="$ac_cpp conftest.$ac_ext"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14914 grep -v '^ *+' conftest.er1 >conftest.err
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } >/dev/null; then
14919 if test -s conftest.err; then
14920 ac_cpp_err=$ac_c_preproc_warn_flag
14921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14928 if test -z "$ac_cpp_err"; then
14929 ac_header_preproc=yes
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_header_preproc=no
14937 rm -f conftest.err conftest.$ac_ext
14938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14939 echo "${ECHO_T}$ac_header_preproc" >&6; }
14941 # So? What about this header?
14942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14948 ac_header_preproc=yes
14951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14964 ## ------------------------------------ ##
14965 ## Report this to http://llvm.org/bugs/ ##
14966 ## ------------------------------------ ##
14968 ) | sed "s/^/$as_me: WARNING: /" >&2
14971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 eval "$as_ac_Header=\$ac_header_preproc"
14978 ac_res=`eval echo '${'$as_ac_Header'}'`
14979 { echo "$as_me:$LINENO: result: $ac_res" >&5
14980 echo "${ECHO_T}$ac_res" >&6; }
14983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14984 cat >>confdefs.h <<_ACEOF
14985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14998 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 ac_res=`eval echo '${'$as_ac_Header'}'`
15008 { echo "$as_me:$LINENO: result: $ac_res" >&5
15009 echo "${ECHO_T}$ac_res" >&6; }
15011 # Is the header compilable?
15012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15014 cat >conftest.$ac_ext <<_ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15020 $ac_includes_default
15021 #include <$ac_header>
15023 rm -f conftest.$ac_objext
15024 if { (ac_try="$ac_compile"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_compile") 2>conftest.er1
15032 grep -v '^ *+' conftest.er1 >conftest.err
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15038 { (case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_try") 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest.$ac_objext'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 ac_header_compiler=yes
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15062 ac_header_compiler=no
15065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15067 echo "${ECHO_T}$ac_header_compiler" >&6; }
15069 # Is the header present?
15070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15072 cat >conftest.$ac_ext <<_ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15078 #include <$ac_header>
15080 if { (ac_try="$ac_cpp conftest.$ac_ext"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } >/dev/null; then
15093 if test -s conftest.err; then
15094 ac_cpp_err=$ac_c_preproc_warn_flag
15095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15102 if test -z "$ac_cpp_err"; then
15103 ac_header_preproc=yes
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 ac_header_preproc=no
15111 rm -f conftest.err conftest.$ac_ext
15112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15113 echo "${ECHO_T}$ac_header_preproc" >&6; }
15115 # So? What about this header?
15116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15122 ac_header_preproc=yes
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15138 ## ------------------------------------ ##
15139 ## Report this to http://llvm.org/bugs/ ##
15140 ## ------------------------------------ ##
15142 ) | sed "s/^/$as_me: WARNING: /" >&2
15145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 eval "$as_ac_Header=\$ac_header_preproc"
15152 ac_res=`eval echo '${'$as_ac_Header'}'`
15153 { echo "$as_me:$LINENO: result: $ac_res" >&5
15154 echo "${ECHO_T}$ac_res" >&6; }
15157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15158 cat >>confdefs.h <<_ACEOF
15159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15167 for ac_header in utime.h
15169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 ac_res=`eval echo '${'$as_ac_Header'}'`
15177 { echo "$as_me:$LINENO: result: $ac_res" >&5
15178 echo "${ECHO_T}$ac_res" >&6; }
15180 # Is the header compilable?
15181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15183 cat >conftest.$ac_ext <<_ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 $ac_includes_default
15190 #include <$ac_header>
15192 rm -f conftest.$ac_objext
15193 if { (ac_try="$ac_compile"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_compile") 2>conftest.er1
15201 grep -v '^ *+' conftest.er1 >conftest.err
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15207 { (case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_try") 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; } &&
15216 { ac_try='test -s conftest.$ac_objext'
15217 { (case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_try") 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_header_compiler=yes
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 ac_header_compiler=no
15234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15236 echo "${ECHO_T}$ac_header_compiler" >&6; }
15238 # Is the header present?
15239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15241 cat >conftest.$ac_ext <<_ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15247 #include <$ac_header>
15249 if { (ac_try="$ac_cpp conftest.$ac_ext"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15257 grep -v '^ *+' conftest.er1 >conftest.err
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } >/dev/null; then
15262 if test -s conftest.err; then
15263 ac_cpp_err=$ac_c_preproc_warn_flag
15264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15271 if test -z "$ac_cpp_err"; then
15272 ac_header_preproc=yes
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_header_preproc=no
15280 rm -f conftest.err conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282 echo "${ECHO_T}$ac_header_preproc" >&6; }
15284 # So? What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15291 ac_header_preproc=yes
15294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15307 ## ------------------------------------ ##
15308 ## Report this to http://llvm.org/bugs/ ##
15309 ## ------------------------------------ ##
15311 ) | sed "s/^/$as_me: WARNING: /" >&2
15314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 eval "$as_ac_Header=\$ac_header_preproc"
15321 ac_res=`eval echo '${'$as_ac_Header'}'`
15322 { echo "$as_me:$LINENO: result: $ac_res" >&5
15323 echo "${ECHO_T}$ac_res" >&6; }
15326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15327 cat >>confdefs.h <<_ACEOF
15328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15340 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 ac_res=`eval echo '${'$as_ac_Header'}'`
15350 { echo "$as_me:$LINENO: result: $ac_res" >&5
15351 echo "${ECHO_T}$ac_res" >&6; }
15353 # Is the header compilable?
15354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15356 cat >conftest.$ac_ext <<_ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 $ac_includes_default
15363 #include <$ac_header>
15365 rm -f conftest.$ac_objext
15366 if { (ac_try="$ac_compile"
15367 case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372 (eval "$ac_compile") 2>conftest.er1
15374 grep -v '^ *+' conftest.er1 >conftest.err
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15380 { (case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_try") 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; } &&
15389 { ac_try='test -s conftest.$ac_objext'
15390 { (case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_try") 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_header_compiler=yes
15401 echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15404 ac_header_compiler=no
15407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15409 echo "${ECHO_T}$ac_header_compiler" >&6; }
15411 # Is the header present?
15412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15414 cat >conftest.$ac_ext <<_ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15420 #include <$ac_header>
15422 if { (ac_try="$ac_cpp conftest.$ac_ext"
15423 case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15430 grep -v '^ *+' conftest.er1 >conftest.err
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } >/dev/null; then
15435 if test -s conftest.err; then
15436 ac_cpp_err=$ac_c_preproc_warn_flag
15437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15444 if test -z "$ac_cpp_err"; then
15445 ac_header_preproc=yes
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 ac_header_preproc=no
15453 rm -f conftest.err conftest.$ac_ext
15454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15455 echo "${ECHO_T}$ac_header_preproc" >&6; }
15457 # So? What about this header?
15458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15464 ac_header_preproc=yes
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15480 ## ------------------------------------ ##
15481 ## Report this to http://llvm.org/bugs/ ##
15482 ## ------------------------------------ ##
15484 ) | sed "s/^/$as_me: WARNING: /" >&2
15487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 eval "$as_ac_Header=\$ac_header_preproc"
15494 ac_res=`eval echo '${'$as_ac_Header'}'`
15495 { echo "$as_me:$LINENO: result: $ac_res" >&5
15496 echo "${ECHO_T}$ac_res" >&6; }
15499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15500 cat >>confdefs.h <<_ACEOF
15501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15520 ac_res=`eval echo '${'$as_ac_Header'}'`
15521 { echo "$as_me:$LINENO: result: $ac_res" >&5
15522 echo "${ECHO_T}$ac_res" >&6; }
15524 # Is the header compilable?
15525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15527 cat >conftest.$ac_ext <<_ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h. */
15533 $ac_includes_default
15534 #include <$ac_header>
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_compile") 2>conftest.er1
15545 grep -v '^ *+' conftest.er1 >conftest.err
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_try") 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_header_compiler=yes
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_header_compiler=no
15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15580 echo "${ECHO_T}$ac_header_compiler" >&6; }
15582 # Is the header present?
15583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15585 cat >conftest.$ac_ext <<_ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 #include <$ac_header>
15593 if { (ac_try="$ac_cpp conftest.$ac_ext"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15601 grep -v '^ *+' conftest.er1 >conftest.err
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } >/dev/null; then
15606 if test -s conftest.err; then
15607 ac_cpp_err=$ac_c_preproc_warn_flag
15608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15615 if test -z "$ac_cpp_err"; then
15616 ac_header_preproc=yes
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 ac_header_preproc=no
15624 rm -f conftest.err conftest.$ac_ext
15625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6; }
15628 # So? What about this header?
15629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15635 ac_header_preproc=yes
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15651 ## ------------------------------------ ##
15652 ## Report this to http://llvm.org/bugs/ ##
15653 ## ------------------------------------ ##
15655 ) | sed "s/^/$as_me: WARNING: /" >&2
15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 eval "$as_ac_Header=\$ac_header_preproc"
15665 ac_res=`eval echo '${'$as_ac_Header'}'`
15666 { echo "$as_me:$LINENO: result: $ac_res" >&5
15667 echo "${ECHO_T}$ac_res" >&6; }
15670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15671 cat >>confdefs.h <<_ACEOF
15672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15680 for ac_header in valgrind/valgrind.h
15682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 ac_res=`eval echo '${'$as_ac_Header'}'`
15690 { echo "$as_me:$LINENO: result: $ac_res" >&5
15691 echo "${ECHO_T}$ac_res" >&6; }
15693 # Is the header compilable?
15694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 $ac_includes_default
15703 #include <$ac_header>
15705 rm -f conftest.$ac_objext
15706 if { (ac_try="$ac_compile"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_compile") 2>conftest.er1
15714 grep -v '^ *+' conftest.er1 >conftest.err
15716 cat conftest.err >&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15720 { (case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_try") 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try='test -s conftest.$ac_objext'
15730 { (case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_try") 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_header_compiler=yes
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ac_header_compiler=no
15747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15749 echo "${ECHO_T}$ac_header_compiler" >&6; }
15751 # Is the header present?
15752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15754 cat >conftest.$ac_ext <<_ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 #include <$ac_header>
15762 if { (ac_try="$ac_cpp conftest.$ac_ext"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } >/dev/null; then
15775 if test -s conftest.err; then
15776 ac_cpp_err=$ac_c_preproc_warn_flag
15777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15784 if test -z "$ac_cpp_err"; then
15785 ac_header_preproc=yes
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 ac_header_preproc=no
15793 rm -f conftest.err conftest.$ac_ext
15794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15795 echo "${ECHO_T}$ac_header_preproc" >&6; }
15797 # So? What about this header?
15798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15804 ac_header_preproc=yes
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15820 ## ------------------------------------ ##
15821 ## Report this to http://llvm.org/bugs/ ##
15822 ## ------------------------------------ ##
15824 ) | sed "s/^/$as_me: WARNING: /" >&2
15827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15832 eval "$as_ac_Header=\$ac_header_preproc"
15834 ac_res=`eval echo '${'$as_ac_Header'}'`
15835 { echo "$as_me:$LINENO: result: $ac_res" >&5
15836 echo "${ECHO_T}$ac_res" >&6; }
15839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15840 cat >>confdefs.h <<_ACEOF
15841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15849 for ac_header in fenv.h
15851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 ac_res=`eval echo '${'$as_ac_Header'}'`
15859 { echo "$as_me:$LINENO: result: $ac_res" >&5
15860 echo "${ECHO_T}$ac_res" >&6; }
15862 # Is the header compilable?
15863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15865 cat >conftest.$ac_ext <<_ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 $ac_includes_default
15872 #include <$ac_header>
15874 rm -f conftest.$ac_objext
15875 if { (ac_try="$ac_compile"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_compile") 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
15888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15889 { (case "(($ac_try" in
15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891 *) ac_try_echo=$ac_try;;
15893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894 (eval "$ac_try") 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; } &&
15898 { ac_try='test -s conftest.$ac_objext'
15899 { (case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_try") 2>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; }; then
15908 ac_header_compiler=yes
15910 echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15913 ac_header_compiler=no
15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15918 echo "${ECHO_T}$ac_header_compiler" >&6; }
15920 # Is the header present?
15921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15923 cat >conftest.$ac_ext <<_ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h. */
15929 #include <$ac_header>
15931 if { (ac_try="$ac_cpp conftest.$ac_ext"
15932 case "(($ac_try" in
15933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934 *) ac_try_echo=$ac_try;;
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15939 grep -v '^ *+' conftest.er1 >conftest.err
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } >/dev/null; then
15944 if test -s conftest.err; then
15945 ac_cpp_err=$ac_c_preproc_warn_flag
15946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15953 if test -z "$ac_cpp_err"; then
15954 ac_header_preproc=yes
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 ac_header_preproc=no
15962 rm -f conftest.err conftest.$ac_ext
15963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15964 echo "${ECHO_T}$ac_header_preproc" >&6; }
15966 # So? What about this header?
15967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15973 ac_header_preproc=yes
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15989 ## ------------------------------------ ##
15990 ## Report this to http://llvm.org/bugs/ ##
15991 ## ------------------------------------ ##
15993 ) | sed "s/^/$as_me: WARNING: /" >&2
15996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 eval "$as_ac_Header=\$ac_header_preproc"
16003 ac_res=`eval echo '${'$as_ac_Header'}'`
16004 { echo "$as_me:$LINENO: result: $ac_res" >&5
16005 echo "${ECHO_T}$ac_res" >&6; }
16008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16009 cat >>confdefs.h <<_ACEOF
16010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16017 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16018 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16019 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16033 #ifndef FE_ALL_EXCEPT
16034 char *p = (char *) FE_ALL_EXCEPT;
16042 rm -f conftest.$ac_objext
16043 if { (ac_try="$ac_compile"
16044 case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049 (eval "$ac_compile") 2>conftest.er1
16051 grep -v '^ *+' conftest.er1 >conftest.err
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
16056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16066 { ac_try='test -s conftest.$ac_objext'
16067 { (case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_try") 2>&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; }; then
16076 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 ac_cv_have_decl_FE_ALL_EXCEPT=no
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16086 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16087 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16088 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16090 cat >>confdefs.h <<_ACEOF
16091 #define HAVE_DECL_FE_ALL_EXCEPT 1
16096 cat >>confdefs.h <<_ACEOF
16097 #define HAVE_DECL_FE_ALL_EXCEPT 0
16102 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16103 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16104 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 cat >conftest.$ac_ext <<_ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16119 char *p = (char *) FE_INEXACT;
16127 rm -f conftest.$ac_objext
16128 if { (ac_try="$ac_compile"
16129 case "(($ac_try" in
16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131 *) ac_try_echo=$ac_try;;
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_compile") 2>conftest.er1
16136 grep -v '^ *+' conftest.er1 >conftest.err
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16151 { ac_try='test -s conftest.$ac_objext'
16152 { (case "(($ac_try" in
16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154 *) ac_try_echo=$ac_try;;
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157 (eval "$ac_try") 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 ac_cv_have_decl_FE_INEXACT=yes
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 ac_cv_have_decl_FE_INEXACT=no
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16172 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16173 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16175 cat >>confdefs.h <<_ACEOF
16176 #define HAVE_DECL_FE_INEXACT 1
16181 cat >>confdefs.h <<_ACEOF
16182 #define HAVE_DECL_FE_INEXACT 0
16189 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16191 for ac_header in pthread.h
16193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 ac_res=`eval echo '${'$as_ac_Header'}'`
16201 { echo "$as_me:$LINENO: result: $ac_res" >&5
16202 echo "${ECHO_T}$ac_res" >&6; }
16204 # Is the header compilable?
16205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 $ac_includes_default
16214 #include <$ac_header>
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_compile") 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_header_compiler=yes
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_header_compiler=no
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16260 echo "${ECHO_T}$ac_header_compiler" >&6; }
16262 # Is the header present?
16263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 #include <$ac_header>
16273 if { (ac_try="$ac_cpp conftest.$ac_ext"
16274 case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16281 grep -v '^ *+' conftest.er1 >conftest.err
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } >/dev/null; then
16286 if test -s conftest.err; then
16287 ac_cpp_err=$ac_c_preproc_warn_flag
16288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16295 if test -z "$ac_cpp_err"; then
16296 ac_header_preproc=yes
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16301 ac_header_preproc=no
16304 rm -f conftest.err conftest.$ac_ext
16305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16306 echo "${ECHO_T}$ac_header_preproc" >&6; }
16308 # So? What about this header?
16309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16315 ac_header_preproc=yes
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16331 ## ------------------------------------ ##
16332 ## Report this to http://llvm.org/bugs/ ##
16333 ## ------------------------------------ ##
16335 ) | sed "s/^/$as_me: WARNING: /" >&2
16338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 eval "$as_ac_Header=\$ac_header_preproc"
16345 ac_res=`eval echo '${'$as_ac_Header'}'`
16346 { echo "$as_me:$LINENO: result: $ac_res" >&5
16347 echo "${ECHO_T}$ac_res" >&6; }
16350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16351 cat >>confdefs.h <<_ACEOF
16352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16367 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16369 for ac_header in zlib.h
16371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 ac_res=`eval echo '${'$as_ac_Header'}'`
16379 { echo "$as_me:$LINENO: result: $ac_res" >&5
16380 echo "${ECHO_T}$ac_res" >&6; }
16382 # Is the header compilable?
16383 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16385 cat >conftest.$ac_ext <<_ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 $ac_includes_default
16392 #include <$ac_header>
16394 rm -f conftest.$ac_objext
16395 if { (ac_try="$ac_compile"
16396 case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_compile") 2>conftest.er1
16403 grep -v '^ *+' conftest.er1 >conftest.err
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
16408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16409 { (case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_try") 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; } &&
16418 { ac_try='test -s conftest.$ac_objext'
16419 { (case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_try") 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 ac_header_compiler=yes
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_header_compiler=no
16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16438 echo "${ECHO_T}$ac_header_compiler" >&6; }
16440 # Is the header present?
16441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16443 cat >conftest.$ac_ext <<_ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16449 #include <$ac_header>
16451 if { (ac_try="$ac_cpp conftest.$ac_ext"
16452 case "(($ac_try" in
16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454 *) ac_try_echo=$ac_try;;
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16459 grep -v '^ *+' conftest.er1 >conftest.err
16461 cat conftest.err >&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } >/dev/null; then
16464 if test -s conftest.err; then
16465 ac_cpp_err=$ac_c_preproc_warn_flag
16466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16473 if test -z "$ac_cpp_err"; then
16474 ac_header_preproc=yes
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_header_preproc=no
16482 rm -f conftest.err conftest.$ac_ext
16483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16484 echo "${ECHO_T}$ac_header_preproc" >&6; }
16486 # So? What about this header?
16487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16493 ac_header_preproc=yes
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16509 ## ------------------------------------ ##
16510 ## Report this to http://llvm.org/bugs/ ##
16511 ## ------------------------------------ ##
16513 ) | sed "s/^/$as_me: WARNING: /" >&2
16516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16521 eval "$as_ac_Header=\$ac_header_preproc"
16523 ac_res=`eval echo '${'$as_ac_Header'}'`
16524 { echo "$as_me:$LINENO: result: $ac_res" >&5
16525 echo "${ECHO_T}$ac_res" >&6; }
16528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16529 cat >>confdefs.h <<_ACEOF
16530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16546 if test "$llvm_cv_enable_curses" = "yes" ; then
16552 for ac_header in curses.h ncurses.h ncursesw.h ncurses/curses.h ncursesw/curses.h
16554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 ac_res=`eval echo '${'$as_ac_Header'}'`
16562 { echo "$as_me:$LINENO: result: $ac_res" >&5
16563 echo "${ECHO_T}$ac_res" >&6; }
16565 # Is the header compilable?
16566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 $ac_includes_default
16575 #include <$ac_header>
16577 rm -f conftest.$ac_objext
16578 if { (ac_try="$ac_compile"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_compile") 2>conftest.er1
16586 grep -v '^ *+' conftest.er1 >conftest.err
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } &&
16591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16592 { (case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_try") 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
16602 { (case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_try") 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 ac_header_compiler=yes
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16616 ac_header_compiler=no
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16621 echo "${ECHO_T}$ac_header_compiler" >&6; }
16623 # Is the header present?
16624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 #include <$ac_header>
16634 if { (ac_try="$ac_cpp conftest.$ac_ext"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } >/dev/null; then
16647 if test -s conftest.err; then
16648 ac_cpp_err=$ac_c_preproc_warn_flag
16649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16656 if test -z "$ac_cpp_err"; then
16657 ac_header_preproc=yes
16659 echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16662 ac_header_preproc=no
16665 rm -f conftest.err conftest.$ac_ext
16666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16667 echo "${ECHO_T}$ac_header_preproc" >&6; }
16669 # So? What about this header?
16670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16676 ac_header_preproc=yes
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16692 ## ------------------------------------ ##
16693 ## Report this to http://llvm.org/bugs/ ##
16694 ## ------------------------------------ ##
16696 ) | sed "s/^/$as_me: WARNING: /" >&2
16699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 eval "$as_ac_Header=\$ac_header_preproc"
16706 ac_res=`eval echo '${'$as_ac_Header'}'`
16707 { echo "$as_me:$LINENO: result: $ac_res" >&5
16708 echo "${ECHO_T}$ac_res" >&6; }
16711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16712 cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16722 if test "$llvm_cv_enable_libffi" = "yes" ; then
16725 for ac_header in ffi.h ffi/ffi.h
16727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 ac_res=`eval echo '${'$as_ac_Header'}'`
16735 { echo "$as_me:$LINENO: result: $ac_res" >&5
16736 echo "${ECHO_T}$ac_res" >&6; }
16738 # Is the header compilable?
16739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16741 cat >conftest.$ac_ext <<_ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 $ac_includes_default
16748 #include <$ac_header>
16750 rm -f conftest.$ac_objext
16751 if { (ac_try="$ac_compile"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_compile") 2>conftest.er1
16759 grep -v '^ *+' conftest.er1 >conftest.err
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
16775 { (case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_try") 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_header_compiler=yes
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_header_compiler=no
16792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16794 echo "${ECHO_T}$ac_header_compiler" >&6; }
16796 # Is the header present?
16797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805 #include <$ac_header>
16807 if { (ac_try="$ac_cpp conftest.$ac_ext"
16808 case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16815 grep -v '^ *+' conftest.er1 >conftest.err
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } >/dev/null; then
16820 if test -s conftest.err; then
16821 ac_cpp_err=$ac_c_preproc_warn_flag
16822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16829 if test -z "$ac_cpp_err"; then
16830 ac_header_preproc=yes
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 ac_header_preproc=no
16838 rm -f conftest.err conftest.$ac_ext
16839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16840 echo "${ECHO_T}$ac_header_preproc" >&6; }
16842 # So? What about this header?
16843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16849 ac_header_preproc=yes
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16865 ## ------------------------------------ ##
16866 ## Report this to http://llvm.org/bugs/ ##
16867 ## ------------------------------------ ##
16869 ) | sed "s/^/$as_me: WARNING: /" >&2
16872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 eval "$as_ac_Header=\$ac_header_preproc"
16879 ac_res=`eval echo '${'$as_ac_Header'}'`
16880 { echo "$as_me:$LINENO: result: $ac_res" >&5
16881 echo "${ECHO_T}$ac_res" >&6; }
16884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16885 cat >>confdefs.h <<_ACEOF
16886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16896 for ac_header in CrashReporterClient.h
16898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 ac_res=`eval echo '${'$as_ac_Header'}'`
16906 { echo "$as_me:$LINENO: result: $ac_res" >&5
16907 echo "${ECHO_T}$ac_res" >&6; }
16909 # Is the header compilable?
16910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16912 cat >conftest.$ac_ext <<_ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918 $ac_includes_default
16919 #include <$ac_header>
16921 rm -f conftest.$ac_objext
16922 if { (ac_try="$ac_compile"
16923 case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_compile") 2>conftest.er1
16930 grep -v '^ *+' conftest.er1 >conftest.err
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
16935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16936 { (case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_try") 2>&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; } &&
16945 { ac_try='test -s conftest.$ac_objext'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 ac_header_compiler=yes
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 ac_header_compiler=no
16963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16965 echo "${ECHO_T}$ac_header_compiler" >&6; }
16967 # Is the header present?
16968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16970 cat >conftest.$ac_ext <<_ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 #include <$ac_header>
16978 if { (ac_try="$ac_cpp conftest.$ac_ext"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16986 grep -v '^ *+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } >/dev/null; then
16991 if test -s conftest.err; then
16992 ac_cpp_err=$ac_c_preproc_warn_flag
16993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17000 if test -z "$ac_cpp_err"; then
17001 ac_header_preproc=yes
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ac_header_preproc=no
17009 rm -f conftest.err conftest.$ac_ext
17010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17011 echo "${ECHO_T}$ac_header_preproc" >&6; }
17013 # So? What about this header?
17014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17020 ac_header_preproc=yes
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17036 ## ------------------------------------ ##
17037 ## Report this to http://llvm.org/bugs/ ##
17038 ## ------------------------------------ ##
17040 ) | sed "s/^/$as_me: WARNING: /" >&2
17043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 eval "$as_ac_Header=\$ac_header_preproc"
17050 ac_res=`eval echo '${'$as_ac_Header'}'`
17051 { echo "$as_me:$LINENO: result: $ac_res" >&5
17052 echo "${ECHO_T}$ac_res" >&6; }
17055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17056 cat >>confdefs.h <<_ACEOF
17057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17065 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17066 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17067 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17075 extern const char *__crashreporter_info__;
17077 __crashreporter_info__ = "test";
17083 rm -f conftest.$ac_objext conftest$ac_exeext
17084 if { (ac_try="$ac_link"
17085 case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_link") 2>conftest.er1
17092 grep -v '^ *+' conftest.er1 >conftest.err
17094 cat conftest.err >&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098 { (case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_try") 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest$ac_exeext'
17108 { (case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17118 { echo "$as_me:$LINENO: result: yes" >&5
17119 echo "${ECHO_T}yes" >&6; }
17121 cat >>confdefs.h <<\_ACEOF
17122 #define HAVE_CRASHREPORTER_INFO 1
17127 echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17131 { echo "$as_me:$LINENO: result: no" >&5
17132 echo "${ECHO_T}no" >&6; }
17134 cat >>confdefs.h <<\_ACEOF
17135 #define HAVE_CRASHREPORTER_INFO 0
17141 rm -f core conftest.err conftest.$ac_objext \
17142 conftest$ac_exeext conftest.$ac_ext
17146 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17147 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17148 if test "${ac_cv_huge_val_sanity+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17153 ac_cpp='$CXXCPP $CPPFLAGS'
17154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17158 ac_save_CXXFLAGS=$CXXFLAGS
17159 CXXFLAGS="$CXXFLAGS -pedantic"
17160 if test "$cross_compiling" = yes; then
17161 ac_cv_huge_val_sanity=yes
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17173 double x = HUGE_VAL; return x != x;
17178 rm -f conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_link") 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17189 { (case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_try") 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_huge_val_sanity=yes
17200 echo "$as_me: program exited with status $ac_status" >&5
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ( exit $ac_status )
17205 ac_cv_huge_val_sanity=no
17207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17211 CXXFLAGS=$ac_save_CXXFLAGS
17213 ac_cpp='$CPP $CPPFLAGS'
17214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17220 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17221 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17222 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17225 { echo "$as_me:$LINENO: checking for pid_t" >&5
17226 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17227 if test "${ac_cv_type_pid_t+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 cat >conftest.$ac_ext <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 $ac_includes_default
17237 typedef pid_t ac__type_new_;
17241 if ((ac__type_new_ *) 0)
17243 if (sizeof (ac__type_new_))
17249 rm -f conftest.$ac_objext
17250 if { (ac_try="$ac_compile"
17251 case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_compile") 2>conftest.er1
17258 grep -v '^ *+' conftest.er1 >conftest.err
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } &&
17263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17264 { (case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_try") 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest.$ac_objext'
17274 { (case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_try") 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_type_pid_t=yes
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 ac_cv_type_pid_t=no
17291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17293 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17294 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17295 if test $ac_cv_type_pid_t = yes; then
17299 cat >>confdefs.h <<_ACEOF
17305 { echo "$as_me:$LINENO: checking for size_t" >&5
17306 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17307 if test "${ac_cv_type_size_t+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17310 cat >conftest.$ac_ext <<_ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 $ac_includes_default
17317 typedef size_t ac__type_new_;
17321 if ((ac__type_new_ *) 0)
17323 if (sizeof (ac__type_new_))
17329 rm -f conftest.$ac_objext
17330 if { (ac_try="$ac_compile"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_compile") 2>conftest.er1
17338 grep -v '^ *+' conftest.er1 >conftest.err
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
17343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17344 { (case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_try") 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; } &&
17353 { ac_try='test -s conftest.$ac_objext'
17354 { (case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_try") 2>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; }; then
17363 ac_cv_type_size_t=yes
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 ac_cv_type_size_t=no
17371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17374 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17375 if test $ac_cv_type_size_t = yes; then
17379 cat >>confdefs.h <<_ACEOF
17380 #define size_t unsigned int
17386 cat >>confdefs.h <<_ACEOF
17387 #define RETSIGTYPE void
17390 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17391 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17392 if test "${ac_cv_struct_tm+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 cat >conftest.$ac_ext <<_ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 #include <sys/types.h>
17407 struct tm *tp; tp->tm_sec;
17412 rm -f conftest.$ac_objext
17413 if { (ac_try="$ac_compile"
17414 case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_compile") 2>conftest.er1
17421 grep -v '^ *+' conftest.er1 >conftest.err
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17427 { (case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_try") 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; } &&
17436 { ac_try='test -s conftest.$ac_objext'
17437 { (case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_try") 2>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_struct_tm=time.h
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 ac_cv_struct_tm=sys/time.h
17454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17456 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17457 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17458 if test $ac_cv_struct_tm = sys/time.h; then
17460 cat >>confdefs.h <<\_ACEOF
17461 #define TM_IN_SYS_TIME 1
17466 { echo "$as_me:$LINENO: checking for int64_t" >&5
17467 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17468 if test "${ac_cv_type_int64_t+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 cat >conftest.$ac_ext <<_ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17477 $ac_includes_default
17478 typedef int64_t ac__type_new_;
17482 if ((ac__type_new_ *) 0)
17484 if (sizeof (ac__type_new_))
17490 rm -f conftest.$ac_objext
17491 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17499 grep -v '^ *+' conftest.er1 >conftest.err
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest.$ac_objext'
17515 { (case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_try") 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_cv_type_int64_t=yes
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 ac_cv_type_int64_t=no
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17535 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17536 if test $ac_cv_type_int64_t = yes; then
17538 cat >>confdefs.h <<_ACEOF
17539 #define HAVE_INT64_T 1
17544 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17545 echo "$as_me: error: Type int64_t required but not found" >&2;}
17546 { (exit 1); exit 1; }; }
17549 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17550 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17551 if test "${ac_cv_type_uint64_t+set}" = set; then
17552 echo $ECHO_N "(cached) $ECHO_C" >&6
17554 cat >conftest.$ac_ext <<_ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17560 $ac_includes_default
17561 typedef uint64_t ac__type_new_;
17565 if ((ac__type_new_ *) 0)
17567 if (sizeof (ac__type_new_))
17573 rm -f conftest.$ac_objext
17574 if { (ac_try="$ac_compile"
17575 case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_compile") 2>conftest.er1
17582 grep -v '^ *+' conftest.er1 >conftest.err
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest.$ac_objext'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 ac_cv_type_uint64_t=yes
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17612 ac_cv_type_uint64_t=no
17615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17617 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17618 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17619 if test $ac_cv_type_uint64_t = yes; then
17621 cat >>confdefs.h <<_ACEOF
17622 #define HAVE_UINT64_T 1
17627 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17628 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17629 if test "${ac_cv_type_u_int64_t+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638 $ac_includes_default
17639 typedef u_int64_t ac__type_new_;
17643 if ((ac__type_new_ *) 0)
17645 if (sizeof (ac__type_new_))
17651 rm -f conftest.$ac_objext
17652 if { (ac_try="$ac_compile"
17653 case "(($ac_try" in
17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_compile") 2>conftest.er1
17660 grep -v '^ *+' conftest.er1 >conftest.err
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17666 { (case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_try") 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; } &&
17675 { ac_try='test -s conftest.$ac_objext'
17676 { (case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_try") 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 ac_cv_type_u_int64_t=yes
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ac_cv_type_u_int64_t=no
17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17696 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17697 if test $ac_cv_type_u_int64_t = yes; then
17699 cat >>confdefs.h <<_ACEOF
17700 #define HAVE_U_INT64_T 1
17705 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17706 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17707 { (exit 1); exit 1; }; }
17721 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17737 #define $ac_func innocuous_$ac_func
17739 /* System header to define __stub macros and hopefully few prototypes,
17740 which can conflict with char $ac_func (); below.
17741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17742 <limits.h> exists even on freestanding compilers. */
17745 # include <limits.h>
17747 # include <assert.h>
17752 /* Override any GCC internal prototype to avoid an error.
17753 Use char because int might match the return type of a GCC
17754 builtin and then its argument prototype would still apply. */
17759 /* The GNU C library defines this for functions which it implements
17760 to always fail with ENOSYS. Some functions are actually named
17761 something starting with __ and the normal name is an alias. */
17762 #if defined __stub_$ac_func || defined __stub___$ac_func
17769 return $ac_func ();
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (ac_try="$ac_link"
17776 case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_link") 2>conftest.er1
17783 grep -v '^ *+' conftest.er1 >conftest.err
17785 cat conftest.err >&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } &&
17788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17789 { (case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_try") 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest$ac_exeext'
17799 { (case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_try") 2>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; }; then
17808 eval "$as_ac_var=yes"
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17813 eval "$as_ac_var=no"
17816 rm -f core conftest.err conftest.$ac_objext \
17817 conftest$ac_exeext conftest.$ac_ext
17819 ac_res=`eval echo '${'$as_ac_var'}'`
17820 { echo "$as_me:$LINENO: result: $ac_res" >&5
17821 echo "${ECHO_T}$ac_res" >&6; }
17822 if test `eval echo '${'$as_ac_var'}'` = yes; then
17823 cat >>confdefs.h <<_ACEOF
17824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17834 for ac_func in powf fmodf strtof round
17836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17842 cat >conftest.$ac_ext <<_ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17850 #define $ac_func innocuous_$ac_func
17852 /* System header to define __stub macros and hopefully few prototypes,
17853 which can conflict with char $ac_func (); below.
17854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17855 <limits.h> exists even on freestanding compilers. */
17858 # include <limits.h>
17860 # include <assert.h>
17865 /* Override any GCC internal prototype to avoid an error.
17866 Use char because int might match the return type of a GCC
17867 builtin and then its argument prototype would still apply. */
17872 /* The GNU C library defines this for functions which it implements
17873 to always fail with ENOSYS. Some functions are actually named
17874 something starting with __ and the normal name is an alias. */
17875 #if defined __stub_$ac_func || defined __stub___$ac_func
17882 return $ac_func ();
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (ac_try="$ac_link"
17889 case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_link") 2>conftest.er1
17896 grep -v '^ *+' conftest.er1 >conftest.err
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } &&
17901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17902 { (case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_try") 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest$ac_exeext'
17912 { (case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_try") 2>&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; }; then
17921 eval "$as_ac_var=yes"
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17926 eval "$as_ac_var=no"
17929 rm -f core conftest.err conftest.$ac_objext \
17930 conftest$ac_exeext conftest.$ac_ext
17932 ac_res=`eval echo '${'$as_ac_var'}'`
17933 { echo "$as_me:$LINENO: result: $ac_res" >&5
17934 echo "${ECHO_T}$ac_res" >&6; }
17935 if test `eval echo '${'$as_ac_var'}'` = yes; then
17936 cat >>confdefs.h <<_ACEOF
17937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17948 for ac_func in log log2 log10 exp exp2
17950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17956 cat >conftest.$ac_ext <<_ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h. */
17962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17964 #define $ac_func innocuous_$ac_func
17966 /* System header to define __stub macros and hopefully few prototypes,
17967 which can conflict with char $ac_func (); below.
17968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17969 <limits.h> exists even on freestanding compilers. */
17972 # include <limits.h>
17974 # include <assert.h>
17979 /* Override any GCC internal prototype to avoid an error.
17980 Use char because int might match the return type of a GCC
17981 builtin and then its argument prototype would still apply. */
17986 /* The GNU C library defines this for functions which it implements
17987 to always fail with ENOSYS. Some functions are actually named
17988 something starting with __ and the normal name is an alias. */
17989 #if defined __stub_$ac_func || defined __stub___$ac_func
17996 return $ac_func ();
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (ac_try="$ac_link"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_link") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest$ac_exeext'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 eval "$as_ac_var=yes"
18037 echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18040 eval "$as_ac_var=no"
18043 rm -f core conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18046 ac_res=`eval echo '${'$as_ac_var'}'`
18047 { echo "$as_me:$LINENO: result: $ac_res" >&5
18048 echo "${ECHO_T}$ac_res" >&6; }
18049 if test `eval echo '${'$as_ac_var'}'` = yes; then
18050 cat >>confdefs.h <<_ACEOF
18051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18062 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18078 #define $ac_func innocuous_$ac_func
18080 /* System header to define __stub macros and hopefully few prototypes,
18081 which can conflict with char $ac_func (); below.
18082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18083 <limits.h> exists even on freestanding compilers. */
18086 # include <limits.h>
18088 # include <assert.h>
18093 /* Override any GCC internal prototype to avoid an error.
18094 Use char because int might match the return type of a GCC
18095 builtin and then its argument prototype would still apply. */
18100 /* The GNU C library defines this for functions which it implements
18101 to always fail with ENOSYS. Some functions are actually named
18102 something starting with __ and the normal name is an alias. */
18103 #if defined __stub_$ac_func || defined __stub___$ac_func
18110 return $ac_func ();
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_link") 2>conftest.er1
18124 grep -v '^ *+' conftest.er1 >conftest.err
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
18129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest$ac_exeext'
18140 { (case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_try") 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
18149 eval "$as_ac_var=yes"
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18154 eval "$as_ac_var=no"
18157 rm -f core conftest.err conftest.$ac_objext \
18158 conftest$ac_exeext conftest.$ac_ext
18160 ac_res=`eval echo '${'$as_ac_var'}'`
18161 { echo "$as_me:$LINENO: result: $ac_res" >&5
18162 echo "${ECHO_T}$ac_res" >&6; }
18163 if test `eval echo '${'$as_ac_var'}'` = yes; then
18164 cat >>confdefs.h <<_ACEOF
18165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18174 for ac_func in isatty mkdtemp mkstemp
18176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 cat >conftest.$ac_ext <<_ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18190 #define $ac_func innocuous_$ac_func
18192 /* System header to define __stub macros and hopefully few prototypes,
18193 which can conflict with char $ac_func (); below.
18194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18195 <limits.h> exists even on freestanding compilers. */
18198 # include <limits.h>
18200 # include <assert.h>
18205 /* Override any GCC internal prototype to avoid an error.
18206 Use char because int might match the return type of a GCC
18207 builtin and then its argument prototype would still apply. */
18212 /* The GNU C library defines this for functions which it implements
18213 to always fail with ENOSYS. Some functions are actually named
18214 something starting with __ and the normal name is an alias. */
18215 #if defined __stub_$ac_func || defined __stub___$ac_func
18222 return $ac_func ();
18227 rm -f conftest.$ac_objext conftest$ac_exeext
18228 if { (ac_try="$ac_link"
18229 case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_link") 2>conftest.er1
18236 grep -v '^ *+' conftest.er1 >conftest.err
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } &&
18241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18242 { (case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_try") 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try='test -s conftest$ac_exeext'
18252 { (case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_try") 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 eval "$as_ac_var=yes"
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 eval "$as_ac_var=no"
18269 rm -f core conftest.err conftest.$ac_objext \
18270 conftest$ac_exeext conftest.$ac_ext
18272 ac_res=`eval echo '${'$as_ac_var'}'`
18273 { echo "$as_me:$LINENO: result: $ac_res" >&5
18274 echo "${ECHO_T}$ac_res" >&6; }
18275 if test `eval echo '${'$as_ac_var'}'` = yes; then
18276 cat >>confdefs.h <<_ACEOF
18277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18289 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 cat >conftest.$ac_ext <<_ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18305 #define $ac_func innocuous_$ac_func
18307 /* System header to define __stub macros and hopefully few prototypes,
18308 which can conflict with char $ac_func (); below.
18309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18310 <limits.h> exists even on freestanding compilers. */
18313 # include <limits.h>
18315 # include <assert.h>
18320 /* Override any GCC internal prototype to avoid an error.
18321 Use char because int might match the return type of a GCC
18322 builtin and then its argument prototype would still apply. */
18327 /* The GNU C library defines this for functions which it implements
18328 to always fail with ENOSYS. Some functions are actually named
18329 something starting with __ and the normal name is an alias. */
18330 #if defined __stub_$ac_func || defined __stub___$ac_func
18337 return $ac_func ();
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18351 grep -v '^ *+' conftest.er1 >conftest.err
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest$ac_exeext'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 eval "$as_ac_var=yes"
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 eval "$as_ac_var=no"
18384 rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18387 ac_res=`eval echo '${'$as_ac_var'}'`
18388 { echo "$as_me:$LINENO: result: $ac_res" >&5
18389 echo "${ECHO_T}$ac_res" >&6; }
18390 if test `eval echo '${'$as_ac_var'}'` = yes; then
18391 cat >>confdefs.h <<_ACEOF
18392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18402 for ac_func in strerror strerror_r setenv arc4random
18404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 cat >conftest.$ac_ext <<_ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18418 #define $ac_func innocuous_$ac_func
18420 /* System header to define __stub macros and hopefully few prototypes,
18421 which can conflict with char $ac_func (); below.
18422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18423 <limits.h> exists even on freestanding compilers. */
18426 # include <limits.h>
18428 # include <assert.h>
18433 /* Override any GCC internal prototype to avoid an error.
18434 Use char because int might match the return type of a GCC
18435 builtin and then its argument prototype would still apply. */
18440 /* The GNU C library defines this for functions which it implements
18441 to always fail with ENOSYS. Some functions are actually named
18442 something starting with __ and the normal name is an alias. */
18443 #if defined __stub_$ac_func || defined __stub___$ac_func
18450 return $ac_func ();
18455 rm -f conftest.$ac_objext conftest$ac_exeext
18456 if { (ac_try="$ac_link"
18457 case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_link") 2>conftest.er1
18464 grep -v '^ *+' conftest.er1 >conftest.err
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
18469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18470 { (case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475 (eval "$ac_try") 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; } &&
18479 { ac_try='test -s conftest$ac_exeext'
18480 { (case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_try") 2>&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 eval "$as_ac_var=yes"
18491 echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18494 eval "$as_ac_var=no"
18497 rm -f core conftest.err conftest.$ac_objext \
18498 conftest$ac_exeext conftest.$ac_ext
18500 ac_res=`eval echo '${'$as_ac_var'}'`
18501 { echo "$as_me:$LINENO: result: $ac_res" >&5
18502 echo "${ECHO_T}$ac_res" >&6; }
18503 if test `eval echo '${'$as_ac_var'}'` = yes; then
18504 cat >>confdefs.h <<_ACEOF
18505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18515 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 cat >conftest.$ac_ext <<_ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18531 #define $ac_func innocuous_$ac_func
18533 /* System header to define __stub macros and hopefully few prototypes,
18534 which can conflict with char $ac_func (); below.
18535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18536 <limits.h> exists even on freestanding compilers. */
18539 # include <limits.h>
18541 # include <assert.h>
18546 /* Override any GCC internal prototype to avoid an error.
18547 Use char because int might match the return type of a GCC
18548 builtin and then its argument prototype would still apply. */
18553 /* The GNU C library defines this for functions which it implements
18554 to always fail with ENOSYS. Some functions are actually named
18555 something starting with __ and the normal name is an alias. */
18556 #if defined __stub_$ac_func || defined __stub___$ac_func
18563 return $ac_func ();
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (ac_try="$ac_link"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
18577 grep -v '^ *+' conftest.er1 >conftest.err
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } &&
18582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18583 { (case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_try") 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest$ac_exeext'
18593 { (case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_try") 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602 eval "$as_ac_var=yes"
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 eval "$as_ac_var=no"
18610 rm -f core conftest.err conftest.$ac_objext \
18611 conftest$ac_exeext conftest.$ac_ext
18613 ac_res=`eval echo '${'$as_ac_var'}'`
18614 { echo "$as_me:$LINENO: result: $ac_res" >&5
18615 echo "${ECHO_T}$ac_res" >&6; }
18616 if test `eval echo '${'$as_ac_var'}'` = yes; then
18617 cat >>confdefs.h <<_ACEOF
18618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18629 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18645 #define $ac_func innocuous_$ac_func
18647 /* System header to define __stub macros and hopefully few prototypes,
18648 which can conflict with char $ac_func (); below.
18649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650 <limits.h> exists even on freestanding compilers. */
18653 # include <limits.h>
18655 # include <assert.h>
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18667 /* The GNU C library defines this for functions which it implements
18668 to always fail with ENOSYS. Some functions are actually named
18669 something starting with __ and the normal name is an alias. */
18670 #if defined __stub_$ac_func || defined __stub___$ac_func
18677 return $ac_func ();
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 eval "$as_ac_var=yes"
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 eval "$as_ac_var=no"
18724 rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18727 ac_res=`eval echo '${'$as_ac_var'}'`
18728 { echo "$as_me:$LINENO: result: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18730 if test `eval echo '${'$as_ac_var'}'` = yes; then
18731 cat >>confdefs.h <<_ACEOF
18732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18740 for ac_func in futimes futimens
18742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 cat >conftest.$ac_ext <<_ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18756 #define $ac_func innocuous_$ac_func
18758 /* System header to define __stub macros and hopefully few prototypes,
18759 which can conflict with char $ac_func (); below.
18760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18761 <limits.h> exists even on freestanding compilers. */
18764 # include <limits.h>
18766 # include <assert.h>
18771 /* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18778 /* The GNU C library defines this for functions which it implements
18779 to always fail with ENOSYS. Some functions are actually named
18780 something starting with __ and the normal name is an alias. */
18781 #if defined __stub_$ac_func || defined __stub___$ac_func
18788 return $ac_func ();
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (ac_try="$ac_link"
18795 case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_link") 2>conftest.er1
18802 grep -v '^ *+' conftest.er1 >conftest.err
18804 cat conftest.err >&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } &&
18807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18808 { (case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_try") 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; } &&
18817 { ac_try='test -s conftest$ac_exeext'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
18827 eval "$as_ac_var=yes"
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 eval "$as_ac_var=no"
18835 rm -f core conftest.err conftest.$ac_objext \
18836 conftest$ac_exeext conftest.$ac_ext
18838 ac_res=`eval echo '${'$as_ac_var'}'`
18839 { echo "$as_me:$LINENO: result: $ac_res" >&5
18840 echo "${ECHO_T}$ac_res" >&6; }
18841 if test `eval echo '${'$as_ac_var'}'` = yes; then
18842 cat >>confdefs.h <<_ACEOF
18843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18849 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18850 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18851 if test "${llvm_cv_c_printf_a+set}" = set; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 ac_cpp='$CPP $CPPFLAGS'
18856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18860 if test "$cross_compiling" = yes; then
18861 llvmac_cv_c_printf_a=no
18863 cat >conftest.$ac_ext <<_ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18872 #include <stdlib.h>
18878 volatile double A, B;
18882 sprintf(Buffer, "%a", A);
18886 if (A != 0x1.999999999999ap-4)
18893 rm -f conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_try") 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; }; then
18913 llvm_cv_c_printf_a=yes
18915 echo "$as_me: program exited with status $ac_status" >&5
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ( exit $ac_status )
18920 llvmac_cv_c_printf_a=no
18922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18927 ac_cpp='$CPP $CPPFLAGS'
18928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18933 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18934 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18935 if test "$llvm_cv_c_printf_a" = "yes"; then
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE_PRINTF_A 1
18945 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18946 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18947 if test "${ac_cv_func_rand48+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 ac_cpp='$CXXCPP $CPPFLAGS'
18953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18957 cat >conftest.$ac_ext <<_ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 #include <stdlib.h>
18967 srand48(0);lrand48();drand48();
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_compile") 2>conftest.er1
18981 grep -v '^ *+' conftest.er1 >conftest.err
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
18986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18987 { (case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_try") 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_try") 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; }; then
19006 ac_cv_func_rand48=yes
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 ac_cv_func_rand48=no
19014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016 ac_cpp='$CPP $CPPFLAGS'
19017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19023 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19024 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19026 if test "$ac_cv_func_rand48" = "yes" ; then
19028 cat >>confdefs.h <<\_ACEOF
19029 #define HAVE_RAND48 1
19035 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19036 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19037 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 cat >conftest.$ac_ext <<_ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 $ac_includes_default
19051 char *p = (char *) strerror_s;
19059 rm -f conftest.$ac_objext
19060 if { (ac_try="$ac_compile"
19061 case "(($ac_try" in
19062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063 *) ac_try_echo=$ac_try;;
19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066 (eval "$ac_compile") 2>conftest.er1
19068 grep -v '^ *+' conftest.er1 >conftest.err
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
19073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19074 { (case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_try") 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; } &&
19083 { ac_try='test -s conftest.$ac_objext'
19084 { (case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_try") 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 ac_cv_have_decl_strerror_s=yes
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 ac_cv_have_decl_strerror_s=no
19101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19104 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19105 if test $ac_cv_have_decl_strerror_s = yes; then
19107 cat >>confdefs.h <<_ACEOF
19108 #define HAVE_DECL_STRERROR_S 1
19113 cat >>confdefs.h <<_ACEOF
19114 #define HAVE_DECL_STRERROR_S 0
19122 if test "$llvm_cv_os_type" = "MingW" ; then
19123 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19124 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19125 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 ac_check_lib_save_LIBS=$LIBS
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19137 /* Override any GCC internal prototype to avoid an error.
19138 Use char because int might match the return type of a GCC
19139 builtin and then its argument prototype would still apply. */
19152 rm -f conftest.$ac_objext conftest$ac_exeext
19153 if { (ac_try="$ac_link"
19154 case "(($ac_try" in
19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_link") 2>conftest.er1
19161 grep -v '^ *+' conftest.er1 >conftest.err
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19167 { (case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_try") 2>&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest$ac_exeext'
19177 { (case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_try") 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 ac_cv_lib_gcc__alloca=yes
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_cv_lib_gcc__alloca=no
19194 rm -f core conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19196 LIBS=$ac_check_lib_save_LIBS
19198 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19199 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19200 if test $ac_cv_lib_gcc__alloca = yes; then
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE__ALLOCA 1
19208 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19209 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19210 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 ac_check_lib_save_LIBS=$LIBS
19215 cat >conftest.$ac_ext <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19222 /* Override any GCC internal prototype to avoid an error.
19223 Use char because int might match the return type of a GCC
19224 builtin and then its argument prototype would still apply. */
19232 return __alloca ();
19237 rm -f conftest.$ac_objext conftest$ac_exeext
19238 if { (ac_try="$ac_link"
19239 case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_link") 2>conftest.er1
19246 grep -v '^ *+' conftest.er1 >conftest.err
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest$ac_exeext'
19262 { (case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_try") 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271 ac_cv_lib_gcc___alloca=yes
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_lib_gcc___alloca=no
19279 rm -f core conftest.err conftest.$ac_objext \
19280 conftest$ac_exeext conftest.$ac_ext
19281 LIBS=$ac_check_lib_save_LIBS
19283 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19284 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19285 if test $ac_cv_lib_gcc___alloca = yes; then
19287 cat >>confdefs.h <<\_ACEOF
19288 #define HAVE___ALLOCA 1
19293 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19294 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19295 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
19298 ac_check_lib_save_LIBS=$LIBS
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19307 /* Override any GCC internal prototype to avoid an error.
19308 Use char because int might match the return type of a GCC
19309 builtin and then its argument prototype would still apply. */
19317 return __chkstk ();
19322 rm -f conftest.$ac_objext conftest$ac_exeext
19323 if { (ac_try="$ac_link"
19324 case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_link") 2>conftest.er1
19331 grep -v '^ *+' conftest.er1 >conftest.err
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
19336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19337 { (case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_try") 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } &&
19346 { ac_try='test -s conftest$ac_exeext'
19347 { (case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_try") 2>&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; }; then
19356 ac_cv_lib_gcc___chkstk=yes
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 ac_cv_lib_gcc___chkstk=no
19364 rm -f core conftest.err conftest.$ac_objext \
19365 conftest$ac_exeext conftest.$ac_ext
19366 LIBS=$ac_check_lib_save_LIBS
19368 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19369 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19370 if test $ac_cv_lib_gcc___chkstk = yes; then
19372 cat >>confdefs.h <<\_ACEOF
19373 #define HAVE___CHKSTK 1
19378 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19379 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19380 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 ac_check_lib_save_LIBS=$LIBS
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19392 /* Override any GCC internal prototype to avoid an error.
19393 Use char because int might match the return type of a GCC
19394 builtin and then its argument prototype would still apply. */
19402 return ___chkstk ();
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_link") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest$ac_exeext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_lib_gcc____chkstk=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_gcc____chkstk=no
19449 rm -f core conftest.err conftest.$ac_objext \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19454 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19455 if test $ac_cv_lib_gcc____chkstk = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE____CHKSTK 1
19464 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19465 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19466 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 ac_check_lib_save_LIBS=$LIBS
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 /* Override any GCC internal prototype to avoid an error.
19479 Use char because int might match the return type of a GCC
19480 builtin and then its argument prototype would still apply. */
19488 return __ashldi3 ();
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_link") 2>conftest.er1
19502 grep -v '^ *+' conftest.er1 >conftest.err
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } &&
19507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19508 { (case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_try") 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try='test -s conftest$ac_exeext'
19518 { (case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523 (eval "$ac_try") 2>&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); }; }; then
19527 ac_cv_lib_gcc___ashldi3=yes
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 ac_cv_lib_gcc___ashldi3=no
19535 rm -f core conftest.err conftest.$ac_objext \
19536 conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19539 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19540 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19541 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE___ASHLDI3 1
19549 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19550 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19551 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 ac_check_lib_save_LIBS=$LIBS
19556 cat >conftest.$ac_ext <<_ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19563 /* Override any GCC internal prototype to avoid an error.
19564 Use char because int might match the return type of a GCC
19565 builtin and then its argument prototype would still apply. */
19573 return __ashrdi3 ();
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_link") 2>conftest.er1
19587 grep -v '^ *+' conftest.er1 >conftest.err
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593 { (case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_try") 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest$ac_exeext'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 ac_cv_lib_gcc___ashrdi3=yes
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ac_cv_lib_gcc___ashrdi3=no
19620 rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
19622 LIBS=$ac_check_lib_save_LIBS
19624 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19625 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19626 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE___ASHRDI3 1
19634 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19635 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19636 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 ac_check_lib_save_LIBS=$LIBS
19641 cat >conftest.$ac_ext <<_ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19648 /* Override any GCC internal prototype to avoid an error.
19649 Use char because int might match the return type of a GCC
19650 builtin and then its argument prototype would still apply. */
19658 return __divdi3 ();
19663 rm -f conftest.$ac_objext conftest$ac_exeext
19664 if { (ac_try="$ac_link"
19665 case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_link") 2>conftest.er1
19672 grep -v '^ *+' conftest.er1 >conftest.err
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
19677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19678 { (case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_try") 2>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest$ac_exeext'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697 ac_cv_lib_gcc___divdi3=yes
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19702 ac_cv_lib_gcc___divdi3=no
19705 rm -f core conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19707 LIBS=$ac_check_lib_save_LIBS
19709 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19710 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19711 if test $ac_cv_lib_gcc___divdi3 = yes; then
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE___DIVDI3 1
19719 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19720 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19721 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 ac_check_lib_save_LIBS=$LIBS
19726 cat >conftest.$ac_ext <<_ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19733 /* Override any GCC internal prototype to avoid an error.
19734 Use char because int might match the return type of a GCC
19735 builtin and then its argument prototype would still apply. */
19743 return __fixdfdi ();
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19763 { (case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_try") 2>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; } &&
19772 { ac_try='test -s conftest$ac_exeext'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 ac_cv_lib_gcc___fixdfdi=yes
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_lib_gcc___fixdfdi=no
19790 rm -f core conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19792 LIBS=$ac_check_lib_save_LIBS
19794 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19795 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19796 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE___FIXDFDI 1
19804 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19805 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19806 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 ac_check_lib_save_LIBS=$LIBS
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19828 return __fixsfdi ();
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_link") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19848 { (case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_try") 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest$ac_exeext'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_lib_gcc___fixsfdi=yes
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_cv_lib_gcc___fixsfdi=no
19875 rm -f core conftest.err conftest.$ac_objext \
19876 conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19879 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19880 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19881 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19883 cat >>confdefs.h <<\_ACEOF
19884 #define HAVE___FIXSFDI 1
19889 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19890 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19891 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 ac_check_lib_save_LIBS=$LIBS
19896 cat >conftest.$ac_ext <<_ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19903 /* Override any GCC internal prototype to avoid an error.
19904 Use char because int might match the return type of a GCC
19905 builtin and then its argument prototype would still apply. */
19909 char __floatdidf ();
19913 return __floatdidf ();
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_link") 2>conftest.er1
19927 grep -v '^ *+' conftest.er1 >conftest.err
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
19932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19933 { (case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_try") 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest$ac_exeext'
19943 { (case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_try") 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 ac_cv_lib_gcc___floatdidf=yes
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ac_cv_lib_gcc___floatdidf=no
19960 rm -f core conftest.err conftest.$ac_objext \
19961 conftest$ac_exeext conftest.$ac_ext
19962 LIBS=$ac_check_lib_save_LIBS
19964 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19965 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19966 if test $ac_cv_lib_gcc___floatdidf = yes; then
19968 cat >>confdefs.h <<\_ACEOF
19969 #define HAVE___FLOATDIDF 1
19974 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19975 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19976 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 ac_check_lib_save_LIBS=$LIBS
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19998 return __lshrdi3 ();
20003 rm -f conftest.$ac_objext conftest$ac_exeext
20004 if { (ac_try="$ac_link"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_link") 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20018 { (case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_try") 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest$ac_exeext'
20028 { (case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_try") 2>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_cv_lib_gcc___lshrdi3=yes
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20042 ac_cv_lib_gcc___lshrdi3=no
20045 rm -f core conftest.err conftest.$ac_objext \
20046 conftest$ac_exeext conftest.$ac_ext
20047 LIBS=$ac_check_lib_save_LIBS
20049 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20050 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20051 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20053 cat >>confdefs.h <<\_ACEOF
20054 #define HAVE___LSHRDI3 1
20059 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20060 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20061 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 ac_check_lib_save_LIBS=$LIBS
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20073 /* Override any GCC internal prototype to avoid an error.
20074 Use char because int might match the return type of a GCC
20075 builtin and then its argument prototype would still apply. */
20083 return __moddi3 ();
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_link") 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20103 { (case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_try") 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try='test -s conftest$ac_exeext'
20113 { (case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_try") 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20122 ac_cv_lib_gcc___moddi3=yes
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ac_cv_lib_gcc___moddi3=no
20130 rm -f core conftest.err conftest.$ac_objext \
20131 conftest$ac_exeext conftest.$ac_ext
20132 LIBS=$ac_check_lib_save_LIBS
20134 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20135 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20136 if test $ac_cv_lib_gcc___moddi3 = yes; then
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE___MODDI3 1
20144 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20145 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20146 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 ac_check_lib_save_LIBS=$LIBS
20151 cat >conftest.$ac_ext <<_ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20158 /* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply. */
20168 return __udivdi3 ();
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>conftest.er1
20182 grep -v '^ *+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest$ac_exeext'
20198 { (case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_try") 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_cv_lib_gcc___udivdi3=yes
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_cv_lib_gcc___udivdi3=no
20215 rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20219 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20220 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20221 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20223 cat >>confdefs.h <<\_ACEOF
20224 #define HAVE___UDIVDI3 1
20229 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20230 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20231 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 ac_check_lib_save_LIBS=$LIBS
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20243 /* Override any GCC internal prototype to avoid an error.
20244 Use char because int might match the return type of a GCC
20245 builtin and then its argument prototype would still apply. */
20253 return __umoddi3 ();
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest$ac_exeext'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_cv_lib_gcc___umoddi3=yes
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_cv_lib_gcc___umoddi3=no
20300 rm -f core conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20304 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20305 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20306 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE___UMODDI3 1
20315 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20316 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20317 if test "${ac_cv_lib_gcc___main+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 ac_check_lib_save_LIBS=$LIBS
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20329 /* Override any GCC internal prototype to avoid an error.
20330 Use char because int might match the return type of a GCC
20331 builtin and then its argument prototype would still apply. */
20344 rm -f conftest.$ac_objext conftest$ac_exeext
20345 if { (ac_try="$ac_link"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_link") 2>conftest.er1
20353 grep -v '^ *+' conftest.er1 >conftest.err
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } &&
20358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20359 { (case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_try") 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest$ac_exeext'
20369 { (case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_try") 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_lib_gcc___main=yes
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20383 ac_cv_lib_gcc___main=no
20386 rm -f core conftest.err conftest.$ac_objext \
20387 conftest$ac_exeext conftest.$ac_ext
20388 LIBS=$ac_check_lib_save_LIBS
20390 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20391 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20392 if test $ac_cv_lib_gcc___main = yes; then
20394 cat >>confdefs.h <<\_ACEOF
20395 #define HAVE___MAIN 1
20400 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20401 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20402 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 ac_check_lib_save_LIBS=$LIBS
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20414 /* Override any GCC internal prototype to avoid an error.
20415 Use char because int might match the return type of a GCC
20416 builtin and then its argument prototype would still apply. */
20424 return __cmpdi2 ();
20429 rm -f conftest.$ac_objext conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_link") 2>conftest.er1
20438 grep -v '^ *+' conftest.er1 >conftest.err
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20444 { (case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_try") 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; } &&
20453 { ac_try='test -s conftest$ac_exeext'
20454 { (case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_try") 2>&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; }; then
20463 ac_cv_lib_gcc___cmpdi2=yes
20465 echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20468 ac_cv_lib_gcc___cmpdi2=no
20471 rm -f core conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
20473 LIBS=$ac_check_lib_save_LIBS
20475 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20476 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20477 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20479 cat >>confdefs.h <<\_ACEOF
20480 #define HAVE___CMPDI2 1
20487 if test "$llvm_cv_os_type" = "MingW" ; then
20488 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20489 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20490 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20498 #include <windows.h>
20499 #include <imagehlp.h>
20500 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20501 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20505 rm -f conftest.$ac_objext
20506 if { (ac_try="$ac_compile"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_compile") 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20520 { (case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_try") 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest.$ac_objext'
20530 { (case "(($ac_try" in
20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535 (eval "$ac_try") 2>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); }; }; then
20540 { echo "$as_me:$LINENO: result: yes" >&5
20541 echo "${ECHO_T}yes" >&6; }
20542 llvm_cv_win32_elmcb_pcstr="PCSTR"
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20549 { echo "$as_me:$LINENO: result: no" >&5
20550 echo "${ECHO_T}no" >&6; }
20551 llvm_cv_win32_elmcb_pcstr="PSTR"
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20557 cat >>confdefs.h <<_ACEOF
20558 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20565 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20566 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20567 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 ac_cpp='$CXXCPP $CPPFLAGS'
20573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20577 cat >conftest.$ac_ext <<_ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20592 rm -f conftest.$ac_objext
20593 if { (ac_try="$ac_compile"
20594 case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_compile") 2>conftest.er1
20601 grep -v '^ *+' conftest.er1 >conftest.err
20603 cat conftest.err >&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } &&
20606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20607 { (case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_try") 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_try") 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 ac_cv_func_isnan_in_math_h=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_cv_func_isnan_in_math_h=no
20634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636 ac_cpp='$CPP $CPPFLAGS'
20637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20644 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20647 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20649 cat >>confdefs.h <<\_ACEOF
20650 #define HAVE_ISNAN_IN_MATH_H 1
20656 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20657 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20658 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 ac_cpp='$CXXCPP $CPPFLAGS'
20664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20668 cat >conftest.$ac_ext <<_ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20683 rm -f conftest.$ac_objext
20684 if { (ac_try="$ac_compile"
20685 case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690 (eval "$ac_compile") 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
20697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20698 { (case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_try") 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; } &&
20707 { ac_try='test -s conftest.$ac_objext'
20708 { (case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_try") 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20717 ac_cv_func_isnan_in_cmath=yes
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_func_isnan_in_cmath=no
20725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 ac_cpp='$CPP $CPPFLAGS'
20728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20734 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20735 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20737 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20739 cat >>confdefs.h <<\_ACEOF
20740 #define HAVE_ISNAN_IN_CMATH 1
20746 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20747 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20748 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 ac_cpp='$CXXCPP $CPPFLAGS'
20754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20768 float f; std::isnan(f);
20773 rm -f conftest.$ac_objext
20774 if { (ac_try="$ac_compile"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_compile") 2>conftest.er1
20782 grep -v '^ *+' conftest.er1 >conftest.err
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } &&
20787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20788 { (case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_try") 2>&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; } &&
20797 { ac_try='test -s conftest.$ac_objext'
20798 { (case "(($ac_try" in
20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800 *) ac_try_echo=$ac_try;;
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803 (eval "$ac_try") 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 ac_cv_func_std_isnan_in_cmath=yes
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_cv_func_std_isnan_in_cmath=no
20815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817 ac_cpp='$CPP $CPPFLAGS'
20818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20825 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20827 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_STD_ISNAN_IN_CMATH 1
20838 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20839 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20840 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 ac_cpp='$CXXCPP $CPPFLAGS'
20846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20850 cat >conftest.$ac_ext <<_ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20865 rm -f conftest.$ac_objext
20866 if { (ac_try="$ac_compile"
20867 case "(($ac_try" in
20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869 *) ac_try_echo=$ac_try;;
20871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872 (eval "$ac_compile") 2>conftest.er1
20874 grep -v '^ *+' conftest.er1 >conftest.err
20876 cat conftest.err >&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } &&
20879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20880 { (case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_try") 2>&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; } &&
20889 { ac_try='test -s conftest.$ac_objext'
20890 { (case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_try") 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_cv_func_isinf_in_math_h=yes
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ac_cv_func_isinf_in_math_h=no
20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909 ac_cpp='$CPP $CPPFLAGS'
20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20916 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20917 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20919 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_ISINF_IN_MATH_H 1
20928 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20929 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20930 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 ac_cpp='$CXXCPP $CPPFLAGS'
20936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20940 cat >conftest.$ac_ext <<_ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20955 rm -f conftest.$ac_objext
20956 if { (ac_try="$ac_compile"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_compile") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } &&
20969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20970 { (case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_try") 2>&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; } &&
20979 { ac_try='test -s conftest.$ac_objext'
20980 { (case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_try") 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }; then
20989 ac_cv_func_isinf_in_cmath=yes
20991 echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.$ac_ext >&5
20994 ac_cv_func_isinf_in_cmath=no
20997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20999 ac_cpp='$CPP $CPPFLAGS'
21000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21006 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21007 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21009 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21011 cat >>confdefs.h <<\_ACEOF
21012 #define HAVE_ISINF_IN_CMATH 1
21018 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21019 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21020 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21025 ac_cpp='$CXXCPP $CPPFLAGS'
21026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21030 cat >conftest.$ac_ext <<_ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21040 float f; std::isinf(f);
21045 rm -f conftest.$ac_objext
21046 if { (ac_try="$ac_compile"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_compile") 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } &&
21059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21060 { (case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_try") 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } &&
21069 { ac_try='test -s conftest.$ac_objext'
21070 { (case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075 (eval "$ac_try") 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; }; then
21079 ac_cv_func_std_isinf_in_cmath=yes
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 ac_cv_func_std_isinf_in_cmath=no
21087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21089 ac_cpp='$CPP $CPPFLAGS'
21090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21096 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21097 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21099 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21101 cat >>confdefs.h <<\_ACEOF
21102 #define HAVE_STD_ISINF_IN_CMATH 1
21108 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21109 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21110 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21115 ac_cpp='$CXXCPP $CPPFLAGS'
21116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 #include <ieeefp.h>
21130 float f; finite(f);
21135 rm -f conftest.$ac_objext
21136 if { (ac_try="$ac_compile"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_compile") 2>conftest.er1
21144 grep -v '^ *+' conftest.er1 >conftest.err
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } &&
21149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21150 { (case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_try") 2>&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; } &&
21159 { ac_try='test -s conftest.$ac_objext'
21160 { (case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_try") 2>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); }; }; then
21169 ac_cv_func_finite_in_ieeefp_h=yes
21171 echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21174 ac_cv_func_finite_in_ieeefp_h=no
21177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21179 ac_cpp='$CPP $CPPFLAGS'
21180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21187 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21189 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21191 cat >>confdefs.h <<\_ACEOF
21192 #define HAVE_FINITE_IN_IEEEFP_H 1
21199 if test "$llvm_cv_platform_type" = "Unix" ; then
21202 for ac_header in stdlib.h unistd.h
21204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 ac_res=`eval echo '${'$as_ac_Header'}'`
21212 { echo "$as_me:$LINENO: result: $ac_res" >&5
21213 echo "${ECHO_T}$ac_res" >&6; }
21215 # Is the header compilable?
21216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21218 cat >conftest.$ac_ext <<_ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 $ac_includes_default
21225 #include <$ac_header>
21227 rm -f conftest.$ac_objext
21228 if { (ac_try="$ac_compile"
21229 case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_compile") 2>conftest.er1
21236 grep -v '^ *+' conftest.er1 >conftest.err
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } &&
21241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21242 { (case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_try") 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; } &&
21251 { ac_try='test -s conftest.$ac_objext'
21252 { (case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_try") 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; }; then
21261 ac_header_compiler=yes
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_header_compiler=no
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21271 echo "${ECHO_T}$ac_header_compiler" >&6; }
21273 # Is the header present?
21274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 #include <$ac_header>
21284 if { (ac_try="$ac_cpp conftest.$ac_ext"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21292 grep -v '^ *+' conftest.er1 >conftest.err
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } >/dev/null; then
21297 if test -s conftest.err; then
21298 ac_cpp_err=$ac_c_preproc_warn_flag
21299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21306 if test -z "$ac_cpp_err"; then
21307 ac_header_preproc=yes
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ac_header_preproc=no
21315 rm -f conftest.err conftest.$ac_ext
21316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21317 echo "${ECHO_T}$ac_header_preproc" >&6; }
21319 # So? What about this header?
21320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21326 ac_header_preproc=yes
21329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21342 ## ------------------------------------ ##
21343 ## Report this to http://llvm.org/bugs/ ##
21344 ## ------------------------------------ ##
21346 ) | sed "s/^/$as_me: WARNING: /" >&2
21349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 eval "$as_ac_Header=\$ac_header_preproc"
21356 ac_res=`eval echo '${'$as_ac_Header'}'`
21357 { echo "$as_me:$LINENO: result: $ac_res" >&5
21358 echo "${ECHO_T}$ac_res" >&6; }
21361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21362 cat >>confdefs.h <<_ACEOF
21363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21371 for ac_func in getpagesize
21373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21379 cat >conftest.$ac_ext <<_ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21387 #define $ac_func innocuous_$ac_func
21389 /* System header to define __stub macros and hopefully few prototypes,
21390 which can conflict with char $ac_func (); below.
21391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21392 <limits.h> exists even on freestanding compilers. */
21395 # include <limits.h>
21397 # include <assert.h>
21402 /* Override any GCC internal prototype to avoid an error.
21403 Use char because int might match the return type of a GCC
21404 builtin and then its argument prototype would still apply. */
21409 /* The GNU C library defines this for functions which it implements
21410 to always fail with ENOSYS. Some functions are actually named
21411 something starting with __ and the normal name is an alias. */
21412 #if defined __stub_$ac_func || defined __stub___$ac_func
21419 return $ac_func ();
21424 rm -f conftest.$ac_objext conftest$ac_exeext
21425 if { (ac_try="$ac_link"
21426 case "(($ac_try" in
21427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428 *) ac_try_echo=$ac_try;;
21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431 (eval "$ac_link") 2>conftest.er1
21433 grep -v '^ *+' conftest.er1 >conftest.err
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
21438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21439 { (case "(($ac_try" in
21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441 *) ac_try_echo=$ac_try;;
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444 (eval "$ac_try") 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest$ac_exeext'
21449 { (case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_try") 2>&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; }; then
21458 eval "$as_ac_var=yes"
21460 echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21463 eval "$as_ac_var=no"
21466 rm -f core conftest.err conftest.$ac_objext \
21467 conftest$ac_exeext conftest.$ac_ext
21469 ac_res=`eval echo '${'$as_ac_var'}'`
21470 { echo "$as_me:$LINENO: result: $ac_res" >&5
21471 echo "${ECHO_T}$ac_res" >&6; }
21472 if test `eval echo '${'$as_ac_var'}'` = yes; then
21473 cat >>confdefs.h <<_ACEOF
21474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21480 { echo "$as_me:$LINENO: checking for working mmap" >&5
21481 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21482 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 if test "$cross_compiling" = yes; then
21486 ac_cv_func_mmap_fixed_mapped=no
21488 cat >conftest.$ac_ext <<_ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 $ac_includes_default
21495 /* malloc might have been renamed as rpl_malloc. */
21498 /* Thanks to Mike Haertel and Jim Avera for this test.
21499 Here is a matrix of mmap possibilities:
21500 mmap private not fixed
21501 mmap private fixed at somewhere currently unmapped
21502 mmap private fixed at somewhere already mapped
21503 mmap shared not fixed
21504 mmap shared fixed at somewhere currently unmapped
21505 mmap shared fixed at somewhere already mapped
21506 For private mappings, we should verify that changes cannot be read()
21507 back from the file, nor mmap's back from the file at a different
21508 address. (There have been systems where private was not correctly
21509 implemented like the infamous i386 svr4.0, and systems where the
21510 VM page cache was not coherent with the file system buffer cache
21511 like early versions of FreeBSD and possibly contemporary NetBSD.)
21512 For shared mappings, we should conversely verify that changes get
21513 propagated back to all the places they're supposed to be.
21515 Grep wants private fixed already mapped.
21516 The main things grep needs to know about mmap are:
21517 * does it exist and is it safe to write into the mmap'd area
21518 * how to use it (BSD variants) */
21521 #include <sys/mman.h>
21523 #if !STDC_HEADERS && !HAVE_STDLIB_H
21527 /* This mess was copied from the GNU getpagesize.h. */
21528 #if !HAVE_GETPAGESIZE
21529 /* Assume that all systems that can run configure have sys/param.h. */
21530 # if !HAVE_SYS_PARAM_H
21531 # define HAVE_SYS_PARAM_H 1
21534 # ifdef _SC_PAGESIZE
21535 # define getpagesize() sysconf(_SC_PAGESIZE)
21536 # else /* no _SC_PAGESIZE */
21537 # if HAVE_SYS_PARAM_H
21538 # include <sys/param.h>
21539 # ifdef EXEC_PAGESIZE
21540 # define getpagesize() EXEC_PAGESIZE
21541 # else /* no EXEC_PAGESIZE */
21543 # define getpagesize() NBPG * CLSIZE
21546 # endif /* no CLSIZE */
21547 # else /* no NBPG */
21549 # define getpagesize() NBPC
21550 # else /* no NBPC */
21552 # define getpagesize() PAGESIZE
21553 # endif /* PAGESIZE */
21554 # endif /* no NBPC */
21555 # endif /* no NBPG */
21556 # endif /* no EXEC_PAGESIZE */
21557 # else /* no HAVE_SYS_PARAM_H */
21558 # define getpagesize() 8192 /* punt totally */
21559 # endif /* no HAVE_SYS_PARAM_H */
21560 # endif /* no _SC_PAGESIZE */
21562 #endif /* no HAVE_GETPAGESIZE */
21567 char *data, *data2, *data3;
21571 pagesize = getpagesize ();
21573 /* First, make a file with some known garbage in it. */
21574 data = (char *) malloc (pagesize);
21577 for (i = 0; i < pagesize; ++i)
21578 *(data + i) = rand ();
21580 fd = creat ("conftest.mmap", 0600);
21583 if (write (fd, data, pagesize) != pagesize)
21587 /* Next, try to mmap the file at a fixed address which already has
21588 something else allocated at it. If we can, also make sure that
21589 we see the same garbage. */
21590 fd = open ("conftest.mmap", O_RDWR);
21593 data2 = (char *) malloc (2 * pagesize);
21596 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21597 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21598 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21600 for (i = 0; i < pagesize; ++i)
21601 if (*(data + i) != *(data2 + i))
21604 /* Finally, make sure that changes to the mapped area do not
21605 percolate back to the file as seen by read(). (This is a bug on
21606 some variants of i386 svr4.0.) */
21607 for (i = 0; i < pagesize; ++i)
21608 *(data2 + i) = *(data2 + i) + 1;
21609 data3 = (char *) malloc (pagesize);
21612 if (read (fd, data3, pagesize) != pagesize)
21614 for (i = 0; i < pagesize; ++i)
21615 if (*(data + i) != *(data3 + i))
21621 rm -f conftest$ac_exeext
21622 if { (ac_try="$ac_link"
21623 case "(($ac_try" in
21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625 *) ac_try_echo=$ac_try;;
21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628 (eval "$ac_link") 2>&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21632 { (case "(($ac_try" in
21633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634 *) ac_try_echo=$ac_try;;
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637 (eval "$ac_try") 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; }; then
21641 ac_cv_func_mmap_fixed_mapped=yes
21643 echo "$as_me: program exited with status $ac_status" >&5
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21647 ( exit $ac_status )
21648 ac_cv_func_mmap_fixed_mapped=no
21650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21655 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21656 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21657 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21659 cat >>confdefs.h <<\_ACEOF
21660 #define HAVE_MMAP 1
21664 rm -f conftest.mmap
21666 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21667 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21668 if test "${ac_cv_func_mmap_file+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 ac_cpp='$CPP $CPPFLAGS'
21673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21677 if test "$cross_compiling" = yes; then
21678 ac_cv_func_mmap_file=no
21680 cat >conftest.$ac_ext <<_ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21688 #include <sys/types.h>
21689 #include <sys/mman.h>
21697 fd = creat ("foo",0777);
21698 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21700 return (fd != (int) MAP_FAILED);
21705 rm -f conftest$ac_exeext
21706 if { (ac_try="$ac_link"
21707 case "(($ac_try" in
21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709 *) ac_try_echo=$ac_try;;
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712 (eval "$ac_link") 2>&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21716 { (case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_try") 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 ac_cv_func_mmap_file=yes
21727 echo "$as_me: program exited with status $ac_status" >&5
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21731 ( exit $ac_status )
21732 ac_cv_func_mmap_file=no
21734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21739 ac_cpp='$CPP $CPPFLAGS'
21740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21746 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21747 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21748 if test "$ac_cv_func_mmap_file" = yes; then
21750 cat >>confdefs.h <<\_ACEOF
21751 #define HAVE_MMAP_FILE
21758 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21759 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21760 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 if test "$llvm_cv_os_type" = "Interix" ; then
21764 ac_cv_need_dev_zero_for_mmap=yes
21766 ac_cv_need_dev_zero_for_mmap=no
21770 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21771 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21772 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21774 cat >>confdefs.h <<\_ACEOF
21775 #define NEED_DEV_ZERO_FOR_MMAP 1
21780 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21782 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21783 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21785 if test "$ac_cv_func_mmap_file" = "no"
21787 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21788 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21792 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21793 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21795 ac_cpp='$CXXCPP $CPPFLAGS'
21796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21800 cat >conftest.$ac_ext <<_ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21809 volatile unsigned long val = 1;
21810 __sync_synchronize();
21811 __sync_val_compare_and_swap(&val, 1, 0);
21812 __sync_add_and_fetch(&val, 1);
21813 __sync_sub_and_fetch(&val, 1);
21819 rm -f conftest.$ac_objext conftest$ac_exeext
21820 if { (ac_try="$ac_link"
21821 case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_link") 2>conftest.er1
21828 grep -v '^ *+' conftest.er1 >conftest.err
21830 cat conftest.err >&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } &&
21833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21834 { (case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_try") 2>&5
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; } &&
21843 { ac_try='test -s conftest$ac_exeext'
21844 { (case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_try") 2>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21854 { echo "$as_me:$LINENO: result: yes" >&5
21855 echo "${ECHO_T}yes" >&6; }
21857 cat >>confdefs.h <<\_ACEOF
21858 #define LLVM_HAS_ATOMICS 1
21863 echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21867 { echo "$as_me:$LINENO: result: no" >&5
21868 echo "${ECHO_T}no" >&6; }
21870 cat >>confdefs.h <<\_ACEOF
21871 #define LLVM_HAS_ATOMICS 0
21874 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21875 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21879 rm -f core conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21882 ac_cpp='$CPP $CPPFLAGS'
21883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21889 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21890 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21891 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21892 if test "${llvm_cv_linux_mixed+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21896 ac_cpp='$CPP $CPPFLAGS'
21897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21901 cat >conftest.$ac_ext <<_ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21908 error: Not x86-64 even if uname says so!
21919 rm -f conftest.$ac_objext
21920 if { (ac_try="$ac_compile"
21921 case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_compile") 2>conftest.er1
21928 grep -v '^ *+' conftest.er1 >conftest.err
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } &&
21933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21934 { (case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_try") 2>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; } &&
21943 { ac_try='test -s conftest.$ac_objext'
21944 { (case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_try") 2>&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 llvm_cv_linux_mixed=no
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 llvm_cv_linux_mixed=yes
21961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21963 ac_cpp='$CPP $CPPFLAGS'
21964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21970 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21971 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21973 if test "$llvm_cv_linux_mixed" = "yes"; then
21974 llvm_cv_target_arch="x86"
21980 for ac_func in __dso_handle
21982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21988 cat >conftest.$ac_ext <<_ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21996 #define $ac_func innocuous_$ac_func
21998 /* System header to define __stub macros and hopefully few prototypes,
21999 which can conflict with char $ac_func (); below.
22000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22001 <limits.h> exists even on freestanding compilers. */
22004 # include <limits.h>
22006 # include <assert.h>
22011 /* Override any GCC internal prototype to avoid an error.
22012 Use char because int might match the return type of a GCC
22013 builtin and then its argument prototype would still apply. */
22018 /* The GNU C library defines this for functions which it implements
22019 to always fail with ENOSYS. Some functions are actually named
22020 something starting with __ and the normal name is an alias. */
22021 #if defined __stub_$ac_func || defined __stub___$ac_func
22028 return $ac_func ();
22033 rm -f conftest.$ac_objext conftest$ac_exeext
22034 if { (ac_try="$ac_link"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_link") 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } &&
22047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22048 { (case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_try") 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; } &&
22057 { ac_try='test -s conftest$ac_exeext'
22058 { (case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_try") 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 eval "$as_ac_var=yes"
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22072 eval "$as_ac_var=no"
22075 rm -f core conftest.err conftest.$ac_objext \
22076 conftest$ac_exeext conftest.$ac_ext
22078 ac_res=`eval echo '${'$as_ac_var'}'`
22079 { echo "$as_me:$LINENO: result: $ac_res" >&5
22080 echo "${ECHO_T}$ac_res" >&6; }
22081 if test `eval echo '${'$as_ac_var'}'` = yes; then
22082 cat >>confdefs.h <<_ACEOF
22083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22090 SHLIBEXT=$libltdl_cv_shlibext
22093 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22096 if test "${prefix}" = "NONE" ; then
22097 prefix="/usr/local"
22099 eval LLVM_PREFIX="${prefix}";
22100 eval LLVM_BINDIR="${prefix}/bin";
22101 eval LLVM_DATADIR="${prefix}/share/llvm";
22102 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22103 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22104 eval LLVM_INCLUDEDIR="${prefix}/include";
22105 eval LLVM_INFODIR="${prefix}/info";
22106 eval LLVM_MANDIR="${prefix}/man";
22107 LLVM_CONFIGTIME=`date`
22118 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22119 LLVM_CONFIGTIME="(timestamp not enabled)"
22123 cat >>confdefs.h <<_ACEOF
22124 #define LLVM_PREFIX "$LLVM_PREFIX"
22128 cat >>confdefs.h <<_ACEOF
22129 #define LLVM_BINDIR "$LLVM_BINDIR"
22133 cat >>confdefs.h <<_ACEOF
22134 #define LLVM_DATADIR "$LLVM_DATADIR"
22138 cat >>confdefs.h <<_ACEOF
22139 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22143 cat >>confdefs.h <<_ACEOF
22144 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22148 cat >>confdefs.h <<_ACEOF
22149 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22153 cat >>confdefs.h <<_ACEOF
22154 #define LLVM_INFODIR "$LLVM_INFODIR"
22158 cat >>confdefs.h <<_ACEOF
22159 #define LLVM_MANDIR "$LLVM_MANDIR"
22163 cat >>confdefs.h <<_ACEOF
22164 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22168 cat >>confdefs.h <<_ACEOF
22169 #define LLVM_HOST_TRIPLE "$host"
22173 cat >>confdefs.h <<_ACEOF
22174 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22178 if test "$BINDINGS_TO_BUILD" = auto ; then
22179 BINDINGS_TO_BUILD=""
22180 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22181 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22184 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22190 binding_prereqs_failed=0
22191 for a_binding in $BINDINGS_TO_BUILD ; do
22192 case "$a_binding" in
22194 if test "x$OCAMLC" = x ; then
22195 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22196 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22197 binding_prereqs_failed=1
22199 if test "x$OCAMLDEP" = x ; then
22200 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22201 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22202 binding_prereqs_failed=1
22204 if test "x$OCAMLOPT" = x ; then
22205 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22206 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22208 if test "x$with_ocaml_libdir" != xauto ; then
22209 OCAML_LIBDIR=$with_ocaml_libdir
22212 ocaml_stdlib="`"$OCAMLC" -where`"
22213 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22215 # ocaml stdlib is beneath our prefix; use stdlib
22216 OCAML_LIBDIR=$ocaml_stdlib
22219 # ocaml stdlib is outside our prefix; use libdir/ocaml
22220 OCAML_LIBDIR=${prefix}/lib/ocaml
22227 if test "$binding_prereqs_failed" = 1 ; then
22228 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22229 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22230 { (exit 1); exit 1; }; }
22233 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22234 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22235 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22239 ac_cpp='$CXXCPP $CPPFLAGS'
22240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22244 oldcxxflags="$CXXFLAGS"
22245 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22246 cat >conftest.$ac_ext <<_ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22252 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22261 rm -f conftest.$ac_objext
22262 if { (ac_try="$ac_compile"
22263 case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_compile") 2>conftest.er1
22270 grep -v '^ *+' conftest.er1 >conftest.err
22272 cat conftest.err >&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } &&
22275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22276 { (case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_try") 2>&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; } &&
22285 { ac_try='test -s conftest.$ac_objext'
22286 { (case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_try") 2>&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); }; }; then
22295 llvm_cv_cxx_visibility_inlines_hidden=yes
22297 echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22300 llvm_cv_cxx_visibility_inlines_hidden=no
22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304 CXXFLAGS="$oldcxxflags"
22306 ac_cpp='$CPP $CPPFLAGS'
22307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22313 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22314 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22315 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22316 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22319 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22324 if test "$llvm_cv_link_use_r" = "yes" ; then
22331 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22332 RDYNAMIC="-rdynamic"
22339 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22346 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22348 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22350 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22352 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22354 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22357 ac_config_files="$ac_config_files Makefile.config"
22360 ac_config_files="$ac_config_files llvm.spec"
22363 ac_config_files="$ac_config_files docs/doxygen.cfg"
22366 if test "${clang_src_root}" = ""; then
22367 clang_src_root="$srcdir/tools/clang"
22369 if test -f ${clang_src_root}/README.txt; then
22370 configh="include/clang/Config/config.h"
22371 doxy="docs/doxygen.cfg"
22372 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22374 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22378 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22381 test "x$program_prefix" = "xNONE" && program_prefix=""
22385 ac_config_commands="$ac_config_commands setup"
22387 ac_config_commands="$ac_config_commands Makefile"
22390 ac_config_commands="$ac_config_commands Makefile.common"
22393 ac_config_commands="$ac_config_commands examples/Makefile"
22396 ac_config_commands="$ac_config_commands lib/Makefile"
22399 ac_config_commands="$ac_config_commands runtime/Makefile"
22402 ac_config_commands="$ac_config_commands test/Makefile"
22405 ac_config_commands="$ac_config_commands test/Makefile.tests"
22408 ac_config_commands="$ac_config_commands unittests/Makefile"
22411 ac_config_commands="$ac_config_commands tools/Makefile"
22414 ac_config_commands="$ac_config_commands utils/Makefile"
22417 ac_config_commands="$ac_config_commands projects/Makefile"
22420 ac_config_commands="$ac_config_commands bindings/Makefile"
22423 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22427 cat >confcache <<\_ACEOF
22428 # This file is a shell script that caches the results of configure
22429 # tests run on this system so they can be shared between configure
22430 # scripts and configure runs, see configure's option --config-cache.
22431 # It is not useful on other systems. If it contains results you don't
22432 # want to keep, you may remove or edit it.
22434 # config.status only pays attention to the cache file if you give it
22435 # the --recheck option to rerun configure.
22437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22439 # following values.
22443 # The following way of writing the cache mishandles newlines in values,
22444 # but we know of no workaround that is simple, portable, and efficient.
22445 # So, we kill variables containing newlines.
22446 # Ultrix sh set writes to stderr and can't be redirected directly,
22447 # and sets the high bit in the cache file unless we assign to the vars.
22449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22450 eval ac_val=\$$ac_var
22454 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22455 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22458 _ | IFS | as_nl) ;; #(
22459 *) $as_unset $ac_var ;;
22465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22466 *${as_nl}ac_space=\ *)
22467 # `set' does not quote correctly, so add quotes (double-quote
22468 # substitution turns \\\\ into \\, and sed turns \\ into \).
22471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22474 # `set' quotes correctly as required by POSIX, so do not add quotes.
22475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22489 if test -w "$cache_file"; then
22490 test "x$cache_file" != "x/dev/null" &&
22491 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22492 echo "$as_me: updating cache $cache_file" >&6;}
22493 cat confcache >$cache_file
22495 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22496 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22502 # Let make expand exec_prefix.
22503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22505 DEFS=-DHAVE_CONFIG_H
22509 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22510 # 1. Remove the extension, and $U if already installed.
22511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22512 ac_i=`echo "$ac_i" | sed "$ac_script"`
22513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22514 # will be set to the directory where LIBOBJS objects are built.
22515 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22516 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22518 LIBOBJS=$ac_libobjs
22520 LTLIBOBJS=$ac_ltlibobjs
22523 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22524 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22525 Usually this means the macro was only invoked conditionally." >&5
22526 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22527 Usually this means the macro was only invoked conditionally." >&2;}
22528 { (exit 1); exit 1; }; }
22530 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22531 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22532 Usually this means the macro was only invoked conditionally." >&5
22533 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22534 Usually this means the macro was only invoked conditionally." >&2;}
22535 { (exit 1); exit 1; }; }
22538 : ${CONFIG_STATUS=./config.status}
22539 ac_clean_files_save=$ac_clean_files
22540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22541 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22542 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22543 cat >$CONFIG_STATUS <<_ACEOF
22545 # Generated by $as_me.
22546 # Run this file to recreate the current configuration.
22547 # Compiler output produced by configure, useful for debugging
22548 # configure, is in config.log if it exists.
22551 ac_cs_recheck=false
22553 SHELL=\${CONFIG_SHELL-$SHELL}
22556 cat >>$CONFIG_STATUS <<\_ACEOF
22557 ## --------------------- ##
22558 ## M4sh Initialization. ##
22559 ## --------------------- ##
22561 # Be Bourne compatible
22562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22565 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22566 # is contrary to our usage. Disable this feature.
22567 alias -g '${1+"$@"}'='"$@"'
22568 setopt NO_GLOB_SUBST
22570 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22572 BIN_SH=xpg4; export BIN_SH # for Tru64
22573 DUALCASE=1; export DUALCASE # for MKS sh
22577 # Avoid depending upon Character Ranges.
22578 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22581 as_cr_digits='0123456789'
22582 as_cr_alnum=$as_cr_Letters$as_cr_digits
22584 # The user is always right.
22585 if test "${PATH_SEPARATOR+set}" != set; then
22586 echo "#! /bin/sh" >conf$$.sh
22587 echo "exit 0" >>conf$$.sh
22589 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22597 # Support unset when possible.
22598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22606 # We need space, tab and new line, in precisely that order. Quoting is
22607 # there to prevent editors from complaining about space-tab.
22608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22609 # splitting by setting IFS to empty value.)
22614 # Find who we are. Look in the path if we contain no directory separator.
22616 *[\\/]* ) as_myself=$0 ;;
22617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22618 for as_dir in $PATH
22621 test -z "$as_dir" && as_dir=.
22622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22628 # We did not find ourselves, most probably we were run as `sh COMMAND'
22629 # in which case we are not to be found in the path.
22630 if test "x$as_myself" = x; then
22633 if test ! -f "$as_myself"; then
22634 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22635 { (exit 1); exit 1; }
22638 # Work around bugs in pre-3.0 UWIN ksh.
22639 for as_var in ENV MAIL MAILPATH
22640 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22648 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22649 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22650 LC_TELEPHONE LC_TIME
22652 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22653 eval $as_var=C; export $as_var
22655 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22659 # Required to use basename.
22660 if expr a : '\(a\)' >/dev/null 2>&1 &&
22661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22668 as_basename=basename
22674 # Name of the executable.
22675 as_me=`$as_basename -- "$0" ||
22676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22677 X"$0" : 'X\(//\)$' \| \
22678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22680 sed '/^.*\/\([^/][^/]*\)\/*$/{
22699 as_lineno_1=$LINENO
22700 as_lineno_2=$LINENO
22701 test "x$as_lineno_1" != "x$as_lineno_2" &&
22702 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22704 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22705 # uniformly replaced by the line number. The first 'sed' inserts a
22706 # line-number line after each line using $LINENO; the second 'sed'
22707 # does the real work. The second script uses 'N' to pair each
22708 # line-number line with the line containing $LINENO, and appends
22709 # trailing '-' during substitution so that $LINENO is not a special
22710 # case at line end.
22711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22712 # scripts with optimization help from Paolo Bonzini. Blame Lee
22713 # E. McMahon (1931-1989) for sed's syntax. :-)
22725 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22728 ' >$as_me.lineno &&
22729 chmod +x "$as_me.lineno" ||
22730 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22731 { (exit 1); exit 1; }; }
22733 # Don't try to exec as it changes $[0], causing all sort of problems
22734 # (the dirname of $[0] is not the place where we might find the
22735 # original and so on. Autoconf is especially sensitive to this).
22736 . "./$as_me.lineno"
22737 # Exit status is that of the last command.
22742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22748 ECHO_C= ECHO_N= ECHO_T=
22749 case `echo -n x` in
22751 case `echo 'x\c'` in
22752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22759 if expr a : '\(a\)' >/dev/null 2>&1 &&
22760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22766 rm -f conf$$ conf$$.exe conf$$.file
22767 if test -d conf$$.dir; then
22768 rm -f conf$$.dir/conf$$.file
22774 if ln -s conf$$.file conf$$ 2>/dev/null; then
22776 # ... but there are two gotchas:
22777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22779 # In both cases, we have to default to `cp -p'.
22780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22782 elif ln conf$$.file conf$$ 2>/dev/null; then
22787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22788 rmdir conf$$.dir 2>/dev/null
22790 if mkdir -p . 2>/dev/null; then
22793 test -d ./-p && rmdir ./-p
22797 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22798 # systems may use methods other than mode bits to determine executability.
22799 cat >conf$$.file <<_ASEOF
22803 chmod +x conf$$.file
22804 if test -x conf$$.file >/dev/null 2>&1; then
22805 as_executable_p="test -x"
22811 # Sed expression to map a string onto a valid CPP name.
22812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22814 # Sed expression to map a string onto a valid variable name.
22815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22820 # Save the log message, to keep $[0] and so on meaningful, and to
22821 # report actual input values of CONFIG_FILES etc. instead of their
22822 # values after options handling.
22824 This file was extended by LLVM $as_me 3.4svn, which was
22825 generated by GNU Autoconf 2.60. Invocation command line was
22827 CONFIG_FILES = $CONFIG_FILES
22828 CONFIG_HEADERS = $CONFIG_HEADERS
22829 CONFIG_LINKS = $CONFIG_LINKS
22830 CONFIG_COMMANDS = $CONFIG_COMMANDS
22833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22838 cat >>$CONFIG_STATUS <<_ACEOF
22839 # Files that config.status was made for.
22840 config_files="$ac_config_files"
22841 config_headers="$ac_config_headers"
22842 config_commands="$ac_config_commands"
22846 cat >>$CONFIG_STATUS <<\_ACEOF
22848 \`$as_me' instantiates files from templates according to the
22849 current configuration.
22851 Usage: $0 [OPTIONS] [FILE]...
22853 -h, --help print this help, then exit
22854 -V, --version print version number, then exit
22855 -q, --quiet do not print progress messages
22856 -d, --debug don't remove temporary files
22857 --recheck update $as_me by reconfiguring in the same conditions
22858 --file=FILE[:TEMPLATE]
22859 instantiate the configuration file FILE
22860 --header=FILE[:TEMPLATE]
22861 instantiate the configuration header FILE
22863 Configuration files:
22866 Configuration headers:
22869 Configuration commands:
22872 Report bugs to <bug-autoconf@gnu.org>."
22875 cat >>$CONFIG_STATUS <<_ACEOF
22877 LLVM config.status 3.4svn
22878 configured by $0, generated by GNU Autoconf 2.60,
22879 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22881 Copyright (C) 2006 Free Software Foundation, Inc.
22882 This config.status script is free software; the Free Software Foundation
22883 gives unlimited permission to copy, distribute and modify it."
22890 cat >>$CONFIG_STATUS <<\_ACEOF
22891 # If no file are specified by the user, then we need to provide default
22892 # value. By we need to know if files were specified by the user.
22898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22910 # Handling of the options.
22911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22914 echo "$ac_cs_version"; exit ;;
22915 --debug | --debu | --deb | --de | --d | -d )
22917 --file | --fil | --fi | --f )
22919 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22920 ac_need_defaults=false;;
22921 --header | --heade | --head | --hea )
22923 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22924 ac_need_defaults=false;;
22926 # Conflict between --help and --header
22927 { echo "$as_me: error: ambiguous option: $1
22928 Try \`$0 --help' for more information." >&2
22929 { (exit 1); exit 1; }; };;
22930 --help | --hel | -h )
22931 echo "$ac_cs_usage"; exit ;;
22932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22936 # This is an error.
22937 -*) { echo "$as_me: error: unrecognized option: $1
22938 Try \`$0 --help' for more information." >&2
22939 { (exit 1); exit 1; }; } ;;
22941 *) ac_config_targets="$ac_config_targets $1"
22942 ac_need_defaults=false ;;
22948 ac_configure_extra_args=
22950 if $ac_cs_silent; then
22952 ac_configure_extra_args="$ac_configure_extra_args --silent"
22956 cat >>$CONFIG_STATUS <<_ACEOF
22957 if \$ac_cs_recheck; then
22958 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22959 CONFIG_SHELL=$SHELL
22960 export CONFIG_SHELL
22961 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22965 cat >>$CONFIG_STATUS <<\_ACEOF
22969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22970 ## Running $as_me. ##
22976 cat >>$CONFIG_STATUS <<_ACEOF
22980 llvm_src="${srcdir}"
22984 cat >>$CONFIG_STATUS <<\_ACEOF
22986 # Handling of arguments.
22987 for ac_config_target in $ac_config_targets
22989 case $ac_config_target in
22990 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22991 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22992 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22993 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22994 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22995 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22996 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22997 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22998 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22999 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23000 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23001 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23002 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23003 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23004 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23005 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23006 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23007 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23008 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23009 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23010 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23011 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23012 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23013 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23014 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23015 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23016 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23019 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23020 { (exit 1); exit 1; }; };;
23025 # If the user did not use the arguments to specify the items to instantiate,
23026 # then the envvar interface is used. Set only those that are not.
23027 # We use the long form for the default assignment because of an extremely
23028 # bizarre bug on SunOS 4.1.3.
23029 if $ac_need_defaults; then
23030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23035 # Have a temporary directory for convenience. Make it in the build tree
23036 # simply because there is no reason against having it here, and in addition,
23037 # creating and moving files from /tmp can sometimes cause problems.
23038 # Hook for its removal unless debugging.
23039 # Note that there is a small window in which the directory will not be cleaned:
23040 # after its creation but before its name has been assigned to `$tmp'.
23044 trap 'exit_status=$?
23045 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23047 trap '{ (exit 1); exit 1; }' 1 2 13 15
23049 # Create a (secure) tmp directory for tmp files.
23052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23053 test -n "$tmp" && test -d "$tmp"
23056 tmp=./conf$$-$RANDOM
23057 (umask 077 && mkdir "$tmp")
23060 echo "$me: cannot create a temporary directory in ." >&2
23061 { (exit 1); exit 1; }
23065 # Set up the sed scripts for CONFIG_FILES section.
23068 # No need to generate the scripts if there are no CONFIG_FILES.
23069 # This happens for instance when ./config.status config.h
23070 if test -n "$CONFIG_FILES"; then
23077 for ac_last_try in false false false false false :; do
23078 cat >conf$$subs.sed <<_ACEOF
23079 SHELL!$SHELL$ac_delim
23080 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23081 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23082 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23083 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23084 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23085 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23086 exec_prefix!$exec_prefix$ac_delim
23087 prefix!$prefix$ac_delim
23088 program_transform_name!$program_transform_name$ac_delim
23089 bindir!$bindir$ac_delim
23090 sbindir!$sbindir$ac_delim
23091 libexecdir!$libexecdir$ac_delim
23092 datarootdir!$datarootdir$ac_delim
23093 datadir!$datadir$ac_delim
23094 sysconfdir!$sysconfdir$ac_delim
23095 sharedstatedir!$sharedstatedir$ac_delim
23096 localstatedir!$localstatedir$ac_delim
23097 includedir!$includedir$ac_delim
23098 oldincludedir!$oldincludedir$ac_delim
23099 docdir!$docdir$ac_delim
23100 infodir!$infodir$ac_delim
23101 htmldir!$htmldir$ac_delim
23102 dvidir!$dvidir$ac_delim
23103 pdfdir!$pdfdir$ac_delim
23104 psdir!$psdir$ac_delim
23105 libdir!$libdir$ac_delim
23106 localedir!$localedir$ac_delim
23107 mandir!$mandir$ac_delim
23108 DEFS!$DEFS$ac_delim
23109 ECHO_C!$ECHO_C$ac_delim
23110 ECHO_N!$ECHO_N$ac_delim
23111 ECHO_T!$ECHO_T$ac_delim
23112 LIBS!$LIBS$ac_delim
23113 build_alias!$build_alias$ac_delim
23114 host_alias!$host_alias$ac_delim
23115 target_alias!$target_alias$ac_delim
23116 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23118 CFLAGS!$CFLAGS$ac_delim
23119 LDFLAGS!$LDFLAGS$ac_delim
23120 CPPFLAGS!$CPPFLAGS$ac_delim
23121 ac_ct_CC!$ac_ct_CC$ac_delim
23122 EXEEXT!$EXEEXT$ac_delim
23123 OBJEXT!$OBJEXT$ac_delim
23125 CXXFLAGS!$CXXFLAGS$ac_delim
23126 ac_ct_CXX!$ac_ct_CXX$ac_delim
23128 subdirs!$subdirs$ac_delim
23129 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23130 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23131 build!$build$ac_delim
23132 build_cpu!$build_cpu$ac_delim
23133 build_vendor!$build_vendor$ac_delim
23134 build_os!$build_os$ac_delim
23135 host!$host$ac_delim
23136 host_cpu!$host_cpu$ac_delim
23137 host_vendor!$host_vendor$ac_delim
23138 host_os!$host_os$ac_delim
23139 target!$target$ac_delim
23140 target_cpu!$target_cpu$ac_delim
23141 target_vendor!$target_vendor$ac_delim
23142 target_os!$target_os$ac_delim
23144 HOST_OS!$HOST_OS$ac_delim
23145 TARGET_OS!$TARGET_OS$ac_delim
23146 LINKALL!$LINKALL$ac_delim
23147 NOLINKALL!$NOLINKALL$ac_delim
23148 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23149 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23150 ARCH!$ARCH$ac_delim
23151 HOST_ARCH!$HOST_ARCH$ac_delim
23152 ENDIAN!$ENDIAN$ac_delim
23153 GREP!$GREP$ac_delim
23154 EGREP!$EGREP$ac_delim
23155 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23156 BUILD_CC!$BUILD_CC$ac_delim
23157 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23158 BUILD_CXX!$BUILD_CXX$ac_delim
23159 CVSBUILD!$CVSBUILD$ac_delim
23160 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23161 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23162 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23163 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23164 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23165 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23166 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23167 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23168 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23169 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23170 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23171 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23172 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23173 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23174 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23180 elif $ac_last_try; then
23181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23183 { (exit 1); exit 1; }; }
23185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23189 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23190 if test -n "$ac_eof"; then
23191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23192 ac_eof=`expr $ac_eof + 1`
23195 cat >>$CONFIG_STATUS <<_ACEOF
23196 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23200 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23201 s/^/s,@/; s/!/@,|#_!!_#|/
23204 s/'"$ac_delim"'$/,g/; t
23206 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23207 ' >>$CONFIG_STATUS <conf$$subs.sed
23208 rm -f conf$$subs.sed
23209 cat >>$CONFIG_STATUS <<_ACEOF
23215 for ac_last_try in false false false false false :; do
23216 cat >conf$$subs.sed <<_ACEOF
23217 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23218 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23219 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23220 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23221 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23222 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23223 ENABLE_PIC!$ENABLE_PIC$ac_delim
23224 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23225 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23226 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23227 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23228 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23229 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23230 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23231 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23232 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23233 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23234 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23235 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23236 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23237 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23238 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23240 ifGNUmake!$ifGNUmake$ac_delim
23241 LN_S!$LN_S$ac_delim
23244 DATE!$DATE$ac_delim
23245 FIND!$FIND$ac_delim
23246 MKDIR!$MKDIR$ac_delim
23248 RANLIB!$RANLIB$ac_delim
23253 BINPWD!$BINPWD$ac_delim
23254 GRAPHVIZ!$GRAPHVIZ$ac_delim
23257 NEATO!$NEATO$ac_delim
23258 TWOPI!$TWOPI$ac_delim
23259 CIRCO!$CIRCO$ac_delim
23261 DOTTY!$DOTTY$ac_delim
23262 XDOT!$XDOT$ac_delim
23263 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23264 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23265 INSTALL_DATA!$INSTALL_DATA$ac_delim
23266 BZIP2!$BZIP2$ac_delim
23268 DOXYGEN!$DOXYGEN$ac_delim
23269 GROFF!$GROFF$ac_delim
23270 GZIPBIN!$GZIPBIN$ac_delim
23271 PDFROFF!$PDFROFF$ac_delim
23273 OCAMLC!$OCAMLC$ac_delim
23274 OCAMLOPT!$OCAMLOPT$ac_delim
23275 OCAMLDEP!$OCAMLDEP$ac_delim
23276 OCAMLDOC!$OCAMLDOC$ac_delim
23278 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23279 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23280 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23281 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23282 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23283 LIBADD_DL!$LIBADD_DL$ac_delim
23284 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23285 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23286 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23287 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23288 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23289 PYTHON!$PYTHON$ac_delim
23290 USE_UDIS86!$USE_UDIS86$ac_delim
23291 USE_OPROFILE!$USE_OPROFILE$ac_delim
23292 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23293 XML2CONFIG!$XML2CONFIG$ac_delim
23294 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23295 LIBXML2_INC!$LIBXML2_INC$ac_delim
23296 CXXCPP!$CXXCPP$ac_delim
23297 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23298 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23299 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23300 MMAP_FILE!$MMAP_FILE$ac_delim
23301 SHLIBEXT!$SHLIBEXT$ac_delim
23302 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23303 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23304 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23305 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23306 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23307 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23308 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23309 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23310 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23311 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23312 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23313 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23316 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23318 elif $ac_last_try; then
23319 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23320 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23321 { (exit 1); exit 1; }; }
23323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23327 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23328 if test -n "$ac_eof"; then
23329 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23330 ac_eof=`expr $ac_eof + 1`
23333 cat >>$CONFIG_STATUS <<_ACEOF
23334 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23338 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23339 s/^/s,@/; s/!/@,|#_!!_#|/
23342 s/'"$ac_delim"'$/,g/; t
23344 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23345 ' >>$CONFIG_STATUS <conf$$subs.sed
23346 rm -f conf$$subs.sed
23347 cat >>$CONFIG_STATUS <<_ACEOF
23353 for ac_last_try in false false false false false :; do
23354 cat >conf$$subs.sed <<_ACEOF
23355 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23356 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23357 RPATH!$RPATH$ac_delim
23358 RDYNAMIC!$RDYNAMIC$ac_delim
23359 program_prefix!$program_prefix$ac_delim
23360 LIBOBJS!$LIBOBJS$ac_delim
23361 LTLIBOBJS!$LTLIBOBJS$ac_delim
23364 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23366 elif $ac_last_try; then
23367 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23368 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23369 { (exit 1); exit 1; }; }
23371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23375 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23376 if test -n "$ac_eof"; then
23377 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23378 ac_eof=`expr $ac_eof + 1`
23381 cat >>$CONFIG_STATUS <<_ACEOF
23382 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23386 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23387 s/^/s,@/; s/!/@,|#_!!_#|/
23390 s/'"$ac_delim"'$/,g/; t
23392 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23393 ' >>$CONFIG_STATUS <conf$$subs.sed
23394 rm -f conf$$subs.sed
23395 cat >>$CONFIG_STATUS <<_ACEOF
23402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23404 # trailing colons and then remove the whole line if VPATH becomes empty
23405 # (actually we leave an empty line to preserve line numbers).
23406 if test "x$srcdir" = x.; then
23407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23408 s/:*\$(srcdir):*/:/
23409 s/:*\${srcdir}:*/:/
23411 s/^\([^=]*=[ ]*\):*/\1/
23417 cat >>$CONFIG_STATUS <<\_ACEOF
23418 fi # test -n "$CONFIG_FILES"
23421 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23424 :[FHLC]) ac_mode=$ac_tag; continue;;
23426 case $ac_mode$ac_tag in
23428 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23429 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23430 { (exit 1); exit 1; }; };;
23431 :[FH]-) ac_tag=-:-;;
23432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23449 -) ac_f="$tmp/stdin";;
23450 *) # Look for the file first in the build tree, then in the source tree
23451 # (if the path is not absolute). The absolute path cannot be DOS-style,
23452 # because $ac_f cannot contain `:'.
23456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23458 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23459 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23460 { (exit 1); exit 1; }; };;
23462 ac_file_inputs="$ac_file_inputs $ac_f"
23465 # Let's still pretend it is `configure' which instantiates (i.e., don't
23466 # use $as_me), people would be surprised to read:
23467 # /* config.h. Generated by config.status. */
23468 configure_input="Generated from "`IFS=:
23469 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23470 if test x"$ac_file" != x-; then
23471 configure_input="$ac_file. $configure_input"
23472 { echo "$as_me:$LINENO: creating $ac_file" >&5
23473 echo "$as_me: creating $ac_file" >&6;}
23477 *:-:* | *:-) cat >"$tmp/stdin";;
23482 ac_dir=`$as_dirname -- "$ac_file" ||
23483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23484 X"$ac_file" : 'X\(//\)[^/]' \| \
23485 X"$ac_file" : 'X\(//\)$' \| \
23486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23492 /^X\(\/\/\)[^/].*/{
23507 -*) as_dir=./$as_dir;;
23509 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23513 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23514 *) as_qdir=$as_dir;;
23516 as_dirs="'$as_qdir' $as_dirs"
23517 as_dir=`$as_dirname -- "$as_dir" ||
23518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23519 X"$as_dir" : 'X\(//\)[^/]' \| \
23520 X"$as_dir" : 'X\(//\)$' \| \
23521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23527 /^X\(\/\/\)[^/].*/{
23540 test -d "$as_dir" && break
23542 test -z "$as_dirs" || eval "mkdir $as_dirs"
23543 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23544 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23545 { (exit 1); exit 1; }; }; }
23549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23552 # A ".." for each directory in $ac_dir_suffix.
23553 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23554 case $ac_top_builddir_sub in
23555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23559 ac_abs_top_builddir=$ac_pwd
23560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23561 # for backward compatibility:
23562 ac_top_builddir=$ac_top_build_prefix
23565 .) # We are building in place.
23567 ac_top_srcdir=$ac_top_builddir_sub
23568 ac_abs_top_srcdir=$ac_pwd ;;
23569 [\\/]* | ?:[\\/]* ) # Absolute name.
23570 ac_srcdir=$srcdir$ac_dir_suffix;
23571 ac_top_srcdir=$srcdir
23572 ac_abs_top_srcdir=$srcdir ;;
23573 *) # Relative name.
23574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23575 ac_top_srcdir=$ac_top_build_prefix$srcdir
23576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23589 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23593 cat >>$CONFIG_STATUS <<\_ACEOF
23594 # If the template does not know about datarootdir, expand it.
23595 # FIXME: This hack should be removed a few years after 2.60.
23596 ac_datarootdir_hack=; ac_datarootdir_seen=
23598 case `sed -n '/datarootdir/ {
23607 ' $ac_file_inputs` in
23608 *datarootdir*) ac_datarootdir_seen=yes;;
23609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23610 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23611 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23613 cat >>$CONFIG_STATUS <<_ACEOF
23614 ac_datarootdir_hack='
23615 s&@datadir@&$datadir&g
23616 s&@docdir@&$docdir&g
23617 s&@infodir@&$infodir&g
23618 s&@localedir@&$localedir&g
23619 s&@mandir@&$mandir&g
23620 s&\\\${datarootdir}&$datarootdir&g' ;;
23624 # Neutralize VPATH when `$srcdir' = `.'.
23625 # Shell code in configure.ac might set extrasub.
23626 # FIXME: do we really want to maintain this feature?
23627 cat >>$CONFIG_STATUS <<_ACEOF
23631 cat >>$CONFIG_STATUS <<\_ACEOF
23633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23634 s&@configure_input@&$configure_input&;t t
23635 s&@top_builddir@&$ac_top_builddir_sub&;t t
23636 s&@srcdir@&$ac_srcdir&;t t
23637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23638 s&@top_srcdir@&$ac_top_srcdir&;t t
23639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23640 s&@builddir@&$ac_builddir&;t t
23641 s&@abs_builddir@&$ac_abs_builddir&;t t
23642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23643 s&@INSTALL@&$ac_INSTALL&;t t
23644 $ac_datarootdir_hack
23645 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23647 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23648 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23650 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23651 which seems to be undefined. Please make sure it is defined." >&5
23652 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23653 which seems to be undefined. Please make sure it is defined." >&2;}
23657 -) cat "$tmp/out"; rm -f "$tmp/out";;
23658 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23667 # Transform confdefs.h into a sed script `conftest.defines', that
23668 # substitutes the proper values into config.h.in to produce config.h.
23669 rm -f conftest.defines conftest.tail
23670 # First, append a space to every undef/define line, to ease matching.
23671 echo 's/$/ /' >conftest.defines
23672 # Then, protect against being on the right side of a sed subst, or in
23673 # an unquoted here document, in config.status. If some macros were
23674 # called several times there might be several #defines for the same
23675 # symbol, which is useless. But do not sort them, since the last
23676 # AC_DEFINE must be honored.
23677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23678 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23679 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23680 # PARAMS is the parameter list in the macro definition--in most cases, it's
23681 # just an empty string.
23682 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23683 ac_dB='\\)[ (].*,\\1define\\2'
23691 s/^[ ]*#[ ]*define[ ][ ]*//
23696 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23697 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23698 ' >>conftest.defines
23700 # Remove the space that was appended to ease matching.
23701 # Then replace #undef with comments. This is necessary, for
23702 # example, in the case of _POSIX_SOURCE, which is predefined and required
23703 # on some systems where configure will not decide to define it.
23704 # (The regexp can be short, since the line contains either #define or #undef.)
23706 s,^[ #]*u.*,/* & */,' >>conftest.defines
23708 # Break up conftest.defines:
23709 ac_max_sed_lines=50
23711 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23712 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23713 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23715 ac_in='$ac_file_inputs'
23716 ac_out='"$tmp/out1"'
23717 ac_nxt='"$tmp/out2"'
23721 # Write a here document:
23722 cat >>$CONFIG_STATUS <<_ACEOF
23723 # First, check the format of the line:
23724 cat >"\$tmp/defines.sed" <<\\CEOF
23725 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23726 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23730 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23732 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23733 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23734 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23735 grep . conftest.tail >/dev/null || break
23736 rm -f conftest.defines
23737 mv conftest.tail conftest.defines
23739 rm -f conftest.defines conftest.tail
23741 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23742 cat >>$CONFIG_STATUS <<\_ACEOF
23743 if test x"$ac_file" != x-; then
23744 echo "/* $configure_input */" >"$tmp/config.h"
23745 cat "$ac_result" >>"$tmp/config.h"
23746 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23747 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23748 echo "$as_me: $ac_file is unchanged" >&6;}
23751 mv "$tmp/config.h" $ac_file
23754 echo "/* $configure_input */"
23760 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23761 echo "$as_me: executing $ac_file commands" >&6;}
23766 case $ac_file$ac_mode in
23767 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23768 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23769 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23770 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23771 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23772 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23773 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23774 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23775 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23776 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23777 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23778 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23779 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23780 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23781 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23782 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23783 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23784 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23785 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23786 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23787 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23788 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23789 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23790 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23791 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23792 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23798 { (exit 0); exit 0; }
23800 chmod +x $CONFIG_STATUS
23801 ac_clean_files=$ac_clean_files_save
23804 # configure is writing to config.log, and then calls config.status.
23805 # config.status does its own redirection, appending to config.log.
23806 # Unfortunately, on DOS this fails, as config.log is still kept open
23807 # by configure, so config.status won't be able to write to it; its
23808 # output is simply discarded. So we exec the FD to /dev/null,
23809 # effectively closing config.log, so it can be properly (re)opened and
23810 # appended to by config.status. When coming back to configure, we
23811 # need to make the FD available again.
23812 if test "$no_create" != yes; then
23814 ac_config_status_args=
23815 test "$silent" = yes &&
23816 ac_config_status_args="$ac_config_status_args --quiet"
23818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23821 # would make configure fail if this is the last instruction.
23822 $ac_cs_success || { (exit 1); exit 1; }
23826 # CONFIG_SUBDIRS section.
23828 if test "$no_recursion" != yes; then
23830 # Remove --cache-file and --srcdir arguments so they do not pile up.
23831 ac_sub_configure_args=
23833 eval "set x $ac_configure_args"
23837 if test -n "$ac_prev"; then
23842 -cache-file | --cache-file | --cache-fil | --cache-fi \
23843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23844 ac_prev=cache_file ;;
23845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23849 --config-cache | -C)
23851 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23853 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23855 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23857 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23861 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23863 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23867 # Always prepend --prefix to ensure using the same prefix
23868 # in subdir configurations.
23869 ac_arg="--prefix=$prefix"
23871 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23873 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23876 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23878 # Do not complain, so a configure script can configure whichever
23879 # parts of a large source tree are present.
23880 test -d "$srcdir/$ac_dir" || continue
23882 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23883 echo "$as_me:$LINENO: $ac_msg" >&5
23887 -*) as_dir=./$as_dir;;
23889 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23893 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23894 *) as_qdir=$as_dir;;
23896 as_dirs="'$as_qdir' $as_dirs"
23897 as_dir=`$as_dirname -- "$as_dir" ||
23898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23899 X"$as_dir" : 'X\(//\)[^/]' \| \
23900 X"$as_dir" : 'X\(//\)$' \| \
23901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23907 /^X\(\/\/\)[^/].*/{
23920 test -d "$as_dir" && break
23922 test -z "$as_dirs" || eval "mkdir $as_dirs"
23923 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23924 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23925 { (exit 1); exit 1; }; }; }
23929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23932 # A ".." for each directory in $ac_dir_suffix.
23933 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23934 case $ac_top_builddir_sub in
23935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23939 ac_abs_top_builddir=$ac_pwd
23940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23941 # for backward compatibility:
23942 ac_top_builddir=$ac_top_build_prefix
23945 .) # We are building in place.
23947 ac_top_srcdir=$ac_top_builddir_sub
23948 ac_abs_top_srcdir=$ac_pwd ;;
23949 [\\/]* | ?:[\\/]* ) # Absolute name.
23950 ac_srcdir=$srcdir$ac_dir_suffix;
23951 ac_top_srcdir=$srcdir
23952 ac_abs_top_srcdir=$srcdir ;;
23953 *) # Relative name.
23954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23955 ac_top_srcdir=$ac_top_build_prefix$srcdir
23956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23963 # Check for guested configure; otherwise get Cygnus style configure.
23964 if test -f "$ac_srcdir/configure.gnu"; then
23965 ac_sub_configure=$ac_srcdir/configure.gnu
23966 elif test -f "$ac_srcdir/configure"; then
23967 ac_sub_configure=$ac_srcdir/configure
23968 elif test -f "$ac_srcdir/configure.in"; then
23969 # This should be Cygnus configure.
23970 ac_sub_configure=$ac_aux_dir/configure
23972 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23977 # The recursion is here.
23978 if test -n "$ac_sub_configure"; then
23979 # Make the cache file name correct relative to the subdirectory.
23980 case $cache_file in
23981 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23982 *) # Relative name.
23983 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23986 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23987 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23988 # The eval makes quoting arguments work.
23989 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23990 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23991 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23992 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23993 { (exit 1); exit 1; }; }