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-terminfo Query the terminfo database if available (default is
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-terminfo was given.
6010 if test "${enable_terminfo+set}" = set; then
6011 enableval=$enable_terminfo; case "$enableval" in
6012 yes) llvm_cv_enable_terminfo="yes" ;;
6013 no) llvm_cv_enable_terminfo="no" ;;
6014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6015 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6016 { (exit 1); exit 1; }; } ;;
6019 llvm_cv_enable_terminfo="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_terminfo" = "yes" ; then
12272 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12273 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12274 if test "${ac_cv_search_setupterm+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. */
12295 return setupterm ();
12300 for ac_lib in '' tinfo terminfo 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_setupterm=$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_setupterm+set}" = set; then
12355 if test "${ac_cv_search_setupterm+set}" = set; then
12358 ac_cv_search_setupterm=no
12360 rm conftest.$ac_ext
12361 LIBS=$ac_func_search_save_LIBS
12363 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12364 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12365 ac_res=$ac_cv_search_setupterm
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_TERMINFO 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_libffi" = "yes" ; then
16549 for ac_header in ffi.h ffi/ffi.h
16551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 ac_res=`eval echo '${'$as_ac_Header'}'`
16559 { echo "$as_me:$LINENO: result: $ac_res" >&5
16560 echo "${ECHO_T}$ac_res" >&6; }
16562 # Is the header compilable?
16563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16565 cat >conftest.$ac_ext <<_ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 $ac_includes_default
16572 #include <$ac_header>
16574 rm -f conftest.$ac_objext
16575 if { (ac_try="$ac_compile"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_compile") 2>conftest.er1
16583 grep -v '^ *+' conftest.er1 >conftest.err
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
16588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_try") 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_header_compiler=yes
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16613 ac_header_compiler=no
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16618 echo "${ECHO_T}$ac_header_compiler" >&6; }
16620 # Is the header present?
16621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16623 cat >conftest.$ac_ext <<_ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 #include <$ac_header>
16631 if { (ac_try="$ac_cpp conftest.$ac_ext"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } >/dev/null; then
16644 if test -s conftest.err; then
16645 ac_cpp_err=$ac_c_preproc_warn_flag
16646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16653 if test -z "$ac_cpp_err"; then
16654 ac_header_preproc=yes
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16659 ac_header_preproc=no
16662 rm -f conftest.err conftest.$ac_ext
16663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16664 echo "${ECHO_T}$ac_header_preproc" >&6; }
16666 # So? What about this header?
16667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16673 ac_header_preproc=yes
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16689 ## ------------------------------------ ##
16690 ## Report this to http://llvm.org/bugs/ ##
16691 ## ------------------------------------ ##
16693 ) | sed "s/^/$as_me: WARNING: /" >&2
16696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 eval "$as_ac_Header=\$ac_header_preproc"
16703 ac_res=`eval echo '${'$as_ac_Header'}'`
16704 { echo "$as_me:$LINENO: result: $ac_res" >&5
16705 echo "${ECHO_T}$ac_res" >&6; }
16708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16720 for ac_header in CrashReporterClient.h
16722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 ac_res=`eval echo '${'$as_ac_Header'}'`
16730 { echo "$as_me:$LINENO: result: $ac_res" >&5
16731 echo "${ECHO_T}$ac_res" >&6; }
16733 # Is the header compilable?
16734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 $ac_includes_default
16743 #include <$ac_header>
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_compile") 2>conftest.er1
16754 grep -v '^ *+' conftest.er1 >conftest.err
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try='test -s conftest.$ac_objext'
16770 { (case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_try") 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_header_compiler=yes
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 ac_header_compiler=no
16787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16789 echo "${ECHO_T}$ac_header_compiler" >&6; }
16791 # Is the header present?
16792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16794 cat >conftest.$ac_ext <<_ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 #include <$ac_header>
16802 if { (ac_try="$ac_cpp conftest.$ac_ext"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16810 grep -v '^ *+' conftest.er1 >conftest.err
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } >/dev/null; then
16815 if test -s conftest.err; then
16816 ac_cpp_err=$ac_c_preproc_warn_flag
16817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16824 if test -z "$ac_cpp_err"; then
16825 ac_header_preproc=yes
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16830 ac_header_preproc=no
16833 rm -f conftest.err conftest.$ac_ext
16834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16835 echo "${ECHO_T}$ac_header_preproc" >&6; }
16837 # So? What about this header?
16838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16844 ac_header_preproc=yes
16847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16860 ## ------------------------------------ ##
16861 ## Report this to http://llvm.org/bugs/ ##
16862 ## ------------------------------------ ##
16864 ) | sed "s/^/$as_me: WARNING: /" >&2
16867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 eval "$as_ac_Header=\$ac_header_preproc"
16874 ac_res=`eval echo '${'$as_ac_Header'}'`
16875 { echo "$as_me:$LINENO: result: $ac_res" >&5
16876 echo "${ECHO_T}$ac_res" >&6; }
16879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16880 cat >>confdefs.h <<_ACEOF
16881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16889 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16890 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16891 cat >conftest.$ac_ext <<_ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 extern const char *__crashreporter_info__;
16901 __crashreporter_info__ = "test";
16907 rm -f conftest.$ac_objext conftest$ac_exeext
16908 if { (ac_try="$ac_link"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_link") 2>conftest.er1
16916 grep -v '^ *+' conftest.er1 >conftest.err
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest$ac_exeext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16942 { echo "$as_me:$LINENO: result: yes" >&5
16943 echo "${ECHO_T}yes" >&6; }
16945 cat >>confdefs.h <<\_ACEOF
16946 #define HAVE_CRASHREPORTER_INFO 1
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16955 { echo "$as_me:$LINENO: result: no" >&5
16956 echo "${ECHO_T}no" >&6; }
16958 cat >>confdefs.h <<\_ACEOF
16959 #define HAVE_CRASHREPORTER_INFO 0
16965 rm -f core conftest.err conftest.$ac_objext \
16966 conftest$ac_exeext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16971 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16972 if test "${ac_cv_huge_val_sanity+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 ac_cpp='$CXXCPP $CPPFLAGS'
16978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16982 ac_save_CXXFLAGS=$CXXFLAGS
16983 CXXFLAGS="$CXXFLAGS -pedantic"
16984 if test "$cross_compiling" = yes; then
16985 ac_cv_huge_val_sanity=yes
16987 cat >conftest.$ac_ext <<_ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16997 double x = HUGE_VAL; return x != x;
17002 rm -f conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_link") 2>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17013 { (case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_try") 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_huge_val_sanity=yes
17024 echo "$as_me: program exited with status $ac_status" >&5
17025 echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17028 ( exit $ac_status )
17029 ac_cv_huge_val_sanity=no
17031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17035 CXXFLAGS=$ac_save_CXXFLAGS
17037 ac_cpp='$CPP $CPPFLAGS'
17038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17044 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17045 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17046 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17049 { echo "$as_me:$LINENO: checking for pid_t" >&5
17050 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17051 if test "${ac_cv_type_pid_t+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 $ac_includes_default
17061 typedef pid_t ac__type_new_;
17065 if ((ac__type_new_ *) 0)
17067 if (sizeof (ac__type_new_))
17073 rm -f conftest.$ac_objext
17074 if { (ac_try="$ac_compile"
17075 case "(($ac_try" in
17076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077 *) ac_try_echo=$ac_try;;
17079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080 (eval "$ac_compile") 2>conftest.er1
17082 grep -v '^ *+' conftest.er1 >conftest.err
17084 cat conftest.err >&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); } &&
17087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; } &&
17097 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17107 ac_cv_type_pid_t=yes
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_cv_type_pid_t=no
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17118 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17119 if test $ac_cv_type_pid_t = yes; then
17123 cat >>confdefs.h <<_ACEOF
17129 { echo "$as_me:$LINENO: checking for size_t" >&5
17130 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17131 if test "${ac_cv_type_size_t+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 cat >conftest.$ac_ext <<_ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 $ac_includes_default
17141 typedef size_t ac__type_new_;
17145 if ((ac__type_new_ *) 0)
17147 if (sizeof (ac__type_new_))
17153 rm -f conftest.$ac_objext
17154 if { (ac_try="$ac_compile"
17155 case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_compile") 2>conftest.er1
17162 grep -v '^ *+' conftest.er1 >conftest.err
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168 { (case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_try") 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try='test -s conftest.$ac_objext'
17178 { (case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_try") 2>&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
17187 ac_cv_type_size_t=yes
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 ac_cv_type_size_t=no
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17198 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17199 if test $ac_cv_type_size_t = yes; then
17203 cat >>confdefs.h <<_ACEOF
17204 #define size_t unsigned int
17210 cat >>confdefs.h <<_ACEOF
17211 #define RETSIGTYPE void
17214 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17215 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17216 if test "${ac_cv_struct_tm+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 cat >conftest.$ac_ext <<_ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h. */
17225 #include <sys/types.h>
17231 struct tm *tp; tp->tm_sec;
17236 rm -f conftest.$ac_objext
17237 if { (ac_try="$ac_compile"
17238 case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_compile") 2>conftest.er1
17245 grep -v '^ *+' conftest.er1 >conftest.err
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest.$ac_objext'
17261 { (case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_try") 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_struct_tm=time.h
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 ac_cv_struct_tm=sys/time.h
17278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17281 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17282 if test $ac_cv_struct_tm = sys/time.h; then
17284 cat >>confdefs.h <<\_ACEOF
17285 #define TM_IN_SYS_TIME 1
17290 { echo "$as_me:$LINENO: checking for int64_t" >&5
17291 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17292 if test "${ac_cv_type_int64_t+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 cat >conftest.$ac_ext <<_ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 $ac_includes_default
17302 typedef int64_t ac__type_new_;
17306 if ((ac__type_new_ *) 0)
17308 if (sizeof (ac__type_new_))
17314 rm -f conftest.$ac_objext
17315 if { (ac_try="$ac_compile"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_compile") 2>conftest.er1
17323 grep -v '^ *+' conftest.er1 >conftest.err
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17329 { (case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_try") 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest.$ac_objext'
17339 { (case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_try") 2>&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 ac_cv_type_int64_t=yes
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17353 ac_cv_type_int64_t=no
17356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17359 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17360 if test $ac_cv_type_int64_t = yes; then
17362 cat >>confdefs.h <<_ACEOF
17363 #define HAVE_INT64_T 1
17368 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17369 echo "$as_me: error: Type int64_t required but not found" >&2;}
17370 { (exit 1); exit 1; }; }
17373 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17374 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17375 if test "${ac_cv_type_uint64_t+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 cat >conftest.$ac_ext <<_ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 $ac_includes_default
17385 typedef uint64_t ac__type_new_;
17389 if ((ac__type_new_ *) 0)
17391 if (sizeof (ac__type_new_))
17397 rm -f conftest.$ac_objext
17398 if { (ac_try="$ac_compile"
17399 case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_compile") 2>conftest.er1
17406 grep -v '^ *+' conftest.er1 >conftest.err
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17412 { (case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_try") 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; } &&
17421 { ac_try='test -s conftest.$ac_objext'
17422 { (case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_try") 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 ac_cv_type_uint64_t=yes
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 ac_cv_type_uint64_t=no
17439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17441 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17442 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17443 if test $ac_cv_type_uint64_t = yes; then
17445 cat >>confdefs.h <<_ACEOF
17446 #define HAVE_UINT64_T 1
17451 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17452 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17453 if test "${ac_cv_type_u_int64_t+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 cat >conftest.$ac_ext <<_ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17462 $ac_includes_default
17463 typedef u_int64_t ac__type_new_;
17467 if ((ac__type_new_ *) 0)
17469 if (sizeof (ac__type_new_))
17475 rm -f conftest.$ac_objext
17476 if { (ac_try="$ac_compile"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_compile") 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; } &&
17499 { ac_try='test -s conftest.$ac_objext'
17500 { (case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_try") 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 ac_cv_type_u_int64_t=yes
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 ac_cv_type_u_int64_t=no
17517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17520 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17521 if test $ac_cv_type_u_int64_t = yes; then
17523 cat >>confdefs.h <<_ACEOF
17524 #define HAVE_U_INT64_T 1
17529 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17530 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17531 { (exit 1); exit 1; }; }
17545 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 cat >conftest.$ac_ext <<_ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17561 #define $ac_func innocuous_$ac_func
17563 /* System header to define __stub macros and hopefully few prototypes,
17564 which can conflict with char $ac_func (); below.
17565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17566 <limits.h> exists even on freestanding compilers. */
17569 # include <limits.h>
17571 # include <assert.h>
17576 /* Override any GCC internal prototype to avoid an error.
17577 Use char because int might match the return type of a GCC
17578 builtin and then its argument prototype would still apply. */
17583 /* The GNU C library defines this for functions which it implements
17584 to always fail with ENOSYS. Some functions are actually named
17585 something starting with __ and the normal name is an alias. */
17586 #if defined __stub_$ac_func || defined __stub___$ac_func
17593 return $ac_func ();
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_link") 2>conftest.er1
17607 grep -v '^ *+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
17612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17613 { (case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_try") 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; } &&
17622 { ac_try='test -s conftest$ac_exeext'
17623 { (case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_try") 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 eval "$as_ac_var=yes"
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17637 eval "$as_ac_var=no"
17640 rm -f core conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17643 ac_res=`eval echo '${'$as_ac_var'}'`
17644 { echo "$as_me:$LINENO: result: $ac_res" >&5
17645 echo "${ECHO_T}$ac_res" >&6; }
17646 if test `eval echo '${'$as_ac_var'}'` = yes; then
17647 cat >>confdefs.h <<_ACEOF
17648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17658 for ac_func in powf fmodf strtof round
17660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 cat >conftest.$ac_ext <<_ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17674 #define $ac_func innocuous_$ac_func
17676 /* System header to define __stub macros and hopefully few prototypes,
17677 which can conflict with char $ac_func (); below.
17678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679 <limits.h> exists even on freestanding compilers. */
17682 # include <limits.h>
17684 # include <assert.h>
17689 /* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
17696 /* The GNU C library defines this for functions which it implements
17697 to always fail with ENOSYS. Some functions are actually named
17698 something starting with __ and the normal name is an alias. */
17699 #if defined __stub_$ac_func || defined __stub___$ac_func
17706 return $ac_func ();
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_link") 2>conftest.er1
17720 grep -v '^ *+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest$ac_exeext'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 eval "$as_ac_var=yes"
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 eval "$as_ac_var=no"
17753 rm -f core conftest.err conftest.$ac_objext \
17754 conftest$ac_exeext conftest.$ac_ext
17756 ac_res=`eval echo '${'$as_ac_var'}'`
17757 { echo "$as_me:$LINENO: result: $ac_res" >&5
17758 echo "${ECHO_T}$ac_res" >&6; }
17759 if test `eval echo '${'$as_ac_var'}'` = yes; then
17760 cat >>confdefs.h <<_ACEOF
17761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17772 for ac_func in log log2 log10 exp exp2
17774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 cat >conftest.$ac_ext <<_ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17788 #define $ac_func innocuous_$ac_func
17790 /* System header to define __stub macros and hopefully few prototypes,
17791 which can conflict with char $ac_func (); below.
17792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17793 <limits.h> exists even on freestanding compilers. */
17796 # include <limits.h>
17798 # include <assert.h>
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17810 /* The GNU C library defines this for functions which it implements
17811 to always fail with ENOSYS. Some functions are actually named
17812 something starting with __ and the normal name is an alias. */
17813 #if defined __stub_$ac_func || defined __stub___$ac_func
17820 return $ac_func ();
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (ac_try="$ac_link"
17827 case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_link") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } &&
17839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17840 { (case "(($ac_try" in
17841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842 *) ac_try_echo=$ac_try;;
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845 (eval "$ac_try") 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest$ac_exeext'
17850 { (case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_try") 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
17859 eval "$as_ac_var=yes"
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 eval "$as_ac_var=no"
17867 rm -f core conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17870 ac_res=`eval echo '${'$as_ac_var'}'`
17871 { echo "$as_me:$LINENO: result: $ac_res" >&5
17872 echo "${ECHO_T}$ac_res" >&6; }
17873 if test `eval echo '${'$as_ac_var'}'` = yes; then
17874 cat >>confdefs.h <<_ACEOF
17875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17886 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17902 #define $ac_func innocuous_$ac_func
17904 /* System header to define __stub macros and hopefully few prototypes,
17905 which can conflict with char $ac_func (); below.
17906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17907 <limits.h> exists even on freestanding compilers. */
17910 # include <limits.h>
17912 # include <assert.h>
17917 /* Override any GCC internal prototype to avoid an error.
17918 Use char because int might match the return type of a GCC
17919 builtin and then its argument prototype would still apply. */
17924 /* The GNU C library defines this for functions which it implements
17925 to always fail with ENOSYS. Some functions are actually named
17926 something starting with __ and the normal name is an alias. */
17927 #if defined __stub_$ac_func || defined __stub___$ac_func
17934 return $ac_func ();
17939 rm -f conftest.$ac_objext conftest$ac_exeext
17940 if { (ac_try="$ac_link"
17941 case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_link") 2>conftest.er1
17948 grep -v '^ *+' conftest.er1 >conftest.err
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17954 { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_try") 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest$ac_exeext'
17964 { (case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_try") 2>&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 eval "$as_ac_var=yes"
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 eval "$as_ac_var=no"
17981 rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17984 ac_res=`eval echo '${'$as_ac_var'}'`
17985 { echo "$as_me:$LINENO: result: $ac_res" >&5
17986 echo "${ECHO_T}$ac_res" >&6; }
17987 if test `eval echo '${'$as_ac_var'}'` = yes; then
17988 cat >>confdefs.h <<_ACEOF
17989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17998 for ac_func in isatty mkdtemp mkstemp
18000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18014 #define $ac_func innocuous_$ac_func
18016 /* System header to define __stub macros and hopefully few prototypes,
18017 which can conflict with char $ac_func (); below.
18018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18019 <limits.h> exists even on freestanding compilers. */
18022 # include <limits.h>
18024 # include <assert.h>
18029 /* Override any GCC internal prototype to avoid an error.
18030 Use char because int might match the return type of a GCC
18031 builtin and then its argument prototype would still apply. */
18036 /* The GNU C library defines this for functions which it implements
18037 to always fail with ENOSYS. Some functions are actually named
18038 something starting with __ and the normal name is an alias. */
18039 #if defined __stub_$ac_func || defined __stub___$ac_func
18046 return $ac_func ();
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest$ac_exeext'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 eval "$as_ac_var=yes"
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 eval "$as_ac_var=no"
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18096 ac_res=`eval echo '${'$as_ac_var'}'`
18097 { echo "$as_me:$LINENO: result: $ac_res" >&5
18098 echo "${ECHO_T}$ac_res" >&6; }
18099 if test `eval echo '${'$as_ac_var'}'` = yes; then
18100 cat >>confdefs.h <<_ACEOF
18101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18113 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 cat >conftest.$ac_ext <<_ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18129 #define $ac_func innocuous_$ac_func
18131 /* System header to define __stub macros and hopefully few prototypes,
18132 which can conflict with char $ac_func (); below.
18133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18134 <limits.h> exists even on freestanding compilers. */
18137 # include <limits.h>
18139 # include <assert.h>
18144 /* Override any GCC internal prototype to avoid an error.
18145 Use char because int might match the return type of a GCC
18146 builtin and then its argument prototype would still apply. */
18151 /* The GNU C library defines this for functions which it implements
18152 to always fail with ENOSYS. Some functions are actually named
18153 something starting with __ and the normal name is an alias. */
18154 #if defined __stub_$ac_func || defined __stub___$ac_func
18161 return $ac_func ();
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_link") 2>conftest.er1
18175 grep -v '^ *+' conftest.er1 >conftest.err
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } &&
18180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18181 { (case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_try") 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest$ac_exeext'
18191 { (case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_try") 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; }; then
18200 eval "$as_ac_var=yes"
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 eval "$as_ac_var=no"
18208 rm -f core conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18211 ac_res=`eval echo '${'$as_ac_var'}'`
18212 { echo "$as_me:$LINENO: result: $ac_res" >&5
18213 echo "${ECHO_T}$ac_res" >&6; }
18214 if test `eval echo '${'$as_ac_var'}'` = yes; then
18215 cat >>confdefs.h <<_ACEOF
18216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18226 for ac_func in strerror strerror_r setenv arc4random
18228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 cat >conftest.$ac_ext <<_ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18242 #define $ac_func innocuous_$ac_func
18244 /* System header to define __stub macros and hopefully few prototypes,
18245 which can conflict with char $ac_func (); below.
18246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18247 <limits.h> exists even on freestanding compilers. */
18250 # include <limits.h>
18252 # include <assert.h>
18257 /* Override any GCC internal prototype to avoid an error.
18258 Use char because int might match the return type of a GCC
18259 builtin and then its argument prototype would still apply. */
18264 /* The GNU C library defines this for functions which it implements
18265 to always fail with ENOSYS. Some functions are actually named
18266 something starting with __ and the normal name is an alias. */
18267 #if defined __stub_$ac_func || defined __stub___$ac_func
18274 return $ac_func ();
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (ac_try="$ac_link"
18281 case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_link") 2>conftest.er1
18288 grep -v '^ *+' conftest.er1 >conftest.err
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18294 { (case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_try") 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try='test -s conftest$ac_exeext'
18304 { (case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_try") 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 eval "$as_ac_var=yes"
18315 echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18318 eval "$as_ac_var=no"
18321 rm -f core conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18324 ac_res=`eval echo '${'$as_ac_var'}'`
18325 { echo "$as_me:$LINENO: result: $ac_res" >&5
18326 echo "${ECHO_T}$ac_res" >&6; }
18327 if test `eval echo '${'$as_ac_var'}'` = yes; then
18328 cat >>confdefs.h <<_ACEOF
18329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18339 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 cat >conftest.$ac_ext <<_ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18355 #define $ac_func innocuous_$ac_func
18357 /* System header to define __stub macros and hopefully few prototypes,
18358 which can conflict with char $ac_func (); below.
18359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18360 <limits.h> exists even on freestanding compilers. */
18363 # include <limits.h>
18365 # include <assert.h>
18370 /* Override any GCC internal prototype to avoid an error.
18371 Use char because int might match the return type of a GCC
18372 builtin and then its argument prototype would still apply. */
18377 /* The GNU C library defines this for functions which it implements
18378 to always fail with ENOSYS. Some functions are actually named
18379 something starting with __ and the normal name is an alias. */
18380 #if defined __stub_$ac_func || defined __stub___$ac_func
18387 return $ac_func ();
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (ac_try="$ac_link"
18394 case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399 (eval "$ac_link") 2>conftest.er1
18401 grep -v '^ *+' conftest.er1 >conftest.err
18403 cat conftest.err >&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } &&
18406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407 { (case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_try") 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_try") 2>&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
18426 eval "$as_ac_var=yes"
18428 echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18431 eval "$as_ac_var=no"
18434 rm -f core conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18437 ac_res=`eval echo '${'$as_ac_var'}'`
18438 { echo "$as_me:$LINENO: result: $ac_res" >&5
18439 echo "${ECHO_T}$ac_res" >&6; }
18440 if test `eval echo '${'$as_ac_var'}'` = yes; then
18441 cat >>confdefs.h <<_ACEOF
18442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18453 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 cat >conftest.$ac_ext <<_ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18469 #define $ac_func innocuous_$ac_func
18471 /* System header to define __stub macros and hopefully few prototypes,
18472 which can conflict with char $ac_func (); below.
18473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18474 <limits.h> exists even on freestanding compilers. */
18477 # include <limits.h>
18479 # include <assert.h>
18484 /* Override any GCC internal prototype to avoid an error.
18485 Use char because int might match the return type of a GCC
18486 builtin and then its argument prototype would still apply. */
18491 /* The GNU C library defines this for functions which it implements
18492 to always fail with ENOSYS. Some functions are actually named
18493 something starting with __ and the normal name is an alias. */
18494 #if defined __stub_$ac_func || defined __stub___$ac_func
18501 return $ac_func ();
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>conftest.er1
18515 grep -v '^ *+' conftest.er1 >conftest.err
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest$ac_exeext'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18540 eval "$as_ac_var=yes"
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18545 eval "$as_ac_var=no"
18548 rm -f core conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18551 ac_res=`eval echo '${'$as_ac_var'}'`
18552 { echo "$as_me:$LINENO: result: $ac_res" >&5
18553 echo "${ECHO_T}$ac_res" >&6; }
18554 if test `eval echo '${'$as_ac_var'}'` = yes; then
18555 cat >>confdefs.h <<_ACEOF
18556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18564 for ac_func in futimes futimens
18566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 cat >conftest.$ac_ext <<_ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18580 #define $ac_func innocuous_$ac_func
18582 /* System header to define __stub macros and hopefully few prototypes,
18583 which can conflict with char $ac_func (); below.
18584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18585 <limits.h> exists even on freestanding compilers. */
18588 # include <limits.h>
18590 # include <assert.h>
18595 /* Override any GCC internal prototype to avoid an error.
18596 Use char because int might match the return type of a GCC
18597 builtin and then its argument prototype would still apply. */
18602 /* The GNU C library defines this for functions which it implements
18603 to always fail with ENOSYS. Some functions are actually named
18604 something starting with __ and the normal name is an alias. */
18605 #if defined __stub_$ac_func || defined __stub___$ac_func
18612 return $ac_func ();
18617 rm -f conftest.$ac_objext conftest$ac_exeext
18618 if { (ac_try="$ac_link"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_link") 2>conftest.er1
18626 grep -v '^ *+' conftest.er1 >conftest.err
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest$ac_exeext'
18642 { (case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_try") 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 eval "$as_ac_var=yes"
18653 echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18656 eval "$as_ac_var=no"
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18662 ac_res=`eval echo '${'$as_ac_var'}'`
18663 { echo "$as_me:$LINENO: result: $ac_res" >&5
18664 echo "${ECHO_T}$ac_res" >&6; }
18665 if test `eval echo '${'$as_ac_var'}'` = yes; then
18666 cat >>confdefs.h <<_ACEOF
18667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18673 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18674 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18675 if test "${llvm_cv_c_printf_a+set}" = set; then
18676 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 ac_cpp='$CPP $CPPFLAGS'
18680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18684 if test "$cross_compiling" = yes; then
18685 llvmac_cv_c_printf_a=no
18687 cat >conftest.$ac_ext <<_ACEOF
18691 cat confdefs.h >>conftest.$ac_ext
18692 cat >>conftest.$ac_ext <<_ACEOF
18693 /* end confdefs.h. */
18696 #include <stdlib.h>
18702 volatile double A, B;
18706 sprintf(Buffer, "%a", A);
18710 if (A != 0x1.999999999999ap-4)
18717 rm -f conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_link") 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 llvm_cv_c_printf_a=yes
18739 echo "$as_me: program exited with status $ac_status" >&5
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 ( exit $ac_status )
18744 llvmac_cv_c_printf_a=no
18746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18751 ac_cpp='$CPP $CPPFLAGS'
18752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18757 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18758 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18759 if test "$llvm_cv_c_printf_a" = "yes"; then
18761 cat >>confdefs.h <<\_ACEOF
18762 #define HAVE_PRINTF_A 1
18769 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18770 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18771 if test "${ac_cv_func_rand48+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 ac_cpp='$CXXCPP $CPPFLAGS'
18777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18781 cat >conftest.$ac_ext <<_ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18787 #include <stdlib.h>
18791 srand48(0);lrand48();drand48();
18796 rm -f conftest.$ac_objext
18797 if { (ac_try="$ac_compile"
18798 case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_compile") 2>conftest.er1
18805 grep -v '^ *+' conftest.er1 >conftest.err
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } &&
18810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; } &&
18820 { ac_try='test -s conftest.$ac_objext'
18821 { (case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826 (eval "$ac_try") 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 ac_cv_func_rand48=yes
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18835 ac_cv_func_rand48=no
18838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18840 ac_cpp='$CPP $CPPFLAGS'
18841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18847 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18848 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18850 if test "$ac_cv_func_rand48" = "yes" ; then
18852 cat >>confdefs.h <<\_ACEOF
18853 #define HAVE_RAND48 1
18859 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18860 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18861 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 cat >conftest.$ac_ext <<_ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18870 $ac_includes_default
18875 char *p = (char *) strerror_s;
18883 rm -f conftest.$ac_objext
18884 if { (ac_try="$ac_compile"
18885 case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_compile") 2>conftest.er1
18892 grep -v '^ *+' conftest.er1 >conftest.err
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18898 { (case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_try") 2>&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; } &&
18907 { ac_try='test -s conftest.$ac_objext'
18908 { (case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913 (eval "$ac_try") 2>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 ac_cv_have_decl_strerror_s=yes
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 ac_cv_have_decl_strerror_s=no
18925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18927 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18928 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18929 if test $ac_cv_have_decl_strerror_s = yes; then
18931 cat >>confdefs.h <<_ACEOF
18932 #define HAVE_DECL_STRERROR_S 1
18937 cat >>confdefs.h <<_ACEOF
18938 #define HAVE_DECL_STRERROR_S 0
18946 if test "$llvm_cv_os_type" = "MingW" ; then
18947 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18948 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18949 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 ac_check_lib_save_LIBS=$LIBS
18954 cat >conftest.$ac_ext <<_ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18961 /* Override any GCC internal prototype to avoid an error.
18962 Use char because int might match the return type of a GCC
18963 builtin and then its argument prototype would still apply. */
18976 rm -f conftest.$ac_objext conftest$ac_exeext
18977 if { (ac_try="$ac_link"
18978 case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_link") 2>conftest.er1
18985 grep -v '^ *+' conftest.er1 >conftest.err
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
18990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18991 { (case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_try") 2>&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; } &&
19000 { ac_try='test -s conftest$ac_exeext'
19001 { (case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_try") 2>&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; }; then
19010 ac_cv_lib_gcc__alloca=yes
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 ac_cv_lib_gcc__alloca=no
19018 rm -f core conftest.err conftest.$ac_objext \
19019 conftest$ac_exeext conftest.$ac_ext
19020 LIBS=$ac_check_lib_save_LIBS
19022 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19023 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19024 if test $ac_cv_lib_gcc__alloca = yes; then
19026 cat >>confdefs.h <<\_ACEOF
19027 #define HAVE__ALLOCA 1
19032 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19033 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19034 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 ac_check_lib_save_LIBS=$LIBS
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19046 /* Override any GCC internal prototype to avoid an error.
19047 Use char because int might match the return type of a GCC
19048 builtin and then its argument prototype would still apply. */
19056 return __alloca ();
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19076 { (case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_try") 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest$ac_exeext'
19086 { (case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_try") 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_cv_lib_gcc___alloca=yes
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 ac_cv_lib_gcc___alloca=no
19103 rm -f core conftest.err conftest.$ac_objext \
19104 conftest$ac_exeext conftest.$ac_ext
19105 LIBS=$ac_check_lib_save_LIBS
19107 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19108 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19109 if test $ac_cv_lib_gcc___alloca = yes; then
19111 cat >>confdefs.h <<\_ACEOF
19112 #define HAVE___ALLOCA 1
19117 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19118 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19119 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 ac_check_lib_save_LIBS=$LIBS
19124 cat >conftest.$ac_ext <<_ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19131 /* Override any GCC internal prototype to avoid an error.
19132 Use char because int might match the return type of a GCC
19133 builtin and then its argument prototype would still apply. */
19141 return __chkstk ();
19146 rm -f conftest.$ac_objext conftest$ac_exeext
19147 if { (ac_try="$ac_link"
19148 case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_link") 2>conftest.er1
19155 grep -v '^ *+' conftest.er1 >conftest.err
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } &&
19160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19161 { (case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_try") 2>&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; } &&
19170 { ac_try='test -s conftest$ac_exeext'
19171 { (case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_try") 2>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; }; then
19180 ac_cv_lib_gcc___chkstk=yes
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 ac_cv_lib_gcc___chkstk=no
19188 rm -f core conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19192 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19193 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19194 if test $ac_cv_lib_gcc___chkstk = yes; then
19196 cat >>confdefs.h <<\_ACEOF
19197 #define HAVE___CHKSTK 1
19202 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19203 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19204 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 ac_check_lib_save_LIBS=$LIBS
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19216 /* Override any GCC internal prototype to avoid an error.
19217 Use char because int might match the return type of a GCC
19218 builtin and then its argument prototype would still apply. */
19226 return ___chkstk ();
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (ac_try="$ac_link"
19233 case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_link") 2>conftest.er1
19240 grep -v '^ *+' conftest.er1 >conftest.err
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19246 { (case "(($ac_try" in
19247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248 *) ac_try_echo=$ac_try;;
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251 (eval "$ac_try") 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest$ac_exeext'
19256 { (case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_try") 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_cv_lib_gcc____chkstk=yes
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19270 ac_cv_lib_gcc____chkstk=no
19273 rm -f core conftest.err conftest.$ac_objext \
19274 conftest$ac_exeext conftest.$ac_ext
19275 LIBS=$ac_check_lib_save_LIBS
19277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19278 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19279 if test $ac_cv_lib_gcc____chkstk = yes; then
19281 cat >>confdefs.h <<\_ACEOF
19282 #define HAVE____CHKSTK 1
19288 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19289 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19290 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 ac_check_lib_save_LIBS=$LIBS
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19302 /* Override any GCC internal prototype to avoid an error.
19303 Use char because int might match the return type of a GCC
19304 builtin and then its argument prototype would still apply. */
19312 return __ashldi3 ();
19317 rm -f conftest.$ac_objext conftest$ac_exeext
19318 if { (ac_try="$ac_link"
19319 case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_link") 2>conftest.er1
19326 grep -v '^ *+' conftest.er1 >conftest.err
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19332 { (case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_try") 2>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; } &&
19341 { ac_try='test -s conftest$ac_exeext'
19342 { (case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_try") 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 ac_cv_lib_gcc___ashldi3=yes
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19356 ac_cv_lib_gcc___ashldi3=no
19359 rm -f core conftest.err conftest.$ac_objext \
19360 conftest$ac_exeext conftest.$ac_ext
19361 LIBS=$ac_check_lib_save_LIBS
19363 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19364 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19365 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19367 cat >>confdefs.h <<\_ACEOF
19368 #define HAVE___ASHLDI3 1
19373 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19374 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19375 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19376 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 ac_check_lib_save_LIBS=$LIBS
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19387 /* Override any GCC internal prototype to avoid an error.
19388 Use char because int might match the return type of a GCC
19389 builtin and then its argument prototype would still apply. */
19397 return __ashrdi3 ();
19402 rm -f conftest.$ac_objext conftest$ac_exeext
19403 if { (ac_try="$ac_link"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_link") 2>conftest.er1
19411 grep -v '^ *+' conftest.er1 >conftest.err
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
19416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19417 { (case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_try") 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest$ac_exeext'
19427 { (case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_try") 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_lib_gcc___ashrdi3=yes
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_lib_gcc___ashrdi3=no
19444 rm -f core conftest.err conftest.$ac_objext \
19445 conftest$ac_exeext conftest.$ac_ext
19446 LIBS=$ac_check_lib_save_LIBS
19448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19449 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19450 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE___ASHRDI3 1
19458 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19459 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19460 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 ac_check_lib_save_LIBS=$LIBS
19465 cat >conftest.$ac_ext <<_ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h. */
19472 /* Override any GCC internal prototype to avoid an error.
19473 Use char because int might match the return type of a GCC
19474 builtin and then its argument prototype would still apply. */
19482 return __divdi3 ();
19487 rm -f conftest.$ac_objext conftest$ac_exeext
19488 if { (ac_try="$ac_link"
19489 case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_link") 2>conftest.er1
19496 grep -v '^ *+' conftest.er1 >conftest.err
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19502 { (case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_try") 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest$ac_exeext'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_cv_lib_gcc___divdi3=yes
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_cv_lib_gcc___divdi3=no
19529 rm -f core conftest.err conftest.$ac_objext \
19530 conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_check_lib_save_LIBS
19533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19534 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19535 if test $ac_cv_lib_gcc___divdi3 = yes; then
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE___DIVDI3 1
19543 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19544 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19545 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 ac_check_lib_save_LIBS=$LIBS
19550 cat >conftest.$ac_ext <<_ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19557 /* Override any GCC internal prototype to avoid an error.
19558 Use char because int might match the return type of a GCC
19559 builtin and then its argument prototype would still apply. */
19567 return __fixdfdi ();
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_link") 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19587 { (case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_try") 2>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; } &&
19596 { ac_try='test -s conftest$ac_exeext'
19597 { (case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_try") 2>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606 ac_cv_lib_gcc___fixdfdi=yes
19608 echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19611 ac_cv_lib_gcc___fixdfdi=no
19614 rm -f core conftest.err conftest.$ac_objext \
19615 conftest$ac_exeext conftest.$ac_ext
19616 LIBS=$ac_check_lib_save_LIBS
19618 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19619 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19620 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19622 cat >>confdefs.h <<\_ACEOF
19623 #define HAVE___FIXDFDI 1
19628 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19629 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19630 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 ac_check_lib_save_LIBS=$LIBS
19635 cat >conftest.$ac_ext <<_ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19642 /* Override any GCC internal prototype to avoid an error.
19643 Use char because int might match the return type of a GCC
19644 builtin and then its argument prototype would still apply. */
19652 return __fixsfdi ();
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (ac_try="$ac_link"
19659 case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_link") 2>conftest.er1
19666 grep -v '^ *+' conftest.er1 >conftest.err
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
19671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19672 { (case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_try") 2>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest$ac_exeext'
19682 { (case "(($ac_try" in
19683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684 *) ac_try_echo=$ac_try;;
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687 (eval "$ac_try") 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 ac_cv_lib_gcc___fixsfdi=yes
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 ac_cv_lib_gcc___fixsfdi=no
19699 rm -f core conftest.err conftest.$ac_objext \
19700 conftest$ac_exeext conftest.$ac_ext
19701 LIBS=$ac_check_lib_save_LIBS
19703 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19704 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19705 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE___FIXSFDI 1
19713 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19714 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19715 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 ac_check_lib_save_LIBS=$LIBS
19720 cat >conftest.$ac_ext <<_ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19727 /* Override any GCC internal prototype to avoid an error.
19728 Use char because int might match the return type of a GCC
19729 builtin and then its argument prototype would still apply. */
19733 char __floatdidf ();
19737 return __floatdidf ();
19742 rm -f conftest.$ac_objext conftest$ac_exeext
19743 if { (ac_try="$ac_link"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_link") 2>conftest.er1
19751 grep -v '^ *+' conftest.er1 >conftest.err
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } &&
19756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19757 { (case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19762 (eval "$ac_try") 2>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; } &&
19766 { ac_try='test -s conftest$ac_exeext'
19767 { (case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_try") 2>&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; }; then
19776 ac_cv_lib_gcc___floatdidf=yes
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19781 ac_cv_lib_gcc___floatdidf=no
19784 rm -f core conftest.err conftest.$ac_objext \
19785 conftest$ac_exeext conftest.$ac_ext
19786 LIBS=$ac_check_lib_save_LIBS
19788 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19789 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19790 if test $ac_cv_lib_gcc___floatdidf = yes; then
19792 cat >>confdefs.h <<\_ACEOF
19793 #define HAVE___FLOATDIDF 1
19798 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19799 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19800 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 ac_check_lib_save_LIBS=$LIBS
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19822 return __lshrdi3 ();
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19842 { (case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_try") 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest$ac_exeext'
19852 { (case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_try") 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 ac_cv_lib_gcc___lshrdi3=yes
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_cv_lib_gcc___lshrdi3=no
19869 rm -f core conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
19871 LIBS=$ac_check_lib_save_LIBS
19873 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19874 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19875 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE___LSHRDI3 1
19883 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19884 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19885 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 ac_check_lib_save_LIBS=$LIBS
19890 cat >conftest.$ac_ext <<_ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19897 /* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
19907 return __moddi3 ();
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_link") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } &&
19926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19927 { (case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_try") 2>&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; } &&
19936 { ac_try='test -s conftest$ac_exeext'
19937 { (case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_try") 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 ac_cv_lib_gcc___moddi3=yes
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 ac_cv_lib_gcc___moddi3=no
19954 rm -f core conftest.err conftest.$ac_objext \
19955 conftest$ac_exeext conftest.$ac_ext
19956 LIBS=$ac_check_lib_save_LIBS
19958 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19959 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19960 if test $ac_cv_lib_gcc___moddi3 = yes; then
19962 cat >>confdefs.h <<\_ACEOF
19963 #define HAVE___MODDI3 1
19968 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19969 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19970 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_check_lib_save_LIBS=$LIBS
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19982 /* Override any GCC internal prototype to avoid an error.
19983 Use char because int might match the return type of a GCC
19984 builtin and then its argument prototype would still apply. */
19992 return __udivdi3 ();
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_link") 2>conftest.er1
20006 grep -v '^ *+' conftest.er1 >conftest.err
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
20011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20012 { (case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_try") 2>&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest$ac_exeext'
20022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_cv_lib_gcc___udivdi3=yes
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 ac_cv_lib_gcc___udivdi3=no
20039 rm -f core conftest.err conftest.$ac_objext \
20040 conftest$ac_exeext conftest.$ac_ext
20041 LIBS=$ac_check_lib_save_LIBS
20043 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20044 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20045 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20047 cat >>confdefs.h <<\_ACEOF
20048 #define HAVE___UDIVDI3 1
20053 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20054 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20055 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20058 ac_check_lib_save_LIBS=$LIBS
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20067 /* Override any GCC internal prototype to avoid an error.
20068 Use char because int might match the return type of a GCC
20069 builtin and then its argument prototype would still apply. */
20077 return __umoddi3 ();
20082 rm -f conftest.$ac_objext conftest$ac_exeext
20083 if { (ac_try="$ac_link"
20084 case "(($ac_try" in
20085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086 *) ac_try_echo=$ac_try;;
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_link") 2>conftest.er1
20091 grep -v '^ *+' conftest.er1 >conftest.err
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } &&
20096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20097 { (case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_try") 2>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try='test -s conftest$ac_exeext'
20107 { (case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_try") 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_cv_lib_gcc___umoddi3=yes
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 ac_cv_lib_gcc___umoddi3=no
20124 rm -f core conftest.err conftest.$ac_objext \
20125 conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20129 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20130 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE___UMODDI3 1
20139 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20140 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20141 if test "${ac_cv_lib_gcc___main+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 ac_check_lib_save_LIBS=$LIBS
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20153 /* Override any GCC internal prototype to avoid an error.
20154 Use char because int might match the return type of a GCC
20155 builtin and then its argument prototype would still apply. */
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (ac_try="$ac_link"
20170 case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175 (eval "$ac_link") 2>conftest.er1
20177 grep -v '^ *+' conftest.er1 >conftest.err
20179 cat conftest.err >&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
20182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest$ac_exeext'
20193 { (case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_try") 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_cv_lib_gcc___main=yes
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 ac_cv_lib_gcc___main=no
20210 rm -f core conftest.err conftest.$ac_objext \
20211 conftest$ac_exeext conftest.$ac_ext
20212 LIBS=$ac_check_lib_save_LIBS
20214 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20215 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20216 if test $ac_cv_lib_gcc___main = yes; then
20218 cat >>confdefs.h <<\_ACEOF
20219 #define HAVE___MAIN 1
20224 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20225 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20226 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 ac_check_lib_save_LIBS=$LIBS
20231 cat >conftest.$ac_ext <<_ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20248 return __cmpdi2 ();
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (ac_try="$ac_link"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_link") 2>conftest.er1
20262 grep -v '^ *+' conftest.er1 >conftest.err
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
20267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20268 { (case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_try") 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; } &&
20277 { ac_try='test -s conftest$ac_exeext'
20278 { (case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_try") 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_cv_lib_gcc___cmpdi2=yes
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20292 ac_cv_lib_gcc___cmpdi2=no
20295 rm -f core conftest.err conftest.$ac_objext \
20296 conftest$ac_exeext conftest.$ac_ext
20297 LIBS=$ac_check_lib_save_LIBS
20299 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20300 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20301 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20303 cat >>confdefs.h <<\_ACEOF
20304 #define HAVE___CMPDI2 1
20311 if test "$llvm_cv_os_type" = "MingW" ; then
20312 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20313 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20314 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 #include <windows.h>
20323 #include <imagehlp.h>
20324 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20325 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20329 rm -f conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_compile") 2>conftest.er1
20338 grep -v '^ *+' conftest.er1 >conftest.err
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
20343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20344 { (case "(($ac_try" in
20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346 *) ac_try_echo=$ac_try;;
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349 (eval "$ac_try") 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; } &&
20353 { ac_try='test -s conftest.$ac_objext'
20354 { (case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_try") 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20364 { echo "$as_me:$LINENO: result: yes" >&5
20365 echo "${ECHO_T}yes" >&6; }
20366 llvm_cv_win32_elmcb_pcstr="PCSTR"
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20373 { echo "$as_me:$LINENO: result: no" >&5
20374 echo "${ECHO_T}no" >&6; }
20375 llvm_cv_win32_elmcb_pcstr="PSTR"
20379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20381 cat >>confdefs.h <<_ACEOF
20382 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20389 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20390 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20391 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20392 echo $ECHO_N "(cached) $ECHO_C" >&6
20396 ac_cpp='$CXXCPP $CPPFLAGS'
20397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20401 cat >conftest.$ac_ext <<_ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20416 rm -f conftest.$ac_objext
20417 if { (ac_try="$ac_compile"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_compile") 2>conftest.er1
20425 grep -v '^ *+' conftest.er1 >conftest.err
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; } &&
20440 { ac_try='test -s conftest.$ac_objext'
20441 { (case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_try") 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 ac_cv_func_isnan_in_math_h=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_cv_func_isnan_in_math_h=no
20458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 ac_cpp='$CPP $CPPFLAGS'
20461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20467 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20468 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20471 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20473 cat >>confdefs.h <<\_ACEOF
20474 #define HAVE_ISNAN_IN_MATH_H 1
20480 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20481 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20482 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 ac_cpp='$CXXCPP $CPPFLAGS'
20488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20507 rm -f conftest.$ac_objext
20508 if { (ac_try="$ac_compile"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_compile") 2>conftest.er1
20516 grep -v '^ *+' conftest.er1 >conftest.err
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
20521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20522 { (case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_try") 2>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try='test -s conftest.$ac_objext'
20532 { (case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_try") 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 ac_cv_func_isnan_in_cmath=yes
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20546 ac_cv_func_isnan_in_cmath=no
20549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20551 ac_cpp='$CPP $CPPFLAGS'
20552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20559 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20561 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE_ISNAN_IN_CMATH 1
20570 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20571 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20572 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 ac_cpp='$CXXCPP $CPPFLAGS'
20578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20592 float f; std::isnan(f);
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20612 { (case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_try") 2>&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; } &&
20621 { ac_try='test -s conftest.$ac_objext'
20622 { (case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_try") 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_cv_func_std_isnan_in_cmath=yes
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_cv_func_std_isnan_in_cmath=no
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 ac_cpp='$CPP $CPPFLAGS'
20642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20648 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20649 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20651 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20653 cat >>confdefs.h <<\_ACEOF
20654 #define HAVE_STD_ISNAN_IN_CMATH 1
20662 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20663 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20664 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 ac_cpp='$CXXCPP $CPPFLAGS'
20670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20689 rm -f conftest.$ac_objext
20690 if { (ac_try="$ac_compile"
20691 case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_compile") 2>conftest.er1
20698 grep -v '^ *+' conftest.er1 >conftest.err
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_try") 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 ac_cv_func_isinf_in_math_h=yes
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ac_cv_func_isinf_in_math_h=no
20731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733 ac_cpp='$CPP $CPPFLAGS'
20734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20740 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20741 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20743 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20745 cat >>confdefs.h <<\_ACEOF
20746 #define HAVE_ISINF_IN_MATH_H 1
20752 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20753 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20754 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20755 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 ac_cpp='$CXXCPP $CPPFLAGS'
20760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20794 { (case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_try") 2>&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest.$ac_objext'
20804 { (case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_try") 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 ac_cv_func_isinf_in_cmath=yes
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_cv_func_isinf_in_cmath=no
20821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 ac_cpp='$CPP $CPPFLAGS'
20824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20830 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20831 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20833 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20835 cat >>confdefs.h <<\_ACEOF
20836 #define HAVE_ISINF_IN_CMATH 1
20842 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20843 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20844 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20849 ac_cpp='$CXXCPP $CPPFLAGS'
20850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20864 float f; std::isinf(f);
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20878 grep -v '^ *+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
20883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20884 { (case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_try") 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest.$ac_objext'
20894 { (case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_try") 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 ac_cv_func_std_isinf_in_cmath=yes
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_cv_func_std_isinf_in_cmath=no
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 ac_cpp='$CPP $CPPFLAGS'
20914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20920 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20921 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20923 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_STD_ISINF_IN_CMATH 1
20932 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20933 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20934 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20939 ac_cpp='$CXXCPP $CPPFLAGS'
20940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20944 cat >conftest.$ac_ext <<_ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20950 #include <ieeefp.h>
20954 float f; finite(f);
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20968 grep -v '^ *+' conftest.er1 >conftest.err
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; } &&
20983 { ac_try='test -s conftest.$ac_objext'
20984 { (case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_try") 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 ac_cv_func_finite_in_ieeefp_h=yes
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 ac_cv_func_finite_in_ieeefp_h=no
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003 ac_cpp='$CPP $CPPFLAGS'
21004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21010 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21011 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21013 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21015 cat >>confdefs.h <<\_ACEOF
21016 #define HAVE_FINITE_IN_IEEEFP_H 1
21023 if test "$llvm_cv_platform_type" = "Unix" ; then
21026 for ac_header in stdlib.h unistd.h
21028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 ac_res=`eval echo '${'$as_ac_Header'}'`
21036 { echo "$as_me:$LINENO: result: $ac_res" >&5
21037 echo "${ECHO_T}$ac_res" >&6; }
21039 # Is the header compilable?
21040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21049 #include <$ac_header>
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21066 { (case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_try") 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest.$ac_objext'
21076 { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_header_compiler=yes
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 ac_header_compiler=no
21093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21095 echo "${ECHO_T}$ac_header_compiler" >&6; }
21097 # Is the header present?
21098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21100 cat >conftest.$ac_ext <<_ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 #include <$ac_header>
21108 if { (ac_try="$ac_cpp conftest.$ac_ext"
21109 case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21116 grep -v '^ *+' conftest.er1 >conftest.err
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } >/dev/null; then
21121 if test -s conftest.err; then
21122 ac_cpp_err=$ac_c_preproc_warn_flag
21123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21130 if test -z "$ac_cpp_err"; then
21131 ac_header_preproc=yes
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 ac_header_preproc=no
21139 rm -f conftest.err conftest.$ac_ext
21140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21141 echo "${ECHO_T}$ac_header_preproc" >&6; }
21143 # So? What about this header?
21144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21150 ac_header_preproc=yes
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21166 ## ------------------------------------ ##
21167 ## Report this to http://llvm.org/bugs/ ##
21168 ## ------------------------------------ ##
21170 ) | sed "s/^/$as_me: WARNING: /" >&2
21173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 eval "$as_ac_Header=\$ac_header_preproc"
21180 ac_res=`eval echo '${'$as_ac_Header'}'`
21181 { echo "$as_me:$LINENO: result: $ac_res" >&5
21182 echo "${ECHO_T}$ac_res" >&6; }
21185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21186 cat >>confdefs.h <<_ACEOF
21187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21195 for ac_func in getpagesize
21197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 cat >conftest.$ac_ext <<_ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21211 #define $ac_func innocuous_$ac_func
21213 /* System header to define __stub macros and hopefully few prototypes,
21214 which can conflict with char $ac_func (); below.
21215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21216 <limits.h> exists even on freestanding compilers. */
21219 # include <limits.h>
21221 # include <assert.h>
21226 /* Override any GCC internal prototype to avoid an error.
21227 Use char because int might match the return type of a GCC
21228 builtin and then its argument prototype would still apply. */
21233 /* The GNU C library defines this for functions which it implements
21234 to always fail with ENOSYS. Some functions are actually named
21235 something starting with __ and the normal name is an alias. */
21236 #if defined __stub_$ac_func || defined __stub___$ac_func
21243 return $ac_func ();
21248 rm -f conftest.$ac_objext conftest$ac_exeext
21249 if { (ac_try="$ac_link"
21250 case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_link") 2>conftest.er1
21257 grep -v '^ *+' conftest.er1 >conftest.err
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } &&
21262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21263 { (case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_try") 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest$ac_exeext'
21273 { (case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_try") 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 eval "$as_ac_var=yes"
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 eval "$as_ac_var=no"
21290 rm -f core conftest.err conftest.$ac_objext \
21291 conftest$ac_exeext conftest.$ac_ext
21293 ac_res=`eval echo '${'$as_ac_var'}'`
21294 { echo "$as_me:$LINENO: result: $ac_res" >&5
21295 echo "${ECHO_T}$ac_res" >&6; }
21296 if test `eval echo '${'$as_ac_var'}'` = yes; then
21297 cat >>confdefs.h <<_ACEOF
21298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21304 { echo "$as_me:$LINENO: checking for working mmap" >&5
21305 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21306 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21309 if test "$cross_compiling" = yes; then
21310 ac_cv_func_mmap_fixed_mapped=no
21312 cat >conftest.$ac_ext <<_ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h. */
21318 $ac_includes_default
21319 /* malloc might have been renamed as rpl_malloc. */
21322 /* Thanks to Mike Haertel and Jim Avera for this test.
21323 Here is a matrix of mmap possibilities:
21324 mmap private not fixed
21325 mmap private fixed at somewhere currently unmapped
21326 mmap private fixed at somewhere already mapped
21327 mmap shared not fixed
21328 mmap shared fixed at somewhere currently unmapped
21329 mmap shared fixed at somewhere already mapped
21330 For private mappings, we should verify that changes cannot be read()
21331 back from the file, nor mmap's back from the file at a different
21332 address. (There have been systems where private was not correctly
21333 implemented like the infamous i386 svr4.0, and systems where the
21334 VM page cache was not coherent with the file system buffer cache
21335 like early versions of FreeBSD and possibly contemporary NetBSD.)
21336 For shared mappings, we should conversely verify that changes get
21337 propagated back to all the places they're supposed to be.
21339 Grep wants private fixed already mapped.
21340 The main things grep needs to know about mmap are:
21341 * does it exist and is it safe to write into the mmap'd area
21342 * how to use it (BSD variants) */
21345 #include <sys/mman.h>
21347 #if !STDC_HEADERS && !HAVE_STDLIB_H
21351 /* This mess was copied from the GNU getpagesize.h. */
21352 #if !HAVE_GETPAGESIZE
21353 /* Assume that all systems that can run configure have sys/param.h. */
21354 # if !HAVE_SYS_PARAM_H
21355 # define HAVE_SYS_PARAM_H 1
21358 # ifdef _SC_PAGESIZE
21359 # define getpagesize() sysconf(_SC_PAGESIZE)
21360 # else /* no _SC_PAGESIZE */
21361 # if HAVE_SYS_PARAM_H
21362 # include <sys/param.h>
21363 # ifdef EXEC_PAGESIZE
21364 # define getpagesize() EXEC_PAGESIZE
21365 # else /* no EXEC_PAGESIZE */
21367 # define getpagesize() NBPG * CLSIZE
21370 # endif /* no CLSIZE */
21371 # else /* no NBPG */
21373 # define getpagesize() NBPC
21374 # else /* no NBPC */
21376 # define getpagesize() PAGESIZE
21377 # endif /* PAGESIZE */
21378 # endif /* no NBPC */
21379 # endif /* no NBPG */
21380 # endif /* no EXEC_PAGESIZE */
21381 # else /* no HAVE_SYS_PARAM_H */
21382 # define getpagesize() 8192 /* punt totally */
21383 # endif /* no HAVE_SYS_PARAM_H */
21384 # endif /* no _SC_PAGESIZE */
21386 #endif /* no HAVE_GETPAGESIZE */
21391 char *data, *data2, *data3;
21395 pagesize = getpagesize ();
21397 /* First, make a file with some known garbage in it. */
21398 data = (char *) malloc (pagesize);
21401 for (i = 0; i < pagesize; ++i)
21402 *(data + i) = rand ();
21404 fd = creat ("conftest.mmap", 0600);
21407 if (write (fd, data, pagesize) != pagesize)
21411 /* Next, try to mmap the file at a fixed address which already has
21412 something else allocated at it. If we can, also make sure that
21413 we see the same garbage. */
21414 fd = open ("conftest.mmap", O_RDWR);
21417 data2 = (char *) malloc (2 * pagesize);
21420 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21421 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21422 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21424 for (i = 0; i < pagesize; ++i)
21425 if (*(data + i) != *(data2 + i))
21428 /* Finally, make sure that changes to the mapped area do not
21429 percolate back to the file as seen by read(). (This is a bug on
21430 some variants of i386 svr4.0.) */
21431 for (i = 0; i < pagesize; ++i)
21432 *(data2 + i) = *(data2 + i) + 1;
21433 data3 = (char *) malloc (pagesize);
21436 if (read (fd, data3, pagesize) != pagesize)
21438 for (i = 0; i < pagesize; ++i)
21439 if (*(data + i) != *(data3 + i))
21445 rm -f conftest$ac_exeext
21446 if { (ac_try="$ac_link"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_link") 2>&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21456 { (case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_try") 2>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }; then
21465 ac_cv_func_mmap_fixed_mapped=yes
21467 echo "$as_me: program exited with status $ac_status" >&5
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ( exit $ac_status )
21472 ac_cv_func_mmap_fixed_mapped=no
21474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21479 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21480 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21481 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21483 cat >>confdefs.h <<\_ACEOF
21484 #define HAVE_MMAP 1
21488 rm -f conftest.mmap
21490 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21491 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21492 if test "${ac_cv_func_mmap_file+set}" = set; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&6
21496 ac_cpp='$CPP $CPPFLAGS'
21497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21501 if test "$cross_compiling" = yes; then
21502 ac_cv_func_mmap_file=no
21504 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21512 #include <sys/types.h>
21513 #include <sys/mman.h>
21521 fd = creat ("foo",0777);
21522 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21524 return (fd != (int) MAP_FAILED);
21529 rm -f conftest$ac_exeext
21530 if { (ac_try="$ac_link"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_link") 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21540 { (case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_try") 2>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 ac_cv_func_mmap_file=yes
21551 echo "$as_me: program exited with status $ac_status" >&5
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 ( exit $ac_status )
21556 ac_cv_func_mmap_file=no
21558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21563 ac_cpp='$CPP $CPPFLAGS'
21564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21570 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21571 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21572 if test "$ac_cv_func_mmap_file" = yes; then
21574 cat >>confdefs.h <<\_ACEOF
21575 #define HAVE_MMAP_FILE
21582 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21583 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21584 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 if test "$llvm_cv_os_type" = "Interix" ; then
21588 ac_cv_need_dev_zero_for_mmap=yes
21590 ac_cv_need_dev_zero_for_mmap=no
21594 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21595 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21596 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21598 cat >>confdefs.h <<\_ACEOF
21599 #define NEED_DEV_ZERO_FOR_MMAP 1
21604 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21606 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21607 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21609 if test "$ac_cv_func_mmap_file" = "no"
21611 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21612 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21616 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21617 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21619 ac_cpp='$CXXCPP $CPPFLAGS'
21620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21624 cat >conftest.$ac_ext <<_ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21633 volatile unsigned long val = 1;
21634 __sync_synchronize();
21635 __sync_val_compare_and_swap(&val, 1, 0);
21636 __sync_add_and_fetch(&val, 1);
21637 __sync_sub_and_fetch(&val, 1);
21643 rm -f conftest.$ac_objext conftest$ac_exeext
21644 if { (ac_try="$ac_link"
21645 case "(($ac_try" in
21646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647 *) ac_try_echo=$ac_try;;
21649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650 (eval "$ac_link") 2>conftest.er1
21652 grep -v '^ *+' conftest.er1 >conftest.err
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } &&
21657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21658 { (case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_try") 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; } &&
21667 { ac_try='test -s conftest$ac_exeext'
21668 { (case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_try") 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21678 { echo "$as_me:$LINENO: result: yes" >&5
21679 echo "${ECHO_T}yes" >&6; }
21681 cat >>confdefs.h <<\_ACEOF
21682 #define LLVM_HAS_ATOMICS 1
21687 echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21691 { echo "$as_me:$LINENO: result: no" >&5
21692 echo "${ECHO_T}no" >&6; }
21694 cat >>confdefs.h <<\_ACEOF
21695 #define LLVM_HAS_ATOMICS 0
21698 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21699 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21703 rm -f core conftest.err conftest.$ac_objext \
21704 conftest$ac_exeext conftest.$ac_ext
21706 ac_cpp='$CPP $CPPFLAGS'
21707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21713 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21714 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21715 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21716 if test "${llvm_cv_linux_mixed+set}" = set; then
21717 echo $ECHO_N "(cached) $ECHO_C" >&6
21720 ac_cpp='$CPP $CPPFLAGS'
21721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21732 error: Not x86-64 even if uname says so!
21743 rm -f conftest.$ac_objext
21744 if { (ac_try="$ac_compile"
21745 case "(($ac_try" in
21746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747 *) ac_try_echo=$ac_try;;
21749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21750 (eval "$ac_compile") 2>conftest.er1
21752 grep -v '^ *+' conftest.er1 >conftest.err
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
21757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21758 { (case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_try") 2>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; } &&
21767 { ac_try='test -s conftest.$ac_objext'
21768 { (case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_try") 2>&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; }; then
21777 llvm_cv_linux_mixed=no
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 llvm_cv_linux_mixed=yes
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 ac_cpp='$CPP $CPPFLAGS'
21788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21794 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21795 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21797 if test "$llvm_cv_linux_mixed" = "yes"; then
21798 llvm_cv_target_arch="x86"
21804 for ac_func in __dso_handle
21806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 cat >conftest.$ac_ext <<_ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21820 #define $ac_func innocuous_$ac_func
21822 /* System header to define __stub macros and hopefully few prototypes,
21823 which can conflict with char $ac_func (); below.
21824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21825 <limits.h> exists even on freestanding compilers. */
21828 # include <limits.h>
21830 # include <assert.h>
21835 /* Override any GCC internal prototype to avoid an error.
21836 Use char because int might match the return type of a GCC
21837 builtin and then its argument prototype would still apply. */
21842 /* The GNU C library defines this for functions which it implements
21843 to always fail with ENOSYS. Some functions are actually named
21844 something starting with __ and the normal name is an alias. */
21845 #if defined __stub_$ac_func || defined __stub___$ac_func
21852 return $ac_func ();
21857 rm -f conftest.$ac_objext conftest$ac_exeext
21858 if { (ac_try="$ac_link"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_link") 2>conftest.er1
21866 grep -v '^ *+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } &&
21871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21872 { (case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_try") 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; } &&
21881 { ac_try='test -s conftest$ac_exeext'
21882 { (case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887 (eval "$ac_try") 2>&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); }; }; then
21891 eval "$as_ac_var=yes"
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 eval "$as_ac_var=no"
21899 rm -f core conftest.err conftest.$ac_objext \
21900 conftest$ac_exeext conftest.$ac_ext
21902 ac_res=`eval echo '${'$as_ac_var'}'`
21903 { echo "$as_me:$LINENO: result: $ac_res" >&5
21904 echo "${ECHO_T}$ac_res" >&6; }
21905 if test `eval echo '${'$as_ac_var'}'` = yes; then
21906 cat >>confdefs.h <<_ACEOF
21907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21914 SHLIBEXT=$libltdl_cv_shlibext
21917 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21920 if test "${prefix}" = "NONE" ; then
21921 prefix="/usr/local"
21923 eval LLVM_PREFIX="${prefix}";
21924 eval LLVM_BINDIR="${prefix}/bin";
21925 eval LLVM_DATADIR="${prefix}/share/llvm";
21926 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21927 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21928 eval LLVM_INCLUDEDIR="${prefix}/include";
21929 eval LLVM_INFODIR="${prefix}/info";
21930 eval LLVM_MANDIR="${prefix}/man";
21931 LLVM_CONFIGTIME=`date`
21942 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21943 LLVM_CONFIGTIME="(timestamp not enabled)"
21947 cat >>confdefs.h <<_ACEOF
21948 #define LLVM_PREFIX "$LLVM_PREFIX"
21952 cat >>confdefs.h <<_ACEOF
21953 #define LLVM_BINDIR "$LLVM_BINDIR"
21957 cat >>confdefs.h <<_ACEOF
21958 #define LLVM_DATADIR "$LLVM_DATADIR"
21962 cat >>confdefs.h <<_ACEOF
21963 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21967 cat >>confdefs.h <<_ACEOF
21968 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21972 cat >>confdefs.h <<_ACEOF
21973 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21977 cat >>confdefs.h <<_ACEOF
21978 #define LLVM_INFODIR "$LLVM_INFODIR"
21982 cat >>confdefs.h <<_ACEOF
21983 #define LLVM_MANDIR "$LLVM_MANDIR"
21987 cat >>confdefs.h <<_ACEOF
21988 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21992 cat >>confdefs.h <<_ACEOF
21993 #define LLVM_HOST_TRIPLE "$host"
21997 cat >>confdefs.h <<_ACEOF
21998 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22002 if test "$BINDINGS_TO_BUILD" = auto ; then
22003 BINDINGS_TO_BUILD=""
22004 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22005 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22008 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22014 binding_prereqs_failed=0
22015 for a_binding in $BINDINGS_TO_BUILD ; do
22016 case "$a_binding" in
22018 if test "x$OCAMLC" = x ; then
22019 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22020 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22021 binding_prereqs_failed=1
22023 if test "x$OCAMLDEP" = x ; then
22024 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22025 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22026 binding_prereqs_failed=1
22028 if test "x$OCAMLOPT" = x ; then
22029 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22030 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22032 if test "x$with_ocaml_libdir" != xauto ; then
22033 OCAML_LIBDIR=$with_ocaml_libdir
22036 ocaml_stdlib="`"$OCAMLC" -where`"
22037 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22039 # ocaml stdlib is beneath our prefix; use stdlib
22040 OCAML_LIBDIR=$ocaml_stdlib
22043 # ocaml stdlib is outside our prefix; use libdir/ocaml
22044 OCAML_LIBDIR=${prefix}/lib/ocaml
22051 if test "$binding_prereqs_failed" = 1 ; then
22052 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22053 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22054 { (exit 1); exit 1; }; }
22057 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22058 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22059 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 ac_cpp='$CXXCPP $CPPFLAGS'
22064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22068 oldcxxflags="$CXXFLAGS"
22069 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22085 rm -f conftest.$ac_objext
22086 if { (ac_try="$ac_compile"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_compile") 2>conftest.er1
22094 grep -v '^ *+' conftest.er1 >conftest.err
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } &&
22099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22100 { (case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_try") 2>&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; } &&
22109 { ac_try='test -s conftest.$ac_objext'
22110 { (case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_try") 2>&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22119 llvm_cv_cxx_visibility_inlines_hidden=yes
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 llvm_cv_cxx_visibility_inlines_hidden=no
22127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22128 CXXFLAGS="$oldcxxflags"
22130 ac_cpp='$CPP $CPPFLAGS'
22131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22137 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22138 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22139 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22140 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22143 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22148 if test "$llvm_cv_link_use_r" = "yes" ; then
22155 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22156 RDYNAMIC="-rdynamic"
22163 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22170 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22172 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22174 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22176 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22178 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22181 ac_config_files="$ac_config_files Makefile.config"
22184 ac_config_files="$ac_config_files llvm.spec"
22187 ac_config_files="$ac_config_files docs/doxygen.cfg"
22190 if test "${clang_src_root}" = ""; then
22191 clang_src_root="$srcdir/tools/clang"
22193 if test -f ${clang_src_root}/README.txt; then
22194 configh="include/clang/Config/config.h"
22195 doxy="docs/doxygen.cfg"
22196 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22198 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22202 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22205 test "x$program_prefix" = "xNONE" && program_prefix=""
22209 ac_config_commands="$ac_config_commands setup"
22211 ac_config_commands="$ac_config_commands Makefile"
22214 ac_config_commands="$ac_config_commands Makefile.common"
22217 ac_config_commands="$ac_config_commands examples/Makefile"
22220 ac_config_commands="$ac_config_commands lib/Makefile"
22223 ac_config_commands="$ac_config_commands runtime/Makefile"
22226 ac_config_commands="$ac_config_commands test/Makefile"
22229 ac_config_commands="$ac_config_commands test/Makefile.tests"
22232 ac_config_commands="$ac_config_commands unittests/Makefile"
22235 ac_config_commands="$ac_config_commands tools/Makefile"
22238 ac_config_commands="$ac_config_commands utils/Makefile"
22241 ac_config_commands="$ac_config_commands projects/Makefile"
22244 ac_config_commands="$ac_config_commands bindings/Makefile"
22247 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22251 cat >confcache <<\_ACEOF
22252 # This file is a shell script that caches the results of configure
22253 # tests run on this system so they can be shared between configure
22254 # scripts and configure runs, see configure's option --config-cache.
22255 # It is not useful on other systems. If it contains results you don't
22256 # want to keep, you may remove or edit it.
22258 # config.status only pays attention to the cache file if you give it
22259 # the --recheck option to rerun configure.
22261 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22262 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22263 # following values.
22267 # The following way of writing the cache mishandles newlines in values,
22268 # but we know of no workaround that is simple, portable, and efficient.
22269 # So, we kill variables containing newlines.
22270 # Ultrix sh set writes to stderr and can't be redirected directly,
22271 # and sets the high bit in the cache file unless we assign to the vars.
22273 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22274 eval ac_val=\$$ac_var
22278 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22279 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22282 _ | IFS | as_nl) ;; #(
22283 *) $as_unset $ac_var ;;
22289 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22290 *${as_nl}ac_space=\ *)
22291 # `set' does not quote correctly, so add quotes (double-quote
22292 # substitution turns \\\\ into \\, and sed turns \\ into \).
22295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22298 # `set' quotes correctly as required by POSIX, so do not add quotes.
22299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22310 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22312 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22313 if test -w "$cache_file"; then
22314 test "x$cache_file" != "x/dev/null" &&
22315 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22316 echo "$as_me: updating cache $cache_file" >&6;}
22317 cat confcache >$cache_file
22319 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22320 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22326 # Let make expand exec_prefix.
22327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22329 DEFS=-DHAVE_CONFIG_H
22333 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22334 # 1. Remove the extension, and $U if already installed.
22335 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22336 ac_i=`echo "$ac_i" | sed "$ac_script"`
22337 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22338 # will be set to the directory where LIBOBJS objects are built.
22339 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22340 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22342 LIBOBJS=$ac_libobjs
22344 LTLIBOBJS=$ac_ltlibobjs
22347 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22348 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22349 Usually this means the macro was only invoked conditionally." >&5
22350 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22351 Usually this means the macro was only invoked conditionally." >&2;}
22352 { (exit 1); exit 1; }; }
22354 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22355 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22356 Usually this means the macro was only invoked conditionally." >&5
22357 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22358 Usually this means the macro was only invoked conditionally." >&2;}
22359 { (exit 1); exit 1; }; }
22362 : ${CONFIG_STATUS=./config.status}
22363 ac_clean_files_save=$ac_clean_files
22364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22365 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22366 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22367 cat >$CONFIG_STATUS <<_ACEOF
22369 # Generated by $as_me.
22370 # Run this file to recreate the current configuration.
22371 # Compiler output produced by configure, useful for debugging
22372 # configure, is in config.log if it exists.
22375 ac_cs_recheck=false
22377 SHELL=\${CONFIG_SHELL-$SHELL}
22380 cat >>$CONFIG_STATUS <<\_ACEOF
22381 ## --------------------- ##
22382 ## M4sh Initialization. ##
22383 ## --------------------- ##
22385 # Be Bourne compatible
22386 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22389 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22390 # is contrary to our usage. Disable this feature.
22391 alias -g '${1+"$@"}'='"$@"'
22392 setopt NO_GLOB_SUBST
22394 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22396 BIN_SH=xpg4; export BIN_SH # for Tru64
22397 DUALCASE=1; export DUALCASE # for MKS sh
22401 # Avoid depending upon Character Ranges.
22402 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22403 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22404 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22405 as_cr_digits='0123456789'
22406 as_cr_alnum=$as_cr_Letters$as_cr_digits
22408 # The user is always right.
22409 if test "${PATH_SEPARATOR+set}" != set; then
22410 echo "#! /bin/sh" >conf$$.sh
22411 echo "exit 0" >>conf$$.sh
22413 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22421 # Support unset when possible.
22422 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22430 # We need space, tab and new line, in precisely that order. Quoting is
22431 # there to prevent editors from complaining about space-tab.
22432 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22433 # splitting by setting IFS to empty value.)
22438 # Find who we are. Look in the path if we contain no directory separator.
22440 *[\\/]* ) as_myself=$0 ;;
22441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22442 for as_dir in $PATH
22445 test -z "$as_dir" && as_dir=.
22446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22452 # We did not find ourselves, most probably we were run as `sh COMMAND'
22453 # in which case we are not to be found in the path.
22454 if test "x$as_myself" = x; then
22457 if test ! -f "$as_myself"; then
22458 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22459 { (exit 1); exit 1; }
22462 # Work around bugs in pre-3.0 UWIN ksh.
22463 for as_var in ENV MAIL MAILPATH
22464 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22472 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22473 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22474 LC_TELEPHONE LC_TIME
22476 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22477 eval $as_var=C; export $as_var
22479 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22483 # Required to use basename.
22484 if expr a : '\(a\)' >/dev/null 2>&1 &&
22485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22491 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22492 as_basename=basename
22498 # Name of the executable.
22499 as_me=`$as_basename -- "$0" ||
22500 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22501 X"$0" : 'X\(//\)$' \| \
22502 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22504 sed '/^.*\/\([^/][^/]*\)\/*$/{
22523 as_lineno_1=$LINENO
22524 as_lineno_2=$LINENO
22525 test "x$as_lineno_1" != "x$as_lineno_2" &&
22526 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22529 # uniformly replaced by the line number. The first 'sed' inserts a
22530 # line-number line after each line using $LINENO; the second 'sed'
22531 # does the real work. The second script uses 'N' to pair each
22532 # line-number line with the line containing $LINENO, and appends
22533 # trailing '-' during substitution so that $LINENO is not a special
22534 # case at line end.
22535 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22536 # scripts with optimization help from Paolo Bonzini. Blame Lee
22537 # E. McMahon (1931-1989) for sed's syntax. :-)
22549 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22552 ' >$as_me.lineno &&
22553 chmod +x "$as_me.lineno" ||
22554 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22555 { (exit 1); exit 1; }; }
22557 # Don't try to exec as it changes $[0], causing all sort of problems
22558 # (the dirname of $[0] is not the place where we might find the
22559 # original and so on. Autoconf is especially sensitive to this).
22560 . "./$as_me.lineno"
22561 # Exit status is that of the last command.
22566 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22572 ECHO_C= ECHO_N= ECHO_T=
22573 case `echo -n x` in
22575 case `echo 'x\c'` in
22576 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22583 if expr a : '\(a\)' >/dev/null 2>&1 &&
22584 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22590 rm -f conf$$ conf$$.exe conf$$.file
22591 if test -d conf$$.dir; then
22592 rm -f conf$$.dir/conf$$.file
22598 if ln -s conf$$.file conf$$ 2>/dev/null; then
22600 # ... but there are two gotchas:
22601 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22602 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22603 # In both cases, we have to default to `cp -p'.
22604 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22606 elif ln conf$$.file conf$$ 2>/dev/null; then
22611 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22612 rmdir conf$$.dir 2>/dev/null
22614 if mkdir -p . 2>/dev/null; then
22617 test -d ./-p && rmdir ./-p
22621 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22622 # systems may use methods other than mode bits to determine executability.
22623 cat >conf$$.file <<_ASEOF
22627 chmod +x conf$$.file
22628 if test -x conf$$.file >/dev/null 2>&1; then
22629 as_executable_p="test -x"
22635 # Sed expression to map a string onto a valid CPP name.
22636 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22638 # Sed expression to map a string onto a valid variable name.
22639 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22644 # Save the log message, to keep $[0] and so on meaningful, and to
22645 # report actual input values of CONFIG_FILES etc. instead of their
22646 # values after options handling.
22648 This file was extended by LLVM $as_me 3.4svn, which was
22649 generated by GNU Autoconf 2.60. Invocation command line was
22651 CONFIG_FILES = $CONFIG_FILES
22652 CONFIG_HEADERS = $CONFIG_HEADERS
22653 CONFIG_LINKS = $CONFIG_LINKS
22654 CONFIG_COMMANDS = $CONFIG_COMMANDS
22657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22662 cat >>$CONFIG_STATUS <<_ACEOF
22663 # Files that config.status was made for.
22664 config_files="$ac_config_files"
22665 config_headers="$ac_config_headers"
22666 config_commands="$ac_config_commands"
22670 cat >>$CONFIG_STATUS <<\_ACEOF
22672 \`$as_me' instantiates files from templates according to the
22673 current configuration.
22675 Usage: $0 [OPTIONS] [FILE]...
22677 -h, --help print this help, then exit
22678 -V, --version print version number, then exit
22679 -q, --quiet do not print progress messages
22680 -d, --debug don't remove temporary files
22681 --recheck update $as_me by reconfiguring in the same conditions
22682 --file=FILE[:TEMPLATE]
22683 instantiate the configuration file FILE
22684 --header=FILE[:TEMPLATE]
22685 instantiate the configuration header FILE
22687 Configuration files:
22690 Configuration headers:
22693 Configuration commands:
22696 Report bugs to <bug-autoconf@gnu.org>."
22699 cat >>$CONFIG_STATUS <<_ACEOF
22701 LLVM config.status 3.4svn
22702 configured by $0, generated by GNU Autoconf 2.60,
22703 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22705 Copyright (C) 2006 Free Software Foundation, Inc.
22706 This config.status script is free software; the Free Software Foundation
22707 gives unlimited permission to copy, distribute and modify it."
22714 cat >>$CONFIG_STATUS <<\_ACEOF
22715 # If no file are specified by the user, then we need to provide default
22716 # value. By we need to know if files were specified by the user.
22722 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22723 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22734 # Handling of the options.
22735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22737 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22738 echo "$ac_cs_version"; exit ;;
22739 --debug | --debu | --deb | --de | --d | -d )
22741 --file | --fil | --fi | --f )
22743 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22744 ac_need_defaults=false;;
22745 --header | --heade | --head | --hea )
22747 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22748 ac_need_defaults=false;;
22750 # Conflict between --help and --header
22751 { echo "$as_me: error: ambiguous option: $1
22752 Try \`$0 --help' for more information." >&2
22753 { (exit 1); exit 1; }; };;
22754 --help | --hel | -h )
22755 echo "$ac_cs_usage"; exit ;;
22756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22757 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22760 # This is an error.
22761 -*) { echo "$as_me: error: unrecognized option: $1
22762 Try \`$0 --help' for more information." >&2
22763 { (exit 1); exit 1; }; } ;;
22765 *) ac_config_targets="$ac_config_targets $1"
22766 ac_need_defaults=false ;;
22772 ac_configure_extra_args=
22774 if $ac_cs_silent; then
22776 ac_configure_extra_args="$ac_configure_extra_args --silent"
22780 cat >>$CONFIG_STATUS <<_ACEOF
22781 if \$ac_cs_recheck; then
22782 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22783 CONFIG_SHELL=$SHELL
22784 export CONFIG_SHELL
22785 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22789 cat >>$CONFIG_STATUS <<\_ACEOF
22793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22794 ## Running $as_me. ##
22800 cat >>$CONFIG_STATUS <<_ACEOF
22804 llvm_src="${srcdir}"
22808 cat >>$CONFIG_STATUS <<\_ACEOF
22810 # Handling of arguments.
22811 for ac_config_target in $ac_config_targets
22813 case $ac_config_target in
22814 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22815 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22816 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22817 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22818 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22819 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22820 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22821 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22822 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22823 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22824 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22825 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22826 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22827 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22828 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22829 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22830 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22831 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22832 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22833 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22834 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22835 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22836 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22837 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22838 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22839 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22840 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22842 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22843 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22844 { (exit 1); exit 1; }; };;
22849 # If the user did not use the arguments to specify the items to instantiate,
22850 # then the envvar interface is used. Set only those that are not.
22851 # We use the long form for the default assignment because of an extremely
22852 # bizarre bug on SunOS 4.1.3.
22853 if $ac_need_defaults; then
22854 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22855 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22856 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22859 # Have a temporary directory for convenience. Make it in the build tree
22860 # simply because there is no reason against having it here, and in addition,
22861 # creating and moving files from /tmp can sometimes cause problems.
22862 # Hook for its removal unless debugging.
22863 # Note that there is a small window in which the directory will not be cleaned:
22864 # after its creation but before its name has been assigned to `$tmp'.
22868 trap 'exit_status=$?
22869 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22871 trap '{ (exit 1); exit 1; }' 1 2 13 15
22873 # Create a (secure) tmp directory for tmp files.
22876 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22877 test -n "$tmp" && test -d "$tmp"
22880 tmp=./conf$$-$RANDOM
22881 (umask 077 && mkdir "$tmp")
22884 echo "$me: cannot create a temporary directory in ." >&2
22885 { (exit 1); exit 1; }
22889 # Set up the sed scripts for CONFIG_FILES section.
22892 # No need to generate the scripts if there are no CONFIG_FILES.
22893 # This happens for instance when ./config.status config.h
22894 if test -n "$CONFIG_FILES"; then
22901 for ac_last_try in false false false false false :; do
22902 cat >conf$$subs.sed <<_ACEOF
22903 SHELL!$SHELL$ac_delim
22904 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22905 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22906 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22907 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22908 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22909 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22910 exec_prefix!$exec_prefix$ac_delim
22911 prefix!$prefix$ac_delim
22912 program_transform_name!$program_transform_name$ac_delim
22913 bindir!$bindir$ac_delim
22914 sbindir!$sbindir$ac_delim
22915 libexecdir!$libexecdir$ac_delim
22916 datarootdir!$datarootdir$ac_delim
22917 datadir!$datadir$ac_delim
22918 sysconfdir!$sysconfdir$ac_delim
22919 sharedstatedir!$sharedstatedir$ac_delim
22920 localstatedir!$localstatedir$ac_delim
22921 includedir!$includedir$ac_delim
22922 oldincludedir!$oldincludedir$ac_delim
22923 docdir!$docdir$ac_delim
22924 infodir!$infodir$ac_delim
22925 htmldir!$htmldir$ac_delim
22926 dvidir!$dvidir$ac_delim
22927 pdfdir!$pdfdir$ac_delim
22928 psdir!$psdir$ac_delim
22929 libdir!$libdir$ac_delim
22930 localedir!$localedir$ac_delim
22931 mandir!$mandir$ac_delim
22932 DEFS!$DEFS$ac_delim
22933 ECHO_C!$ECHO_C$ac_delim
22934 ECHO_N!$ECHO_N$ac_delim
22935 ECHO_T!$ECHO_T$ac_delim
22936 LIBS!$LIBS$ac_delim
22937 build_alias!$build_alias$ac_delim
22938 host_alias!$host_alias$ac_delim
22939 target_alias!$target_alias$ac_delim
22940 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22942 CFLAGS!$CFLAGS$ac_delim
22943 LDFLAGS!$LDFLAGS$ac_delim
22944 CPPFLAGS!$CPPFLAGS$ac_delim
22945 ac_ct_CC!$ac_ct_CC$ac_delim
22946 EXEEXT!$EXEEXT$ac_delim
22947 OBJEXT!$OBJEXT$ac_delim
22949 CXXFLAGS!$CXXFLAGS$ac_delim
22950 ac_ct_CXX!$ac_ct_CXX$ac_delim
22952 subdirs!$subdirs$ac_delim
22953 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22954 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22955 build!$build$ac_delim
22956 build_cpu!$build_cpu$ac_delim
22957 build_vendor!$build_vendor$ac_delim
22958 build_os!$build_os$ac_delim
22959 host!$host$ac_delim
22960 host_cpu!$host_cpu$ac_delim
22961 host_vendor!$host_vendor$ac_delim
22962 host_os!$host_os$ac_delim
22963 target!$target$ac_delim
22964 target_cpu!$target_cpu$ac_delim
22965 target_vendor!$target_vendor$ac_delim
22966 target_os!$target_os$ac_delim
22968 HOST_OS!$HOST_OS$ac_delim
22969 TARGET_OS!$TARGET_OS$ac_delim
22970 LINKALL!$LINKALL$ac_delim
22971 NOLINKALL!$NOLINKALL$ac_delim
22972 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22973 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22974 ARCH!$ARCH$ac_delim
22975 HOST_ARCH!$HOST_ARCH$ac_delim
22976 ENDIAN!$ENDIAN$ac_delim
22977 GREP!$GREP$ac_delim
22978 EGREP!$EGREP$ac_delim
22979 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22980 BUILD_CC!$BUILD_CC$ac_delim
22981 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22982 BUILD_CXX!$BUILD_CXX$ac_delim
22983 CVSBUILD!$CVSBUILD$ac_delim
22984 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22985 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22986 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22987 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22988 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22989 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22990 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22991 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22992 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22993 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22994 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22995 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22996 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22997 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22998 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23002 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23004 elif $ac_last_try; then
23005 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23006 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23007 { (exit 1); exit 1; }; }
23009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23013 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23014 if test -n "$ac_eof"; then
23015 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23016 ac_eof=`expr $ac_eof + 1`
23019 cat >>$CONFIG_STATUS <<_ACEOF
23020 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23024 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23025 s/^/s,@/; s/!/@,|#_!!_#|/
23028 s/'"$ac_delim"'$/,g/; t
23030 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23031 ' >>$CONFIG_STATUS <conf$$subs.sed
23032 rm -f conf$$subs.sed
23033 cat >>$CONFIG_STATUS <<_ACEOF
23039 for ac_last_try in false false false false false :; do
23040 cat >conf$$subs.sed <<_ACEOF
23041 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23042 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23043 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23044 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23045 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23046 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23047 ENABLE_PIC!$ENABLE_PIC$ac_delim
23048 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23049 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23050 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23051 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23052 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23053 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23054 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23055 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23056 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23057 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23058 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23059 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23060 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23061 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23062 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23064 ifGNUmake!$ifGNUmake$ac_delim
23065 LN_S!$LN_S$ac_delim
23068 DATE!$DATE$ac_delim
23069 FIND!$FIND$ac_delim
23070 MKDIR!$MKDIR$ac_delim
23072 RANLIB!$RANLIB$ac_delim
23077 BINPWD!$BINPWD$ac_delim
23078 GRAPHVIZ!$GRAPHVIZ$ac_delim
23081 NEATO!$NEATO$ac_delim
23082 TWOPI!$TWOPI$ac_delim
23083 CIRCO!$CIRCO$ac_delim
23085 DOTTY!$DOTTY$ac_delim
23086 XDOT!$XDOT$ac_delim
23087 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23088 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23089 INSTALL_DATA!$INSTALL_DATA$ac_delim
23090 BZIP2!$BZIP2$ac_delim
23092 DOXYGEN!$DOXYGEN$ac_delim
23093 GROFF!$GROFF$ac_delim
23094 GZIPBIN!$GZIPBIN$ac_delim
23095 PDFROFF!$PDFROFF$ac_delim
23097 OCAMLC!$OCAMLC$ac_delim
23098 OCAMLOPT!$OCAMLOPT$ac_delim
23099 OCAMLDEP!$OCAMLDEP$ac_delim
23100 OCAMLDOC!$OCAMLDOC$ac_delim
23102 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23103 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23104 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23105 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23106 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23107 LIBADD_DL!$LIBADD_DL$ac_delim
23108 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23109 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23110 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23111 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23112 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23113 PYTHON!$PYTHON$ac_delim
23114 USE_UDIS86!$USE_UDIS86$ac_delim
23115 USE_OPROFILE!$USE_OPROFILE$ac_delim
23116 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23117 XML2CONFIG!$XML2CONFIG$ac_delim
23118 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23119 LIBXML2_INC!$LIBXML2_INC$ac_delim
23120 CXXCPP!$CXXCPP$ac_delim
23121 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23122 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23123 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23124 MMAP_FILE!$MMAP_FILE$ac_delim
23125 SHLIBEXT!$SHLIBEXT$ac_delim
23126 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23127 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23128 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23129 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23130 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23131 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23132 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23133 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23134 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23135 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23136 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23137 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23140 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23142 elif $ac_last_try; then
23143 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23144 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23145 { (exit 1); exit 1; }; }
23147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23151 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23152 if test -n "$ac_eof"; then
23153 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23154 ac_eof=`expr $ac_eof + 1`
23157 cat >>$CONFIG_STATUS <<_ACEOF
23158 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23162 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23163 s/^/s,@/; s/!/@,|#_!!_#|/
23166 s/'"$ac_delim"'$/,g/; t
23168 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23169 ' >>$CONFIG_STATUS <conf$$subs.sed
23170 rm -f conf$$subs.sed
23171 cat >>$CONFIG_STATUS <<_ACEOF
23177 for ac_last_try in false false false false false :; do
23178 cat >conf$$subs.sed <<_ACEOF
23179 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23180 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23181 RPATH!$RPATH$ac_delim
23182 RDYNAMIC!$RDYNAMIC$ac_delim
23183 program_prefix!$program_prefix$ac_delim
23184 LIBOBJS!$LIBOBJS$ac_delim
23185 LTLIBOBJS!$LTLIBOBJS$ac_delim
23188 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23190 elif $ac_last_try; then
23191 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23192 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23193 { (exit 1); exit 1; }; }
23195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23199 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23200 if test -n "$ac_eof"; then
23201 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23202 ac_eof=`expr $ac_eof + 1`
23205 cat >>$CONFIG_STATUS <<_ACEOF
23206 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23210 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23211 s/^/s,@/; s/!/@,|#_!!_#|/
23214 s/'"$ac_delim"'$/,g/; t
23216 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23217 ' >>$CONFIG_STATUS <conf$$subs.sed
23218 rm -f conf$$subs.sed
23219 cat >>$CONFIG_STATUS <<_ACEOF
23226 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23227 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23228 # trailing colons and then remove the whole line if VPATH becomes empty
23229 # (actually we leave an empty line to preserve line numbers).
23230 if test "x$srcdir" = x.; then
23231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23232 s/:*\$(srcdir):*/:/
23233 s/:*\${srcdir}:*/:/
23235 s/^\([^=]*=[ ]*\):*/\1/
23241 cat >>$CONFIG_STATUS <<\_ACEOF
23242 fi # test -n "$CONFIG_FILES"
23245 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23248 :[FHLC]) ac_mode=$ac_tag; continue;;
23250 case $ac_mode$ac_tag in
23252 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23253 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23254 { (exit 1); exit 1; }; };;
23255 :[FH]-) ac_tag=-:-;;
23256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23273 -) ac_f="$tmp/stdin";;
23274 *) # Look for the file first in the build tree, then in the source tree
23275 # (if the path is not absolute). The absolute path cannot be DOS-style,
23276 # because $ac_f cannot contain `:'.
23280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23282 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23283 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23284 { (exit 1); exit 1; }; };;
23286 ac_file_inputs="$ac_file_inputs $ac_f"
23289 # Let's still pretend it is `configure' which instantiates (i.e., don't
23290 # use $as_me), people would be surprised to read:
23291 # /* config.h. Generated by config.status. */
23292 configure_input="Generated from "`IFS=:
23293 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23294 if test x"$ac_file" != x-; then
23295 configure_input="$ac_file. $configure_input"
23296 { echo "$as_me:$LINENO: creating $ac_file" >&5
23297 echo "$as_me: creating $ac_file" >&6;}
23301 *:-:* | *:-) cat >"$tmp/stdin";;
23306 ac_dir=`$as_dirname -- "$ac_file" ||
23307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23308 X"$ac_file" : 'X\(//\)[^/]' \| \
23309 X"$ac_file" : 'X\(//\)$' \| \
23310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23316 /^X\(\/\/\)[^/].*/{
23331 -*) as_dir=./$as_dir;;
23333 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23337 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23338 *) as_qdir=$as_dir;;
23340 as_dirs="'$as_qdir' $as_dirs"
23341 as_dir=`$as_dirname -- "$as_dir" ||
23342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23343 X"$as_dir" : 'X\(//\)[^/]' \| \
23344 X"$as_dir" : 'X\(//\)$' \| \
23345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23351 /^X\(\/\/\)[^/].*/{
23364 test -d "$as_dir" && break
23366 test -z "$as_dirs" || eval "mkdir $as_dirs"
23367 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23368 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23369 { (exit 1); exit 1; }; }; }
23373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23376 # A ".." for each directory in $ac_dir_suffix.
23377 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23378 case $ac_top_builddir_sub in
23379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23383 ac_abs_top_builddir=$ac_pwd
23384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23385 # for backward compatibility:
23386 ac_top_builddir=$ac_top_build_prefix
23389 .) # We are building in place.
23391 ac_top_srcdir=$ac_top_builddir_sub
23392 ac_abs_top_srcdir=$ac_pwd ;;
23393 [\\/]* | ?:[\\/]* ) # Absolute name.
23394 ac_srcdir=$srcdir$ac_dir_suffix;
23395 ac_top_srcdir=$srcdir
23396 ac_abs_top_srcdir=$srcdir ;;
23397 *) # Relative name.
23398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23399 ac_top_srcdir=$ac_top_build_prefix$srcdir
23400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23417 cat >>$CONFIG_STATUS <<\_ACEOF
23418 # If the template does not know about datarootdir, expand it.
23419 # FIXME: This hack should be removed a few years after 2.60.
23420 ac_datarootdir_hack=; ac_datarootdir_seen=
23422 case `sed -n '/datarootdir/ {
23431 ' $ac_file_inputs` in
23432 *datarootdir*) ac_datarootdir_seen=yes;;
23433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23434 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23435 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23437 cat >>$CONFIG_STATUS <<_ACEOF
23438 ac_datarootdir_hack='
23439 s&@datadir@&$datadir&g
23440 s&@docdir@&$docdir&g
23441 s&@infodir@&$infodir&g
23442 s&@localedir@&$localedir&g
23443 s&@mandir@&$mandir&g
23444 s&\\\${datarootdir}&$datarootdir&g' ;;
23448 # Neutralize VPATH when `$srcdir' = `.'.
23449 # Shell code in configure.ac might set extrasub.
23450 # FIXME: do we really want to maintain this feature?
23451 cat >>$CONFIG_STATUS <<_ACEOF
23455 cat >>$CONFIG_STATUS <<\_ACEOF
23457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23458 s&@configure_input@&$configure_input&;t t
23459 s&@top_builddir@&$ac_top_builddir_sub&;t t
23460 s&@srcdir@&$ac_srcdir&;t t
23461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23462 s&@top_srcdir@&$ac_top_srcdir&;t t
23463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23464 s&@builddir@&$ac_builddir&;t t
23465 s&@abs_builddir@&$ac_abs_builddir&;t t
23466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23467 s&@INSTALL@&$ac_INSTALL&;t t
23468 $ac_datarootdir_hack
23469 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23474 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23475 which seems to be undefined. Please make sure it is defined." >&5
23476 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23477 which seems to be undefined. Please make sure it is defined." >&2;}
23481 -) cat "$tmp/out"; rm -f "$tmp/out";;
23482 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23491 # Transform confdefs.h into a sed script `conftest.defines', that
23492 # substitutes the proper values into config.h.in to produce config.h.
23493 rm -f conftest.defines conftest.tail
23494 # First, append a space to every undef/define line, to ease matching.
23495 echo 's/$/ /' >conftest.defines
23496 # Then, protect against being on the right side of a sed subst, or in
23497 # an unquoted here document, in config.status. If some macros were
23498 # called several times there might be several #defines for the same
23499 # symbol, which is useless. But do not sort them, since the last
23500 # AC_DEFINE must be honored.
23501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23502 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23503 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23504 # PARAMS is the parameter list in the macro definition--in most cases, it's
23505 # just an empty string.
23506 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23507 ac_dB='\\)[ (].*,\\1define\\2'
23515 s/^[ ]*#[ ]*define[ ][ ]*//
23520 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23521 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23522 ' >>conftest.defines
23524 # Remove the space that was appended to ease matching.
23525 # Then replace #undef with comments. This is necessary, for
23526 # example, in the case of _POSIX_SOURCE, which is predefined and required
23527 # on some systems where configure will not decide to define it.
23528 # (The regexp can be short, since the line contains either #define or #undef.)
23530 s,^[ #]*u.*,/* & */,' >>conftest.defines
23532 # Break up conftest.defines:
23533 ac_max_sed_lines=50
23535 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23536 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23537 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23539 ac_in='$ac_file_inputs'
23540 ac_out='"$tmp/out1"'
23541 ac_nxt='"$tmp/out2"'
23545 # Write a here document:
23546 cat >>$CONFIG_STATUS <<_ACEOF
23547 # First, check the format of the line:
23548 cat >"\$tmp/defines.sed" <<\\CEOF
23549 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23550 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23554 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23556 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23557 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23558 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23559 grep . conftest.tail >/dev/null || break
23560 rm -f conftest.defines
23561 mv conftest.tail conftest.defines
23563 rm -f conftest.defines conftest.tail
23565 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23566 cat >>$CONFIG_STATUS <<\_ACEOF
23567 if test x"$ac_file" != x-; then
23568 echo "/* $configure_input */" >"$tmp/config.h"
23569 cat "$ac_result" >>"$tmp/config.h"
23570 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23571 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23572 echo "$as_me: $ac_file is unchanged" >&6;}
23575 mv "$tmp/config.h" $ac_file
23578 echo "/* $configure_input */"
23584 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23585 echo "$as_me: executing $ac_file commands" >&6;}
23590 case $ac_file$ac_mode in
23591 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23592 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23593 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23594 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23595 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23596 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23597 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23598 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23599 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23600 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23601 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23602 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23603 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23604 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23605 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23606 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23607 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23608 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23609 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23610 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23611 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23612 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23613 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23614 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23615 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23616 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23622 { (exit 0); exit 0; }
23624 chmod +x $CONFIG_STATUS
23625 ac_clean_files=$ac_clean_files_save
23628 # configure is writing to config.log, and then calls config.status.
23629 # config.status does its own redirection, appending to config.log.
23630 # Unfortunately, on DOS this fails, as config.log is still kept open
23631 # by configure, so config.status won't be able to write to it; its
23632 # output is simply discarded. So we exec the FD to /dev/null,
23633 # effectively closing config.log, so it can be properly (re)opened and
23634 # appended to by config.status. When coming back to configure, we
23635 # need to make the FD available again.
23636 if test "$no_create" != yes; then
23638 ac_config_status_args=
23639 test "$silent" = yes &&
23640 ac_config_status_args="$ac_config_status_args --quiet"
23642 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23644 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23645 # would make configure fail if this is the last instruction.
23646 $ac_cs_success || { (exit 1); exit 1; }
23650 # CONFIG_SUBDIRS section.
23652 if test "$no_recursion" != yes; then
23654 # Remove --cache-file and --srcdir arguments so they do not pile up.
23655 ac_sub_configure_args=
23657 eval "set x $ac_configure_args"
23661 if test -n "$ac_prev"; then
23666 -cache-file | --cache-file | --cache-fil | --cache-fi \
23667 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23668 ac_prev=cache_file ;;
23669 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23670 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23673 --config-cache | -C)
23675 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23677 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23679 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23681 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23685 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23687 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23691 # Always prepend --prefix to ensure using the same prefix
23692 # in subdir configurations.
23693 ac_arg="--prefix=$prefix"
23695 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23697 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23700 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23702 # Do not complain, so a configure script can configure whichever
23703 # parts of a large source tree are present.
23704 test -d "$srcdir/$ac_dir" || continue
23706 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23707 echo "$as_me:$LINENO: $ac_msg" >&5
23711 -*) as_dir=./$as_dir;;
23713 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23717 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23718 *) as_qdir=$as_dir;;
23720 as_dirs="'$as_qdir' $as_dirs"
23721 as_dir=`$as_dirname -- "$as_dir" ||
23722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23723 X"$as_dir" : 'X\(//\)[^/]' \| \
23724 X"$as_dir" : 'X\(//\)$' \| \
23725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23731 /^X\(\/\/\)[^/].*/{
23744 test -d "$as_dir" && break
23746 test -z "$as_dirs" || eval "mkdir $as_dirs"
23747 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23748 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23749 { (exit 1); exit 1; }; }; }
23753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23755 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23756 # A ".." for each directory in $ac_dir_suffix.
23757 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23758 case $ac_top_builddir_sub in
23759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23763 ac_abs_top_builddir=$ac_pwd
23764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23765 # for backward compatibility:
23766 ac_top_builddir=$ac_top_build_prefix
23769 .) # We are building in place.
23771 ac_top_srcdir=$ac_top_builddir_sub
23772 ac_abs_top_srcdir=$ac_pwd ;;
23773 [\\/]* | ?:[\\/]* ) # Absolute name.
23774 ac_srcdir=$srcdir$ac_dir_suffix;
23775 ac_top_srcdir=$srcdir
23776 ac_abs_top_srcdir=$srcdir ;;
23777 *) # Relative name.
23778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23779 ac_top_srcdir=$ac_top_build_prefix$srcdir
23780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23787 # Check for guested configure; otherwise get Cygnus style configure.
23788 if test -f "$ac_srcdir/configure.gnu"; then
23789 ac_sub_configure=$ac_srcdir/configure.gnu
23790 elif test -f "$ac_srcdir/configure"; then
23791 ac_sub_configure=$ac_srcdir/configure
23792 elif test -f "$ac_srcdir/configure.in"; then
23793 # This should be Cygnus configure.
23794 ac_sub_configure=$ac_aux_dir/configure
23796 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23797 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23801 # The recursion is here.
23802 if test -n "$ac_sub_configure"; then
23803 # Make the cache file name correct relative to the subdirectory.
23804 case $cache_file in
23805 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23806 *) # Relative name.
23807 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23810 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23811 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23812 # The eval makes quoting arguments work.
23813 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23814 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23815 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23816 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23817 { (exit 1); exit 1; }; }