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
5228 if test ${clang_arcmt} != "no" ; then
5229 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
5230 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
5231 { (exit 1); exit 1; }; }
5233 ENABLE_CLANG_STATIC_ANALYZER=0
5235 default) ENABLE_CLANG_STATIC_ANALYZER=1
5237 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5238 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5242 # Check whether --enable-clang-rewriter was given.
5243 if test "${enable_clang_rewriter+set}" = set; then
5244 enableval=$enable_clang_rewriter;
5249 case "$enableval" in
5250 yes) ENABLE_CLANG_REWRITER=1
5253 if test ${clang_arcmt} != "no" ; then
5254 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5255 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5256 { (exit 1); exit 1; }; }
5258 if test ${clang_static_analyzer} != "no" ; then
5259 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5260 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5261 { (exit 1); exit 1; }; }
5263 ENABLE_CLANG_REWRITER=0
5266 default) ENABLE_CLANG_REWRITER=1
5268 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5269 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5273 # Check whether --enable-optimized was given.
5274 if test "${enable_optimized+set}" = set; then
5275 enableval=$enable_optimized;
5280 if test ${enableval} = "no" ; then
5284 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5288 # Check whether --enable-profiling was given.
5289 if test "${enable_profiling+set}" = set; then
5290 enableval=$enable_profiling;
5295 if test ${enableval} = "no" ; then
5299 ENABLE_PROFILING=ENABLE_PROFILING=1
5303 # Check whether --enable-assertions was given.
5304 if test "${enable_assertions+set}" = set; then
5305 enableval=$enable_assertions;
5310 if test ${enableval} = "yes" ; then
5314 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5318 # Check whether --enable-werror was given.
5319 if test "${enable_werror+set}" = set; then
5320 enableval=$enable_werror;
5325 case "$enableval" in
5326 yes) ENABLE_WERROR=1
5330 default) ENABLE_WERROR=0
5332 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5333 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5334 { (exit 1); exit 1; }; } ;;
5337 # Check whether --enable-expensive-checks was given.
5338 if test "${enable_expensive_checks+set}" = set; then
5339 enableval=$enable_expensive_checks;
5344 if test ${enableval} = "yes" ; then
5345 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5347 EXPENSIVE_CHECKS=yes
5350 ENABLE_EXPENSIVE_CHECKS=
5356 # Check whether --enable-debug-runtime was given.
5357 if test "${enable_debug_runtime+set}" = set; then
5358 enableval=$enable_debug_runtime;
5363 if test ${enableval} = "no" ; then
5367 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5371 # Check whether --enable-debug-symbols was given.
5372 if test "${enable_debug_symbols+set}" = set; then
5373 enableval=$enable_debug_symbols;
5378 if test ${enableval} = "no" ; then
5382 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5386 # Check whether --enable-keep-symbols was given.
5387 if test "${enable_keep_symbols+set}" = set; then
5388 enableval=$enable_keep_symbols;
5393 if test ${enableval} = "no" ; then
5397 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5401 # Check whether --enable-jit was given.
5402 if test "${enable_jit+set}" = set; then
5403 enableval=$enable_jit;
5408 if test ${enableval} = "no"
5413 case "$llvm_cv_target_arch" in
5414 x86) TARGET_HAS_JIT=1
5416 Sparc) TARGET_HAS_JIT=0
5418 PowerPC) TARGET_HAS_JIT=1
5420 x86_64) TARGET_HAS_JIT=1
5422 ARM) TARGET_HAS_JIT=1
5424 AArch64) TARGET_HAS_JIT=0
5426 Mips) TARGET_HAS_JIT=1
5428 XCore) TARGET_HAS_JIT=0
5430 MSP430) TARGET_HAS_JIT=0
5432 Hexagon) TARGET_HAS_JIT=0
5434 NVPTX) TARGET_HAS_JIT=0
5436 SystemZ) TARGET_HAS_JIT=1
5443 # Check whether --enable-docs was given.
5444 if test "${enable_docs+set}" = set; then
5445 enableval=$enable_docs;
5450 case "$enableval" in
5455 default) ENABLE_DOCS=1
5457 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5458 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5459 { (exit 1); exit 1; }; } ;;
5462 # Check whether --enable-doxygen was given.
5463 if test "${enable_doxygen+set}" = set; then
5464 enableval=$enable_doxygen;
5469 case "$enableval" in
5470 yes) ENABLE_DOXYGEN=1
5472 no) ENABLE_DOXYGEN=0
5474 default) ENABLE_DOXYGEN=0
5476 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5477 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5478 { (exit 1); exit 1; }; } ;;
5481 # Check whether --enable-threads was given.
5482 if test "${enable_threads+set}" = set; then
5483 enableval=$enable_threads;
5488 case "$enableval" in
5489 yes) LLVM_ENABLE_THREADS=1
5491 no) LLVM_ENABLE_THREADS=0
5493 default) LLVM_ENABLE_THREADS=1
5495 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5496 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5497 { (exit 1); exit 1; }; } ;;
5500 cat >>confdefs.h <<_ACEOF
5501 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5505 # Check whether --enable-pthreads was given.
5506 if test "${enable_pthreads+set}" = set; then
5507 enableval=$enable_pthreads;
5512 case "$enableval" in
5513 yes) ENABLE_PTHREADS=1
5515 no) ENABLE_PTHREADS=0
5517 default) ENABLE_PTHREADS=1
5519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5520 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5521 { (exit 1); exit 1; }; } ;;
5524 # Check whether --enable-zlib was given.
5525 if test "${enable_zlib+set}" = set; then
5526 enableval=$enable_zlib;
5531 case "$enableval" in
5532 yes) LLVM_ENABLE_ZLIB=1
5534 no) LLVM_ENABLE_ZLIB=0
5536 default) LLVM_ENABLE_ZLIB=1
5538 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5539 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5540 { (exit 1); exit 1; }; } ;;
5543 cat >>confdefs.h <<_ACEOF
5544 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5548 # Check whether --enable-pic was given.
5549 if test "${enable_pic+set}" = set; then
5550 enableval=$enable_pic;
5555 case "$enableval" in
5560 default) ENABLE_PIC=1
5562 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5563 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5564 { (exit 1); exit 1; }; } ;;
5567 cat >>confdefs.h <<_ACEOF
5568 #define ENABLE_PIC $ENABLE_PIC
5572 # Check whether --enable-shared was given.
5573 if test "${enable_shared+set}" = set; then
5574 enableval=$enable_shared;
5579 case "$enableval" in
5580 yes) ENABLE_SHARED=1
5584 default) ENABLE_SHARED=0
5586 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5587 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5588 { (exit 1); exit 1; }; } ;;
5591 # Check whether --enable-embed-stdcxx was given.
5592 if test "${enable_embed_stdcxx+set}" = set; then
5593 enableval=$enable_embed_stdcxx;
5598 case "$enableval" in
5599 yes) ENABLE_EMBED_STDCXX=1
5601 no) ENABLE_EMBED_STDCXX=0
5603 default) ENABLE_EMBED_STDCXX=0
5605 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5606 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5607 { (exit 1); exit 1; }; } ;;
5610 # Check whether --enable-timestamps was given.
5611 if test "${enable_timestamps+set}" = set; then
5612 enableval=$enable_timestamps;
5617 case "$enableval" in
5618 yes) ENABLE_TIMESTAMPS=1
5620 no) ENABLE_TIMESTAMPS=0
5622 default) ENABLE_TIMESTAMPS=1
5624 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5625 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5626 { (exit 1); exit 1; }; } ;;
5629 cat >>confdefs.h <<_ACEOF
5630 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5635 # Check whether --enable-backtraces was given.
5636 if test "${enable_backtraces+set}" = set; then
5637 enableval=$enable_backtraces;
5642 case "$enableval" in
5643 yes) ENABLE_BACKTRACES=1
5645 no) ENABLE_BACKTRACES=0
5647 default) ENABLE_BACKTRACES=1
5649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5650 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5651 { (exit 1); exit 1; }; } ;;
5654 cat >>confdefs.h <<_ACEOF
5655 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5660 # Check whether --enable-targets was given.
5661 if test "${enable_targets+set}" = set; then
5662 enableval=$enable_targets;
5667 if test "$enableval" = host-only ; then
5670 case "$enableval" in
5671 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5672 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5674 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5675 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5676 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5677 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5678 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5679 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5680 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5681 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5682 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5683 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5684 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5685 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5686 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5687 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5688 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5689 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5690 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5691 host) case "$llvm_cv_target_arch" in
5692 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5693 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5694 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5695 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5696 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5697 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5698 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5699 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5700 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5701 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5702 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5703 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5704 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5705 echo "$as_me: error: Can not set target to build" >&2;}
5706 { (exit 1); exit 1; }; } ;;
5708 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5709 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5710 { (exit 1); exit 1; }; } ;;
5716 # Check whether --enable-experimental-targets was given.
5717 if test "${enable_experimental_targets+set}" = set; then
5718 enableval=$enable_experimental_targets;
5724 if test ${enableval} != "disable"
5726 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5729 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5732 for a_target in $TARGETS_TO_BUILD; do
5733 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5739 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5740 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5741 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5742 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5743 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5744 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5746 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5747 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5750 cat >>confdefs.h <<_ACEOF
5751 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5755 cat >>confdefs.h <<_ACEOF
5756 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5760 cat >>confdefs.h <<_ACEOF
5761 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5765 cat >>confdefs.h <<_ACEOF
5766 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5769 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5771 cat >>confdefs.h <<_ACEOF
5772 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5776 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5778 cat >>confdefs.h <<_ACEOF
5779 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5786 LLVM_ENUM_TARGETS=""
5787 LLVM_ENUM_ASM_PRINTERS=""
5788 LLVM_ENUM_ASM_PARSERS=""
5789 LLVM_ENUM_DISASSEMBLERS=""
5790 for target_to_build in $TARGETS_TO_BUILD; do
5791 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5792 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5793 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5795 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5796 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5798 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5799 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5808 # Check whether --with-optimize-option was given.
5809 if test "${with_optimize_option+set}" = set; then
5810 withval=$with_optimize_option;
5815 { echo "$as_me:$LINENO: checking optimization flags" >&5
5816 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5819 case "$llvm_cv_os_type" in
5820 FreeBSD) optimize_option=-O2 ;;
5821 MingW) optimize_option=-O2 ;;
5822 *) optimize_option=-O3 ;;
5824 *) optimize_option="$withval" ;;
5826 OPTIMIZE_OPTION=$optimize_option
5828 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5829 echo "${ECHO_T}$optimize_option" >&6; }
5832 # Check whether --with-extra-options was given.
5833 if test "${with_extra_options+set}" = set; then
5834 withval=$with_extra_options;
5840 default) EXTRA_OPTIONS= ;;
5841 *) EXTRA_OPTIONS=$withval ;;
5843 EXTRA_OPTIONS=$EXTRA_OPTIONS
5847 # Check whether --with-extra-ld-options was given.
5848 if test "${with_extra_ld_options+set}" = set; then
5849 withval=$with_extra_ld_options;
5855 default) EXTRA_LD_OPTIONS= ;;
5856 *) EXTRA_LD_OPTIONS=$withval ;;
5858 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5861 # Check whether --enable-bindings was given.
5862 if test "${enable_bindings+set}" = set; then
5863 enableval=$enable_bindings;
5868 BINDINGS_TO_BUILD=""
5869 case "$enableval" in
5870 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5871 all ) BINDINGS_TO_BUILD="ocaml" ;;
5872 none | no) BINDINGS_TO_BUILD="" ;;
5873 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5874 case "$a_binding" in
5875 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5876 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5877 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5878 { (exit 1); exit 1; }; } ;;
5885 # Check whether --with-ocaml-libdir was given.
5886 if test "${with_ocaml_libdir+set}" = set; then
5887 withval=$with_ocaml_libdir;
5893 auto) with_ocaml_libdir="$withval" ;;
5894 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5895 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5896 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5897 { (exit 1); exit 1; }; } ;;
5901 # Check whether --with-clang-srcdir was given.
5902 if test "${with_clang_srcdir+set}" = set; then
5903 withval=$with_clang_srcdir;
5909 -) clang_src_root="" ;;
5910 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5911 *) clang_src_root="$ac_pwd/$withval" ;;
5913 CLANG_SRC_ROOT=$clang_src_root
5917 # Check whether --with-clang-resource-dir was given.
5918 if test "${with_clang_resource_dir+set}" = set; then
5919 withval=$with_clang_resource_dir;
5925 cat >>confdefs.h <<_ACEOF
5926 #define CLANG_RESOURCE_DIR "$withval"
5931 # Check whether --with-c-include-dirs was given.
5932 if test "${with_c_include_dirs+set}" = set; then
5933 withval=$with_c_include_dirs;
5939 cat >>confdefs.h <<_ACEOF
5940 #define C_INCLUDE_DIRS "$withval"
5944 # Clang normally uses the system c++ headers and libraries. With this option,
5945 # clang will use the ones provided by a gcc installation instead. This option should
5946 # be passed the same value that was used with --prefix when configuring gcc.
5948 # Check whether --with-gcc-toolchain was given.
5949 if test "${with_gcc_toolchain+set}" = set; then
5950 withval=$with_gcc_toolchain;
5956 cat >>confdefs.h <<_ACEOF
5957 #define GCC_INSTALL_PREFIX "$withval"
5962 # Check whether --with-default-sysroot was given.
5963 if test "${with_default_sysroot+set}" = set; then
5964 withval=$with_default_sysroot;
5970 cat >>confdefs.h <<_ACEOF
5971 #define DEFAULT_SYSROOT "$withval"
5976 # Check whether --with-binutils-include was given.
5977 if test "${with_binutils_include+set}" = set; then
5978 withval=$with_binutils_include;
5984 default) WITH_BINUTILS_INCDIR=default ;;
5985 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5986 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5987 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5988 { (exit 1); exit 1; }; } ;;
5990 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5991 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5993 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5994 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5995 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5996 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5997 { (exit 1); exit 1; }; };
6002 # Check whether --with-bug-report-url was given.
6003 if test "${with_bug_report_url+set}" = set; then
6004 withval=$with_bug_report_url;
6006 withval="http://llvm.org/bugs/"
6010 cat >>confdefs.h <<_ACEOF
6011 #define BUG_REPORT_URL "$withval"
6015 # Check whether --enable-terminfo was given.
6016 if test "${enable_terminfo+set}" = set; then
6017 enableval=$enable_terminfo; case "$enableval" in
6018 yes) llvm_cv_enable_terminfo="yes" ;;
6019 no) llvm_cv_enable_terminfo="no" ;;
6020 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6021 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6022 { (exit 1); exit 1; }; } ;;
6025 llvm_cv_enable_terminfo="yes"
6029 # Check whether --enable-libffi was given.
6030 if test "${enable_libffi+set}" = set; then
6031 enableval=$enable_libffi; case "$enableval" in
6032 yes) llvm_cv_enable_libffi="yes" ;;
6033 no) llvm_cv_enable_libffi="no" ;;
6034 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6035 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6036 { (exit 1); exit 1; }; } ;;
6039 llvm_cv_enable_libffi=no
6044 # Check whether --with-internal-prefix was given.
6045 if test "${with_internal_prefix+set}" = set; then
6046 withval=$with_internal_prefix;
6051 INTERNAL_PREFIX=$withval
6055 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6056 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6057 if test "${lt_cv_path_NM+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 if test -n "$NM"; then
6061 # Let the user override the test.
6064 lt_nm_to_check="${ac_tool_prefix}nm"
6065 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6066 lt_nm_to_check="$lt_nm_to_check nm"
6068 for lt_tmp_nm in $lt_nm_to_check; do
6069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6070 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6072 test -z "$ac_dir" && ac_dir=.
6073 tmp_nm="$ac_dir/$lt_tmp_nm"
6074 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6075 # Check to see if the nm accepts a BSD-compat flag.
6076 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6077 # nm: unknown option "B" ignored
6078 # Tru64's nm complains that /dev/null is an invalid object file
6079 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6080 */dev/null* | *'Invalid file or object type'*)
6081 lt_cv_path_NM="$tmp_nm -B"
6085 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6087 lt_cv_path_NM="$tmp_nm -p"
6091 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6092 continue # so that we can try to find one that supports BSD flags
6101 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6104 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6105 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6110 { echo "$as_me:$LINENO: checking for GNU make" >&5
6111 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6112 if test "${llvm_cv_gnu_make_command+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 llvm_cv_gnu_make_command=''
6116 for a in "$MAKE" make gmake gnumake ; do
6117 if test -z "$a" ; then continue ; fi ;
6118 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6120 llvm_cv_gnu_make_command=$a ;
6125 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6126 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6127 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6131 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6132 echo "${ECHO_T}\"Not found\"" >&6; };
6136 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6137 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6139 if test "$LN_S" = "ln -s"; then
6140 { echo "$as_me:$LINENO: result: yes" >&5
6141 echo "${ECHO_T}yes" >&6; }
6143 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6144 echo "${ECHO_T}no, using $LN_S" >&6; }
6147 # Extract the first word of "cmp", so it can be a program name with args.
6148 set dummy cmp; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_path_CMP+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6179 if test -n "$CMP"; then
6180 { echo "$as_me:$LINENO: result: $CMP" >&5
6181 echo "${ECHO_T}$CMP" >&6; }
6183 { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6188 # Extract the first word of "cp", so it can be a program name with args.
6189 set dummy cp; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_path_CP+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6220 if test -n "$CP"; then
6221 { echo "$as_me:$LINENO: result: $CP" >&5
6222 echo "${ECHO_T}$CP" >&6; }
6224 { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6229 # Extract the first word of "date", so it can be a program name with args.
6230 set dummy date; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_path_DATE+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6260 DATE=$ac_cv_path_DATE
6261 if test -n "$DATE"; then
6262 { echo "$as_me:$LINENO: result: $DATE" >&5
6263 echo "${ECHO_T}$DATE" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6270 # Extract the first word of "find", so it can be a program name with args.
6271 set dummy find; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_path_FIND+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6301 FIND=$ac_cv_path_FIND
6302 if test -n "$FIND"; then
6303 { echo "$as_me:$LINENO: result: $FIND" >&5
6304 echo "${ECHO_T}$FIND" >&6; }
6306 { echo "$as_me:$LINENO: result: no" >&5
6307 echo "${ECHO_T}no" >&6; }
6311 # Extract the first word of "grep", so it can be a program name with args.
6312 set dummy grep; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_GREP+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6342 GREP=$ac_cv_path_GREP
6343 if test -n "$GREP"; then
6344 { echo "$as_me:$LINENO: result: $GREP" >&5
6345 echo "${ECHO_T}$GREP" >&6; }
6347 { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6352 # Extract the first word of "mkdir", so it can be a program name with args.
6353 set dummy mkdir; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_path_MKDIR+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6383 MKDIR=$ac_cv_path_MKDIR
6384 if test -n "$MKDIR"; then
6385 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6386 echo "${ECHO_T}$MKDIR" >&6; }
6388 { echo "$as_me:$LINENO: result: no" >&5
6389 echo "${ECHO_T}no" >&6; }
6393 # Extract the first word of "mv", so it can be a program name with args.
6394 set dummy mv; ac_word=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_path_MV+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6425 if test -n "$MV"; then
6426 { echo "$as_me:$LINENO: result: $MV" >&5
6427 echo "${ECHO_T}$MV" >&6; }
6429 { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6434 if test -n "$ac_tool_prefix"; then
6435 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_prog_RANLIB+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 if test -n "$RANLIB"; then
6443 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 RANLIB=$ac_cv_prog_RANLIB
6463 if test -n "$RANLIB"; then
6464 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6465 echo "${ECHO_T}$RANLIB" >&6; }
6467 { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6473 if test -z "$ac_cv_prog_RANLIB"; then
6474 ac_ct_RANLIB=$RANLIB
6475 # Extract the first word of "ranlib", so it can be a program name with args.
6476 set dummy ranlib; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 if test -n "$ac_ct_RANLIB"; then
6483 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_ac_ct_RANLIB="ranlib"
6493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6503 if test -n "$ac_ct_RANLIB"; then
6504 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6505 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6507 { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6511 if test "x$ac_ct_RANLIB" = x; then
6514 case $cross_compiling:$ac_tool_warned in
6516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6517 whose name does not start with the host triplet. If you think this
6518 configuration is useful to you, please write to autoconf@gnu.org." >&5
6519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6520 whose name does not start with the host triplet. If you think this
6521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6522 ac_tool_warned=yes ;;
6524 RANLIB=$ac_ct_RANLIB
6527 RANLIB="$ac_cv_prog_RANLIB"
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}ar; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_prog_AR+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 if test -n "$AR"; then
6539 ac_cv_prog_AR="$AR" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_AR="${ac_tool_prefix}ar"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 if test -n "$AR"; then
6560 { echo "$as_me:$LINENO: result: $AR" >&5
6561 echo "${ECHO_T}$AR" >&6; }
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6569 if test -z "$ac_cv_prog_AR"; then
6571 # Extract the first word of "ar", so it can be a program name with args.
6572 set dummy ar; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 if test -n "$ac_ct_AR"; then
6579 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_AR="ar"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6599 if test -n "$ac_ct_AR"; then
6600 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6601 echo "${ECHO_T}$ac_ct_AR" >&6; }
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6607 if test "x$ac_ct_AR" = x; then
6610 case $cross_compiling:$ac_tool_warned in
6612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6613 whose name does not start with the host triplet. If you think this
6614 configuration is useful to you, please write to autoconf@gnu.org." >&5
6615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6616 whose name does not start with the host triplet. If you think this
6617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6618 ac_tool_warned=yes ;;
6626 # Extract the first word of "rm", so it can be a program name with args.
6627 set dummy rm; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_RM+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6658 if test -n "$RM"; then
6659 { echo "$as_me:$LINENO: result: $RM" >&5
6660 echo "${ECHO_T}$RM" >&6; }
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6667 # Extract the first word of "sed", so it can be a program name with args.
6668 set dummy sed; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_SED+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6699 if test -n "$SED"; then
6700 { echo "$as_me:$LINENO: result: $SED" >&5
6701 echo "${ECHO_T}$SED" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6708 # Extract the first word of "tar", so it can be a program name with args.
6709 set dummy tar; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_TAR+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6740 if test -n "$TAR"; then
6741 { echo "$as_me:$LINENO: result: $TAR" >&5
6742 echo "${ECHO_T}$TAR" >&6; }
6744 { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6749 # Extract the first word of "pwd", so it can be a program name with args.
6750 set dummy pwd; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_BINPWD+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6780 BINPWD=$ac_cv_path_BINPWD
6781 if test -n "$BINPWD"; then
6782 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6783 echo "${ECHO_T}$BINPWD" >&6; }
6785 { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6791 # Extract the first word of "Graphviz", so it can be a program name with args.
6792 set dummy Graphviz; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6822 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6823 if test -n "$GRAPHVIZ"; then
6824 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6825 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6827 { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6832 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_GRAPHVIZ 1
6838 if test "$llvm_cv_os_type" = "MingW" ; then
6839 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6842 cat >>confdefs.h <<_ACEOF
6843 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6847 # Extract the first word of "dot", so it can be a program name with args.
6848 set dummy dot; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_DOT+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6879 if test -n "$DOT"; then
6880 { echo "$as_me:$LINENO: result: $DOT" >&5
6881 echo "${ECHO_T}$DOT" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6888 if test "$DOT" != "echo dot" ; then
6890 cat >>confdefs.h <<\_ACEOF
6894 if test "$llvm_cv_os_type" = "MingW" ; then
6895 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6898 cat >>confdefs.h <<_ACEOF
6899 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6903 # Extract the first word of "fdp", so it can be a program name with args.
6904 set dummy fdp; ac_word=$2
6905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6907 if test "${ac_cv_path_FDP+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6935 if test -n "$FDP"; then
6936 { echo "$as_me:$LINENO: result: $FDP" >&5
6937 echo "${ECHO_T}$FDP" >&6; }
6939 { echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6; }
6944 if test "$FDP" != "echo fdp" ; then
6946 cat >>confdefs.h <<\_ACEOF
6950 if test "$llvm_cv_os_type" = "MingW" ; then
6951 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6954 cat >>confdefs.h <<_ACEOF
6955 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6959 # Extract the first word of "neato", so it can be a program name with args.
6960 set dummy neato; ac_word=$2
6961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963 if test "${ac_cv_path_NEATO+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6990 NEATO=$ac_cv_path_NEATO
6991 if test -n "$NEATO"; then
6992 { echo "$as_me:$LINENO: result: $NEATO" >&5
6993 echo "${ECHO_T}$NEATO" >&6; }
6995 { echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6; }
7000 if test "$NEATO" != "echo neato" ; then
7002 cat >>confdefs.h <<\_ACEOF
7003 #define HAVE_NEATO 1
7006 if test "$llvm_cv_os_type" = "MingW" ; then
7007 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7010 cat >>confdefs.h <<_ACEOF
7011 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7015 # Extract the first word of "twopi", so it can be a program name with args.
7016 set dummy twopi; ac_word=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_path_TWOPI+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7046 TWOPI=$ac_cv_path_TWOPI
7047 if test -n "$TWOPI"; then
7048 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7049 echo "${ECHO_T}$TWOPI" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7056 if test "$TWOPI" != "echo twopi" ; then
7058 cat >>confdefs.h <<\_ACEOF
7059 #define HAVE_TWOPI 1
7062 if test "$llvm_cv_os_type" = "MingW" ; then
7063 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7066 cat >>confdefs.h <<_ACEOF
7067 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7071 # Extract the first word of "circo", so it can be a program name with args.
7072 set dummy circo; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_path_CIRCO+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7102 CIRCO=$ac_cv_path_CIRCO
7103 if test -n "$CIRCO"; then
7104 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7105 echo "${ECHO_T}$CIRCO" >&6; }
7107 { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7112 if test "$CIRCO" != "echo circo" ; then
7114 cat >>confdefs.h <<\_ACEOF
7115 #define HAVE_CIRCO 1
7118 if test "$llvm_cv_os_type" = "MingW" ; then
7119 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7122 cat >>confdefs.h <<_ACEOF
7123 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7127 for ac_prog in gv gsview32
7129 # Extract the first word of "$ac_prog", so it can be a program name with args.
7130 set dummy $ac_prog; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_path_GV+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 if test -n "$GV"; then
7161 { echo "$as_me:$LINENO: result: $GV" >&5
7162 echo "${ECHO_T}$GV" >&6; }
7164 { echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6; }
7169 test -n "$GV" && break
7171 test -n "$GV" || GV="echo gv"
7173 if test "$GV" != "echo gv" ; then
7175 cat >>confdefs.h <<\_ACEOF
7179 if test "$llvm_cv_os_type" = "MingW" ; then
7180 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7183 cat >>confdefs.h <<_ACEOF
7184 #define LLVM_PATH_GV "$GV${EXEEXT}"
7188 # Extract the first word of "dotty", so it can be a program name with args.
7189 set dummy dotty; ac_word=$2
7190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192 if test "${ac_cv_path_DOTTY+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7219 DOTTY=$ac_cv_path_DOTTY
7220 if test -n "$DOTTY"; then
7221 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7222 echo "${ECHO_T}$DOTTY" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7229 if test "$DOTTY" != "echo dotty" ; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_DOTTY 1
7235 if test "$llvm_cv_os_type" = "MingW" ; then
7236 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7239 cat >>confdefs.h <<_ACEOF
7240 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7244 for ac_prog in xdot xdot.py
7246 # Extract the first word of "$ac_prog", so it can be a program name with args.
7247 set dummy $ac_prog; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_XDOT+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 XDOT=$ac_cv_path_XDOT
7277 if test -n "$XDOT"; then
7278 { echo "$as_me:$LINENO: result: $XDOT" >&5
7279 echo "${ECHO_T}$XDOT" >&6; }
7281 { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7286 test -n "$XDOT" && break
7288 test -n "$XDOT" || XDOT="echo xdot"
7290 if test "$XDOT" != "echo xdot" ; then
7292 cat >>confdefs.h <<\_ACEOF
7296 if test "$llvm_cv_os_type" = "MingW" ; then
7297 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7300 cat >>confdefs.h <<_ACEOF
7301 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7306 # Find a good install program. We prefer a C program (faster),
7307 # so one script is as good as another. But avoid the broken or
7308 # incompatible versions:
7309 # SysV /etc/install, /usr/sbin/install
7310 # SunOS /usr/etc/install
7311 # IRIX /sbin/install
7313 # AmigaOS /C/install, which installs bootblocks on floppy discs
7314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7317 # OS/2's system install, which has a completely different semantic
7318 # ./install, which can be erroneously created by make from ./install.sh.
7319 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7320 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7321 if test -z "$INSTALL"; then
7322 if test "${ac_cv_path_install+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir=.
7330 # Account for people who put trailing slashes in PATH elements.
7332 ./ | .// | /cC/* | \
7333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7334 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7337 # OSF1 and SCO ODT 3.0 have their own names for install.
7338 # Don't use installbsd from OSF since it installs stuff as root
7340 for ac_prog in ginstall scoinst install; do
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7343 if test $ac_prog = install &&
7344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7345 # AIX install. It has an incompatible calling convention.
7347 elif test $ac_prog = install &&
7348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7349 # program-specific install script used by HP pwplus--don't use.
7352 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7365 if test "${ac_cv_path_install+set}" = set; then
7366 INSTALL=$ac_cv_path_install
7368 # As a last resort, use the slow shell script. Don't cache a
7369 # value for INSTALL within a source directory, because that will
7370 # break other packages using the cache if that directory is
7371 # removed, or if the value is a relative name.
7372 INSTALL=$ac_install_sh
7375 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7376 echo "${ECHO_T}$INSTALL" >&6; }
7378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7379 # It thinks the first close brace ends the variable substitution.
7380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7387 [\\/$]* | ?:[\\/]* ) ;;
7388 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7391 # Extract the first word of "bzip2", so it can be a program name with args.
7392 set dummy bzip2; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_BZIP2+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 BZIP2=$ac_cv_path_BZIP2
7422 if test -n "$BZIP2"; then
7423 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7424 echo "${ECHO_T}$BZIP2" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7431 # Extract the first word of "cat", so it can be a program name with args.
7432 set dummy cat; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_CAT+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 if test -n "$CAT"; then
7463 { echo "$as_me:$LINENO: result: $CAT" >&5
7464 echo "${ECHO_T}$CAT" >&6; }
7466 { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7471 # Extract the first word of "doxygen", so it can be a program name with args.
7472 set dummy doxygen; ac_word=$2
7473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7475 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 DOXYGEN=$ac_cv_path_DOXYGEN
7502 if test -n "$DOXYGEN"; then
7503 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7504 echo "${ECHO_T}$DOXYGEN" >&6; }
7506 { echo "$as_me:$LINENO: result: no" >&5
7507 echo "${ECHO_T}no" >&6; }
7511 # Extract the first word of "groff", so it can be a program name with args.
7512 set dummy groff; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_path_GROFF+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 GROFF=$ac_cv_path_GROFF
7542 if test -n "$GROFF"; then
7543 { echo "$as_me:$LINENO: result: $GROFF" >&5
7544 echo "${ECHO_T}$GROFF" >&6; }
7546 { echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6; }
7551 # Extract the first word of "gzip", so it can be a program name with args.
7552 set dummy gzip; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 GZIPBIN=$ac_cv_path_GZIPBIN
7582 if test -n "$GZIPBIN"; then
7583 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7584 echo "${ECHO_T}$GZIPBIN" >&6; }
7586 { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7591 # Extract the first word of "pdfroff", so it can be a program name with args.
7592 set dummy pdfroff; ac_word=$2
7593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7595 if test "${ac_cv_path_PDFROFF+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 PDFROFF=$ac_cv_path_PDFROFF
7622 if test -n "$PDFROFF"; then
7623 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7624 echo "${ECHO_T}$PDFROFF" >&6; }
7626 { echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6; }
7631 # Extract the first word of "zip", so it can be a program name with args.
7632 set dummy zip; ac_word=$2
7633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635 if test "${ac_cv_path_ZIP+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 if test -n "$ZIP"; then
7663 { echo "$as_me:$LINENO: result: $ZIP" >&5
7664 echo "${ECHO_T}$ZIP" >&6; }
7666 { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7671 for ac_prog in ocamlc
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_path_OCAMLC+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 OCAMLC=$ac_cv_path_OCAMLC
7704 if test -n "$OCAMLC"; then
7705 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7706 echo "${ECHO_T}$OCAMLC" >&6; }
7708 { echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6; }
7713 test -n "$OCAMLC" && break
7716 for ac_prog in ocamlopt
7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 OCAMLOPT=$ac_cv_path_OCAMLOPT
7749 if test -n "$OCAMLOPT"; then
7750 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7751 echo "${ECHO_T}$OCAMLOPT" >&6; }
7753 { echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6; }
7758 test -n "$OCAMLOPT" && break
7761 for ac_prog in ocamldep
7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7767 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 OCAMLDEP=$ac_cv_path_OCAMLDEP
7794 if test -n "$OCAMLDEP"; then
7795 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7796 echo "${ECHO_T}$OCAMLDEP" >&6; }
7798 { echo "$as_me:$LINENO: result: no" >&5
7799 echo "${ECHO_T}no" >&6; }
7803 test -n "$OCAMLDEP" && break
7806 for ac_prog in ocamldoc
7808 # Extract the first word of "$ac_prog", so it can be a program name with args.
7809 set dummy $ac_prog; ac_word=$2
7810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 OCAMLDOC=$ac_cv_path_OCAMLDOC
7839 if test -n "$OCAMLDOC"; then
7840 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7841 echo "${ECHO_T}$OCAMLDOC" >&6; }
7843 { echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6; }
7848 test -n "$OCAMLDOC" && break
7851 for ac_prog in gas as
7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857 if test "${ac_cv_path_GAS+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7872 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 if test -n "$GAS"; then
7885 { echo "$as_me:$LINENO: result: $GAS" >&5
7886 echo "${ECHO_T}$GAS" >&6; }
7888 { echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6; }
7893 test -n "$GAS" && break
7897 { echo "$as_me:$LINENO: checking for linker version" >&5
7898 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7899 if test "${llvm_cv_link_version+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 version_string="$(ld -v 2>&1 | head -1)"
7906 if (echo "$version_string" | grep -q "ld64"); then
7907 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7909 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7913 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7914 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7916 cat >>confdefs.h <<_ACEOF
7917 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7922 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7923 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7924 if test "${llvm_cv_link_use_r+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 CFLAGS="$CFLAGS -Wl,-R."
7935 cat >conftest.$ac_ext <<_ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_link") 2>conftest.er1
7959 grep -v '^ *+' conftest.er1 >conftest.err
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7965 { (case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970 (eval "$ac_try") 2>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_try") 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 llvm_cv_link_use_r=yes
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 llvm_cv_link_use_r=no
7992 rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7996 ac_cpp='$CPP $CPPFLAGS'
7997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8004 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8005 if test "$llvm_cv_link_use_r" = yes ; then
8007 cat >>confdefs.h <<\_ACEOF
8008 #define HAVE_LINK_R 1
8014 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8015 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8016 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026 CFLAGS="$CFLAGS -rdynamic"
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (ac_try="$ac_link"
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_link") 2>conftest.er1
8051 grep -v '^ *+' conftest.er1 >conftest.err
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try='test -s conftest$ac_exeext'
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_try") 2>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 llvm_cv_link_use_export_dynamic=yes
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 llvm_cv_link_use_export_dynamic=no
8084 rm -f core conftest.err conftest.$ac_objext \
8085 conftest$ac_exeext conftest.$ac_ext
8088 ac_cpp='$CPP $CPPFLAGS'
8089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8096 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8097 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8099 cat >>confdefs.h <<\_ACEOF
8100 #define HAVE_LINK_EXPORT_DYNAMIC 1
8106 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8107 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8108 if test "${llvm_cv_link_use_version_script+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 ac_cpp='$CPP $CPPFLAGS'
8113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119 # The following code is from the autoconf manual,
8120 # "11.13: Limitations of Usual Tools".
8121 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8122 # Use mktemp if possible; otherwise fall back on mkdir,
8123 # with $RANDOM to make collisions less likely.
8127 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8129 test -n "$tmp" && test -d "$tmp"
8131 tmp=$TMPDIR/foo$$-$RANDOM
8132 (umask 077 && mkdir "$tmp")
8135 echo "{" > "$tmp/export.map"
8136 echo " global: main;" >> "$tmp/export.map"
8137 echo " local: *;" >> "$tmp/export.map"
8138 echo "};" >> "$tmp/export.map"
8140 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8156 rm -f conftest.$ac_objext conftest$ac_exeext
8157 if { (ac_try="$ac_link"
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_link") 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171 { (case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_try") 2>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest$ac_exeext'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 llvm_cv_link_use_version_script=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 llvm_cv_link_use_version_script=no
8198 rm -f core conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 rm "$tmp/export.map"
8204 ac_cpp='$CPP $CPPFLAGS'
8205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8211 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8212 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8213 if test "$llvm_cv_link_use_version_script" = yes ; then
8214 HAVE_LINK_VERSION_SCRIPT=1
8221 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8222 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8223 if test "${ac_cv_c_const+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8236 /* FIXME: Include the comments suggested by Paul. */
8238 /* Ultrix mips cc rejects this. */
8239 typedef int charset[2];
8241 /* SunOS 4.1.1 cc rejects this. */
8242 char const *const *ccp;
8244 /* NEC SVR4.0.2 mips cc rejects this. */
8245 struct point {int x, y;};
8246 static struct point const zero = {0,0};
8247 /* AIX XL C 1.02.0.0 rejects this.
8248 It does not let you subtract one const X* pointer from another in
8249 an arm of an if-expression whose if-part is not a constant
8251 const char *g = "string";
8252 ccp = &g + (g ? g-g : 0);
8253 /* HPUX 7.0 cc rejects these. */
8256 ccp = (char const *const *) p;
8257 { /* SCO 3.2v4 cc rejects this. */
8259 char const *s = 0 ? (char *) 0 : (char const *) 0;
8264 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8266 const int *foo = &x[0];
8269 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8270 typedef const int *iptr;
8274 { /* AIX XL C 1.02.0.0 rejects this saying
8275 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8276 struct s { int j; const int *ap[3]; };
8277 struct s *b; b->j = 5;
8279 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8283 return !x[0] && !zero.x;
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest.$ac_objext'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8335 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8336 if test $ac_cv_c_const = no; then
8338 cat >>confdefs.h <<\_ACEOF
8350 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8351 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8352 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8353 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8375 rm -f conftest.$ac_objext
8376 if { (ac_try="$ac_compile"
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_compile") 2>conftest.er1
8384 grep -v '^ *+' conftest.er1 >conftest.err
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8390 { (case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_try") 2>&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest.$ac_objext'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 eval "$as_ac_Header=yes"
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 eval "$as_ac_Header=no"
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 ac_res=`eval echo '${'$as_ac_Header'}'`
8420 { echo "$as_me:$LINENO: result: $ac_res" >&5
8421 echo "${ECHO_T}$ac_res" >&6; }
8422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8423 cat >>confdefs.h <<_ACEOF
8424 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8427 ac_header_dirent=$ac_hdr; break
8431 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8432 if test $ac_header_dirent = dirent.h; then
8433 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8434 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8435 if test "${ac_cv_search_opendir+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 ac_func_search_save_LIBS=$LIBS
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8446 /* Override any GCC internal prototype to avoid an error.
8447 Use char because int might match the return type of a GCC
8448 builtin and then its argument prototype would still apply. */
8461 for ac_lib in '' dir; do
8462 if test -z "$ac_lib"; then
8463 ac_res="none required"
8466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8468 rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (ac_try="$ac_link"
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_link") 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8483 { (case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_try") 2>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest$ac_exeext'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_cv_search_opendir=$ac_res
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8510 rm -f core conftest.err conftest.$ac_objext \
8512 if test "${ac_cv_search_opendir+set}" = set; then
8516 if test "${ac_cv_search_opendir+set}" = set; then
8519 ac_cv_search_opendir=no
8522 LIBS=$ac_func_search_save_LIBS
8524 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8525 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8526 ac_res=$ac_cv_search_opendir
8527 if test "$ac_res" != no; then
8528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8533 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8534 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8535 if test "${ac_cv_search_opendir+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 ac_func_search_save_LIBS=$LIBS
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8546 /* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8561 for ac_lib in '' x; do
8562 if test -z "$ac_lib"; then
8563 ac_res="none required"
8566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_link") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8583 { (case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_try") 2>&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest$ac_exeext'
8593 { (case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_try") 2>&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 ac_cv_search_opendir=$ac_res
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8610 rm -f core conftest.err conftest.$ac_objext \
8612 if test "${ac_cv_search_opendir+set}" = set; then
8616 if test "${ac_cv_search_opendir+set}" = set; then
8619 ac_cv_search_opendir=no
8622 LIBS=$ac_func_search_save_LIBS
8624 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8625 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8626 ac_res=$ac_cv_search_opendir
8627 if test "$ac_res" != no; then
8628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8635 for ac_header in dlfcn.h
8637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 ac_res=`eval echo '${'$as_ac_Header'}'`
8645 { echo "$as_me:$LINENO: result: $ac_res" >&5
8646 echo "${ECHO_T}$ac_res" >&6; }
8648 # Is the header compilable?
8649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 #include <$ac_header>
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8669 grep -v '^ *+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675 { (case "(($ac_try" in
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_try") 2>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest.$ac_objext'
8685 { (case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_try") 2>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_header_compiler=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_header_compiler=no
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8704 echo "${ECHO_T}$ac_header_compiler" >&6; }
8706 # Is the header present?
8707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8709 cat >conftest.$ac_ext <<_ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 #include <$ac_header>
8717 if { (ac_try="$ac_cpp conftest.$ac_ext"
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } >/dev/null; then
8730 if test -s conftest.err; then
8731 ac_cpp_err=$ac_c_preproc_warn_flag
8732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8739 if test -z "$ac_cpp_err"; then
8740 ac_header_preproc=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_header_preproc=no
8748 rm -f conftest.err conftest.$ac_ext
8749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8750 echo "${ECHO_T}$ac_header_preproc" >&6; }
8752 # So? What about this header?
8753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8759 ac_header_preproc=yes
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8775 ## ------------------------------------ ##
8776 ## Report this to http://llvm.org/bugs/ ##
8777 ## ------------------------------------ ##
8779 ) | sed "s/^/$as_me: WARNING: /" >&2
8782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 eval "$as_ac_Header=\$ac_header_preproc"
8789 ac_res=`eval echo '${'$as_ac_Header'}'`
8790 { echo "$as_me:$LINENO: result: $ac_res" >&5
8791 echo "${ECHO_T}$ac_res" >&6; }
8794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795 cat >>confdefs.h <<_ACEOF
8796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8803 # Check whether --enable-ltdl-install was given.
8804 if test "${enable_ltdl_install+set}" = set; then
8805 enableval=$enable_ltdl_install;
8811 if test x"${enable_ltdl_install-no}" != xno; then
8813 INSTALL_LTDL_FALSE='#'
8815 INSTALL_LTDL_TRUE='#'
8821 if test x"${enable_ltdl_convenience-no}" != xno; then
8822 CONVENIENCE_LTDL_TRUE=
8823 CONVENIENCE_LTDL_FALSE='#'
8825 CONVENIENCE_LTDL_TRUE='#'
8826 CONVENIENCE_LTDL_FALSE=
8830 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8831 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8833 libname_spec='lib$name'
8841 shlibpath_overrides_runpath=unknown
8843 dynamic_linker="$host_os ld.so"
8844 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8845 if test "$GCC" = yes; then
8846 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8847 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8848 # if the path contains ";" then we assume it to be the separator
8849 # otherwise default to the standard path separator (i.e. ":") - it is
8850 # assumed that no part of a normal pathname contains ";" but that should
8851 # okay in the real world where ";" in dirpaths is itself problematic.
8852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8857 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8859 need_lib_prefix=unknown
8860 hardcode_into_libs=no
8862 # when you set need_version to no, make sure it does not cause -set_version
8863 # flags to be left without arguments
8864 need_version=unknown
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8870 shlibpath_var=LIBPATH
8872 # AIX 3 has no versioning support, so we append a major version to the name.
8873 soname_spec='${libname}${release}${shared_ext}$major'
8880 hardcode_into_libs=yes
8881 if test "$host_cpu" = ia64; then
8882 # AIX 5 supports IA64
8883 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8884 shlibpath_var=LD_LIBRARY_PATH
8886 # With GCC up to 2.95.x, collect2 would create an import file
8887 # for dependence libraries. The import file would start with
8888 # the line `#! .'. This would cause the generated library to
8889 # depend on `.', always an invalid library. This was fixed in
8890 # development snapshots of GCC prior to 3.0.
8892 aix4 | aix4.[01] | aix4.[01].*)
8893 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8895 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8902 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8903 # soname into executable. Probably we can add versioning support to
8904 # collect2, so additional links can be useful in future.
8905 if test "$aix_use_runtimelinking" = yes; then
8906 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8907 # instead of lib<name>.a to let people know that these are not
8908 # typical AIX shared libraries.
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8911 # We preserve .a as extension for shared libraries through AIX4.2
8912 # and later when we are not doing run time linking.
8913 library_names_spec='${libname}${release}.a $libname.a'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8916 shlibpath_var=LIBPATH
8921 library_names_spec='$libname.ixlibrary $libname.a'
8922 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8923 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'
8927 library_names_spec='${libname}${shared_ext}'
8928 dynamic_linker="$host_os ld.so"
8929 shlibpath_var=LIBRARY_PATH
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8938 shlibpath_var=LD_LIBRARY_PATH
8939 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8940 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8941 # the default ld.so.conf also contains /usr/contrib/lib and
8942 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8943 # libtool to hard-code these into programs
8946 cygwin* | mingw* | pw32*)
8947 version_type=windows
8952 case $GCC,$host_os in
8953 yes,cygwin* | yes,mingw* | yes,pw32*)
8954 library_names_spec='$libname.dll.a'
8955 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8956 postinstall_cmds='base_file=`basename \${file}`~
8957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8958 dldir=$destdir/`dirname \$dlpath`~
8959 test -d \$dldir || mkdir -p \$dldir~
8960 $install_prog $dir/$dlname \$dldir/$dlname~
8961 chmod a+x \$dldir/$dlname'
8962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8963 dlpath=$dir/\$dldll~
8965 shlibpath_overrides_runpath=yes
8969 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8970 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8974 # MinGW DLLs use traditional 'lib' prefix
8975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8977 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8978 # It is most probably a Windows format PATH printed by
8979 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8980 # path with ; separators, and with drive letters. We can handle the
8981 # drive letters (cygwin fileutils understands them), so leave them,
8982 # especially as we might pass files found there to a mingw objdump,
8983 # which wouldn't understand a cygwinified path. Ahh.
8984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8990 # pw32 DLLs use 'pw' prefix rather than 'lib'
8991 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8997 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9000 dynamic_linker='Win32 ld.exe'
9001 # FIXME: first we should search . and the directory the executable is in
9005 darwin* | rhapsody*)
9006 dynamic_linker="$host_os dyld"
9010 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9011 soname_spec='${libname}${release}${major}$shared_ext'
9012 shlibpath_overrides_runpath=yes
9013 shlibpath_var=DYLD_LIBRARY_PATH
9014 shrext_cmds='.dylib'
9015 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9016 if test "$GCC" = yes; then
9017 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"`
9019 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 shlibpath_overrides_runpath=no
9045 hardcode_into_libs=yes
9046 dynamic_linker='GNU ld.so'
9049 freebsd* | dragonfly*)
9050 # DragonFly does not have aout. When/if they implement a new
9051 # versioning mechanism, adjust this.
9052 if test -x /usr/bin/objformat; then
9053 objformat=`/usr/bin/objformat`
9056 freebsd[123].*) objformat=aout ;;
9060 version_type=freebsd-$objformat
9061 case $version_type in
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9072 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9077 freebsd3.[01]* | freebsdelf3.[01]*)
9078 shlibpath_overrides_runpath=yes
9079 hardcode_into_libs=yes
9081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9086 freebsd*) # from 4.6 on
9087 shlibpath_overrides_runpath=yes
9088 hardcode_into_libs=yes
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 hardcode_into_libs=yes
9103 hpux9* | hpux10* | hpux11*)
9104 # Give a soname corresponding to the major version so that dld.sl refuses to
9105 # link against other versions.
9112 hardcode_into_libs=yes
9113 dynamic_linker="$host_os dld.so"
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 if test "X$HPUX_IA64_MODE" = X32; then
9119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9127 hardcode_into_libs=yes
9128 dynamic_linker="$host_os dld.sl"
9129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9138 dynamic_linker="$host_os dld.sl"
9139 shlibpath_var=SHLIB_PATH
9140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9146 postinstall_cmds='chmod 555 $lib'
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=no
9158 hardcode_into_libs=yes
9161 irix5* | irix6* | nonstopux*)
9163 nonstopux*) version_type=nonstopux ;;
9165 if test "$lt_cv_prog_gnu_ld" = yes; then
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9176 irix5* | nonstopux*)
9180 case $LD in # libtool.m4 will add one of these switches to LD
9181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9182 libsuff= shlibsuff= libmagic=32-bit;;
9183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9184 libsuff=32 shlibsuff=N32 libmagic=N32;;
9185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9187 *) libsuff= shlibsuff= libmagic=never-match;;
9191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9192 shlibpath_overrides_runpath=no
9193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9195 hardcode_into_libs=yes
9198 # No shared lib support for Linux oldld, aout, or coff.
9199 linux*oldld* | linux*aout* | linux*coff*)
9203 # This must be Linux ELF.
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=no
9213 # This implies no fast_install, which is unacceptable.
9214 # Some rework will be needed to allow for fast_install
9215 # before this can be enabled.
9216 hardcode_into_libs=yes
9218 # Append ld.so.conf contents to the search path
9219 if test -f /etc/ld.so.conf; then
9220 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' ' '`
9221 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9224 # We used to test for /lib/ld.so.1 and disable shared libraries on
9225 # powerpc, because MkLinux only supported shared libraries with the
9226 # GNU dynamic linker. Since this was broken with cross compilers,
9227 # most powerpc-linux boxes support dynamic linking these days and
9228 # people can always --disable-shared, the test was removed, and we
9229 # assume the GNU/Linux dynamic linker is in use.
9230 dynamic_linker='GNU/Linux ld.so'
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=no
9241 hardcode_into_libs=yes
9242 dynamic_linker='GNU ld.so'
9249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9252 dynamic_linker='NetBSD (a.out) ld.so'
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 dynamic_linker='NetBSD ld.elf_so'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9260 hardcode_into_libs=yes
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 shlibpath_overrides_runpath=yes
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9282 sys_lib_dlsearch_path_spec="/usr/lib"
9284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9287 *) need_version=no ;;
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9294 openbsd2.[89] | openbsd2.[89].*)
9295 shlibpath_overrides_runpath=no
9298 shlibpath_overrides_runpath=yes
9302 shlibpath_overrides_runpath=yes
9307 libname_spec='$name'
9310 library_names_spec='$libname${shared_ext} $libname.a'
9311 dynamic_linker='OS/2 ld.exe'
9312 shlibpath_var=LIBPATH
9315 osf3* | osf4* | osf5*)
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 soname_spec='${libname}${release}${shared_ext}$major'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 shlibpath_overrides_runpath=yes
9334 hardcode_into_libs=yes
9335 # ldd complains unless libraries are executable
9336 postinstall_cmds='chmod +x $lib'
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9342 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9343 shlibpath_var=LD_LIBRARY_PATH
9344 shlibpath_overrides_runpath=yes
9345 if test "$with_gnu_ld" = yes; then
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 case $host_vendor in
9358 shlibpath_overrides_runpath=no
9360 export_dynamic_flag_spec='${wl}-Blargedynsym'
9361 runpath_var=LD_RUN_PATH
9369 shlibpath_overrides_runpath=no
9370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9376 if test -d /usr/nec ;then
9378 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9379 soname_spec='$libname${shared_ext}.$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9385 version_type=freebsd-elf
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 hardcode_into_libs=yes
9392 if test "$with_gnu_ld" = yes; then
9393 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9394 shlibpath_overrides_runpath=no
9396 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9397 shlibpath_overrides_runpath=yes
9400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9404 sys_lib_dlsearch_path_spec='/usr/lib'
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 shlibpath_var=LD_LIBRARY_PATH
9418 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9419 echo "${ECHO_T}$dynamic_linker" >&6; }
9420 test "$dynamic_linker" = no && can_build_shared=no
9422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9423 if test "$GCC" = yes; then
9424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9428 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9429 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9430 if test "${libltdl_cv_shlibext+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 eval libltdl_cv_shlibext=$shrext_cmds
9438 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9439 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9440 if test -n "$libltdl_cv_shlibext"; then
9442 cat >>confdefs.h <<_ACEOF
9443 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9449 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9450 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9451 if test "${libltdl_cv_sys_search_path+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9456 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9457 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9458 if test -n "$libltdl_cv_sys_search_path"; then
9460 for dir in $libltdl_cv_sys_search_path; do
9461 if test -z "$sys_search_path"; then
9462 sys_search_path="$dir"
9464 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9468 cat >>confdefs.h <<_ACEOF
9469 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9474 { echo "$as_me:$LINENO: checking for objdir" >&5
9475 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9476 if test "${libltdl_cv_objdir+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 libltdl_cv_objdir="$objdir"
9480 if test -n "$objdir"; then
9483 rm -f .libs 2>/dev/null
9484 mkdir .libs 2>/dev/null
9485 if test -d .libs; then
9486 libltdl_cv_objdir=.libs
9488 # MS-DOS does not allow filenames that begin with a dot.
9489 libltdl_cv_objdir=_libs
9491 rmdir .libs 2>/dev/null
9495 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9496 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9498 cat >>confdefs.h <<_ACEOF
9499 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9507 # Check for command to grab the raw symbol name followed by C symbol from nm.
9508 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9509 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9510 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 # These are sane defaults that work on at least a few old systems.
9515 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9517 # Character class describing NM global symbol codes.
9518 symcode='[BCDEGRST]'
9520 # Regexp to match symbols that can be accessed directly from C.
9521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9523 # Transform an extracted symbol line into a proper C declaration
9524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9526 # Transform an extracted symbol line into symbol name and symbol address
9527 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'"
9529 # Define system-specific variables.
9534 cygwin* | mingw* | pw32*)
9535 symcode='[ABCDGISTW]'
9537 hpux*) # Its linker distinguishes data from code symbols
9538 if test "$host_cpu" = ia64; then
9539 symcode='[ABCDEGRST]'
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'"
9545 if test "$host_cpu" = ia64; then
9546 symcode='[ABCDGIRSTW]'
9547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9548 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'"
9552 symcode='[BCDEGRST]'
9555 symcode='[BCDEGQRST]'
9566 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9574 # Handle CRLF in mingw tool chain
9578 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9582 # If we're using GNU nm, then use its standard symbol codes.
9583 case `$NM -V 2>&1` in
9584 *GNU* | *'with BFD'*)
9585 symcode='[ABCDGIRSTW]' ;;
9588 # Try without a prefix undercore, then with it.
9589 for ac_symprfx in "" "_"; do
9591 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9592 symxfrm="\\1 $ac_symprfx\\2 \\2"
9594 # Write the raw and C identifiers.
9595 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9597 # Check to see that the pipe works correctly.
9601 cat > conftest.$ac_ext <<EOF
9606 void nm_test_func(){}
9610 int main(){nm_test_var='a';nm_test_func();return(0);}
9613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614 (eval $ac_compile) 2>&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; then
9618 # Now try to grab the symbols.
9620 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9621 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } && test -s "$nlist"; then
9625 # Try sorting and uniquifying the output.
9626 if sort "$nlist" | uniq > "$nlist"T; then
9627 mv -f "$nlist"T "$nlist"
9632 # Make sure that we snagged all the symbols we need.
9633 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9634 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9635 cat <<EOF > conftest.$ac_ext
9641 # Now generate the symbol file.
9642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9644 cat <<EOF >> conftest.$ac_ext
9645 #if defined (__STDC__) && __STDC__
9646 # define lt_ptr_t void *
9648 # define lt_ptr_t char *
9652 /* The mapping between symbol names and symbols. */
9657 lt_preloaded_symbols[] =
9660 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9661 cat <<\EOF >> conftest.$ac_ext
9669 # Now try linking the two files.
9670 mv conftest.$ac_objext conftstm.$ac_objext
9671 lt_save_LIBS="$LIBS"
9672 lt_save_CFLAGS="$CFLAGS"
9673 LIBS="conftstm.$ac_objext"
9674 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9682 LIBS="$lt_save_LIBS"
9683 CFLAGS="$lt_save_CFLAGS"
9685 echo "cannot find nm_test_func in $nlist" >&5
9688 echo "cannot find nm_test_var in $nlist" >&5
9691 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9694 echo "$progname: failed program was:" >&5
9695 cat conftest.$ac_ext >&5
9697 rm -f conftest* conftst*
9699 # Do not use the global_symbol_pipe unless it works.
9700 if test "$pipe_works" = yes; then
9703 lt_cv_sys_global_symbol_pipe=
9709 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9710 lt_cv_sys_global_symbol_to_cdecl=
9712 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9713 { echo "$as_me:$LINENO: result: failed" >&5
9714 echo "${ECHO_T}failed" >&6; }
9716 { echo "$as_me:$LINENO: result: ok" >&5
9717 echo "${ECHO_T}ok" >&6; }
9721 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9722 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9723 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9727 libltdl_cv_preloaded_symbols=yes
9729 libltdl_cv_preloaded_symbols=no
9733 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9734 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9735 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9737 cat >>confdefs.h <<\_ACEOF
9738 #define HAVE_PRELOADED_SYMBOLS 1
9746 ac_cpp='$CPP $CPPFLAGS'
9747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9752 { echo "$as_me:$LINENO: checking for shl_load" >&5
9753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9754 if test "${ac_cv_func_shl_load+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9765 #define shl_load innocuous_shl_load
9767 /* System header to define __stub macros and hopefully few prototypes,
9768 which can conflict with char shl_load (); below.
9769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9770 <limits.h> exists even on freestanding compilers. */
9773 # include <limits.h>
9775 # include <assert.h>
9780 /* Override any GCC internal prototype to avoid an error.
9781 Use char because int might match the return type of a GCC
9782 builtin and then its argument prototype would still apply. */
9787 /* The GNU C library defines this for functions which it implements
9788 to always fail with ENOSYS. Some functions are actually named
9789 something starting with __ and the normal name is an alias. */
9790 #if defined __stub_shl_load || defined __stub___shl_load
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (ac_try="$ac_link"
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_link") 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9817 { (case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_try") 2>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest$ac_exeext'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_func_shl_load=yes
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 ac_cv_func_shl_load=no
9844 rm -f core conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9847 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9848 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9849 if test $ac_cv_func_shl_load = yes; then
9851 cat >>confdefs.h <<\_ACEOF
9852 #define HAVE_SHL_LOAD 1
9856 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 ac_check_lib_save_LIBS=$LIBS
9863 cat >conftest.$ac_ext <<_ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9870 /* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (ac_try="$ac_link"
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_link") 2>conftest.er1
9894 grep -v '^ *+' conftest.er1 >conftest.err
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9900 { (case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_try") 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (case "(($ac_try" in
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_try") 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; }; then
9919 ac_cv_lib_dld_shl_load=yes
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9924 ac_cv_lib_dld_shl_load=no
9927 rm -f core conftest.err conftest.$ac_objext \
9928 conftest$ac_exeext conftest.$ac_ext
9929 LIBS=$ac_check_lib_save_LIBS
9931 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9932 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9933 if test $ac_cv_lib_dld_shl_load = yes; then
9935 cat >>confdefs.h <<\_ACEOF
9936 #define HAVE_SHL_LOAD 1
9939 LIBADD_DL="$LIBADD_DL -ldld"
9941 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9942 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 ac_check_lib_save_LIBS=$LIBS
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9955 /* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (ac_try="$ac_link"
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_link") 2>conftest.er1
9979 grep -v '^ *+' conftest.er1 >conftest.err
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9985 { (case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_try") 2>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest$ac_exeext'
9995 { (case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_try") 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_cv_lib_dl_dlopen=yes
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 ac_cv_lib_dl_dlopen=no
10012 rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014 LIBS=$ac_check_lib_save_LIBS
10016 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10018 if test $ac_cv_lib_dl_dlopen = yes; then
10020 cat >>confdefs.h <<\_ACEOF
10021 #define HAVE_LIBDL 1
10024 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10026 cat >conftest.$ac_ext <<_ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10033 # include <dlfcn.h>
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10079 cat >>confdefs.h <<\_ACEOF
10080 #define HAVE_LIBDL 1
10082 libltdl_cv_func_dlopen="yes"
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lsvld $LIBS"
10094 cat >conftest.$ac_ext <<_ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10101 /* Override any GCC internal prototype to avoid an error.
10102 Use char because int might match the return type of a GCC
10103 builtin and then its argument prototype would still apply. */
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (ac_try="$ac_link"
10118 case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_link") 2>conftest.er1
10125 grep -v '^ *+' conftest.er1 >conftest.err
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; } &&
10140 { ac_try='test -s conftest$ac_exeext'
10141 { (case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_try") 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10150 ac_cv_lib_svld_dlopen=yes
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 ac_cv_lib_svld_dlopen=no
10158 rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 LIBS=$ac_check_lib_save_LIBS
10162 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10163 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10164 if test $ac_cv_lib_svld_dlopen = yes; then
10166 cat >>confdefs.h <<\_ACEOF
10167 #define HAVE_LIBDL 1
10170 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10172 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10173 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10174 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 ac_check_lib_save_LIBS=$LIBS
10179 cat >conftest.$ac_ext <<_ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10186 /* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
10196 return dld_link ();
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_link") 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 ac_cv_lib_dld_dld_link=yes
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240 ac_cv_lib_dld_dld_link=no
10243 rm -f core conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10247 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10248 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10249 if test $ac_cv_lib_dld_dld_link = yes; then
10251 cat >>confdefs.h <<\_ACEOF
10255 LIBADD_DL="$LIBADD_DL -ldld"
10257 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10258 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10259 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 cat >conftest.$ac_ext <<_ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10270 #define _dyld_func_lookup innocuous__dyld_func_lookup
10272 /* System header to define __stub macros and hopefully few prototypes,
10273 which can conflict with char _dyld_func_lookup (); below.
10274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10275 <limits.h> exists even on freestanding compilers. */
10278 # include <limits.h>
10280 # include <assert.h>
10283 #undef _dyld_func_lookup
10285 /* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
10291 char _dyld_func_lookup ();
10292 /* The GNU C library defines this for functions which it implements
10293 to always fail with ENOSYS. Some functions are actually named
10294 something starting with __ and the normal name is an alias. */
10295 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10302 return _dyld_func_lookup ();
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (ac_try="$ac_link"
10309 case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_link") 2>conftest.er1
10316 grep -v '^ *+' conftest.er1 >conftest.err
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10322 { (case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_try") 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; } &&
10331 { ac_try='test -s conftest$ac_exeext'
10332 { (case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_try") 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
10341 ac_cv_func__dyld_func_lookup=yes
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ac_cv_func__dyld_func_lookup=no
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10352 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10353 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10354 if test $ac_cv_func__dyld_func_lookup = yes; then
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_DYLD 1
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10383 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10385 lt_save_LIBS="$LIBS"
10386 LIBS="$LIBS $LIBADD_DL"
10388 for ac_func in dlerror
10390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 cat >conftest.$ac_ext <<_ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10404 #define $ac_func innocuous_$ac_func
10406 /* System header to define __stub macros and hopefully few prototypes,
10407 which can conflict with char $ac_func (); below.
10408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409 <limits.h> exists even on freestanding compilers. */
10412 # include <limits.h>
10414 # include <assert.h>
10419 /* Override any GCC internal prototype to avoid an error.
10420 Use char because int might match the return type of a GCC
10421 builtin and then its argument prototype would still apply. */
10426 /* The GNU C library defines this for functions which it implements
10427 to always fail with ENOSYS. Some functions are actually named
10428 something starting with __ and the normal name is an alias. */
10429 #if defined __stub_$ac_func || defined __stub___$ac_func
10436 return $ac_func ();
10441 rm -f conftest.$ac_objext conftest$ac_exeext
10442 if { (ac_try="$ac_link"
10443 case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_link") 2>conftest.er1
10450 grep -v '^ *+' conftest.er1 >conftest.err
10452 cat conftest.err >&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } &&
10455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10456 { (case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_try") 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }; then
10475 eval "$as_ac_var=yes"
10477 echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10480 eval "$as_ac_var=no"
10483 rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10486 ac_res=`eval echo '${'$as_ac_var'}'`
10487 { echo "$as_me:$LINENO: result: $ac_res" >&5
10488 echo "${ECHO_T}$ac_res" >&6; }
10489 if test `eval echo '${'$as_ac_var'}'` = yes; then
10490 cat >>confdefs.h <<_ACEOF
10491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10497 LIBS="$lt_save_LIBS"
10500 ac_cpp='$CPP $CPPFLAGS'
10501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10507 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10508 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10509 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 ac_cv_sys_symbol_underscore=no
10513 cat > conftest.$ac_ext <<EOF
10514 void nm_test_func(){}
10515 int main(){nm_test_func;return 0;}
10517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518 (eval $ac_compile) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; then
10522 # Now try to grab the symbols.
10523 ac_nlist=conftest.nm
10524 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10525 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && test -s "$ac_nlist"; then
10529 # See whether the symbols have a leading underscore.
10530 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10531 ac_cv_sys_symbol_underscore=yes
10533 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10536 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10540 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10543 echo "configure: failed program was:" >&5
10549 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10550 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10553 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10554 if test x"$libltdl_cv_func_dlopen" = xyes ||
10555 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10556 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10557 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10558 if test "${libltdl_cv_need_uscore+set}" = set; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 libltdl_cv_need_uscore=unknown
10563 LIBS="$LIBS $LIBADD_DL"
10564 if test "$cross_compiling" = yes; then :
10565 libltdl_cv_need_uscore=cross
10567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10568 lt_status=$lt_dlunknown
10569 cat > conftest.$ac_ext <<EOF
10570 #line 10564 "configure"
10571 #include "confdefs.h"
10580 # define LT_DLGLOBAL RTLD_GLOBAL
10583 # define LT_DLGLOBAL DL_GLOBAL
10585 # define LT_DLGLOBAL 0
10589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10590 find out it does not work in some platform. */
10591 #ifndef LT_DLLAZY_OR_NOW
10593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10596 # define LT_DLLAZY_OR_NOW DL_LAZY
10599 # define LT_DLLAZY_OR_NOW RTLD_NOW
10602 # define LT_DLLAZY_OR_NOW DL_NOW
10604 # define LT_DLLAZY_OR_NOW 0
10612 extern "C" void exit (int);
10615 void fnord() { int i=42;}
10618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10619 int status = $lt_dlunknown;
10623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10625 /* dlclose (self); */
10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634 (eval $ac_link) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10638 (./conftest; exit; ) >&5 2>/dev/null
10640 case x$lt_status in
10641 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10642 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10643 x$lt_dlunknown|x*) ;;
10646 # compilation failed
10655 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10656 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10660 if test x"$libltdl_cv_need_uscore" = xyes; then
10662 cat >>confdefs.h <<\_ACEOF
10663 #define NEED_USCORE 1
10669 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10670 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10671 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 # PORTME does your system automatically load deplibs for dlopen?
10675 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10676 # For now, we just catch OSes we know something about -- in the
10677 # future, we'll try test this programmatically.
10678 libltdl_cv_sys_dlopen_deplibs=unknown
10680 aix3*|aix4.1.*|aix4.2.*)
10681 # Unknown whether this is true for these versions of AIX, but
10682 # we want this `case' here to explicitly catch those versions.
10683 libltdl_cv_sys_dlopen_deplibs=unknown
10686 libltdl_cv_sys_dlopen_deplibs=yes
10689 # Assuming the user has installed a libdl from somewhere, this is true
10690 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10691 libltdl_cv_sys_dlopen_deplibs=yes
10693 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10694 # GNU and its variants, using gnu ld.so (Glibc)
10695 libltdl_cv_sys_dlopen_deplibs=yes
10698 libltdl_cv_sys_dlopen_deplibs=yes
10701 libltdl_cv_sys_dlopen_deplibs=yes
10703 irix[12345]*|irix6.[01]*)
10704 # Catch all versions of IRIX before 6.2, and indicate that we don't
10705 # know how it worked for any of those versions.
10706 libltdl_cv_sys_dlopen_deplibs=unknown
10709 # The case above catches anything before 6.2, and it's known that
10710 # at 6.2 and later dlopen does load deplibs.
10711 libltdl_cv_sys_dlopen_deplibs=yes
10714 libltdl_cv_sys_dlopen_deplibs=yes
10717 libltdl_cv_sys_dlopen_deplibs=yes
10720 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10721 # it did *not* use an RPATH in a shared library to find objects the
10722 # library depends on, so we explicitly say `no'.
10723 libltdl_cv_sys_dlopen_deplibs=no
10725 osf5.0|osf5.0a|osf5.1)
10726 # dlopen *does* load deplibs and with the right loader patch applied
10727 # it even uses RPATH in a shared library to search for shared objects
10728 # that the library depends on, but there's no easy way to know if that
10729 # patch is installed. Since this is the case, all we can really
10730 # say is unknown -- it depends on the patch being installed. If
10731 # it is, this changes to `yes'. Without it, it would be `no'.
10732 libltdl_cv_sys_dlopen_deplibs=unknown
10735 # the two cases above should catch all versions of osf <= 5.1. Read
10736 # the comments above for what we know about them.
10737 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10738 # is used to find them so we can finally say `yes'.
10739 libltdl_cv_sys_dlopen_deplibs=yes
10742 libltdl_cv_sys_dlopen_deplibs=yes
10744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10745 libltdl_cv_sys_dlopen_deplibs=yes
10750 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10751 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10752 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10754 cat >>confdefs.h <<\_ACEOF
10755 #define LTDL_DLOPEN_DEPLIBS 1
10761 for ac_header in argz.h
10763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 ac_res=`eval echo '${'$as_ac_Header'}'`
10771 { echo "$as_me:$LINENO: result: $ac_res" >&5
10772 echo "${ECHO_T}$ac_res" >&6; }
10774 # Is the header compilable?
10775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10777 cat >conftest.$ac_ext <<_ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783 $ac_includes_default
10784 #include <$ac_header>
10786 rm -f conftest.$ac_objext
10787 if { (ac_try="$ac_compile"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_compile") 2>conftest.er1
10795 grep -v '^ *+' conftest.er1 >conftest.err
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
10800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; } &&
10810 { ac_try='test -s conftest.$ac_objext'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 ac_header_compiler=yes
10822 echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10825 ac_header_compiler=no
10828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10830 echo "${ECHO_T}$ac_header_compiler" >&6; }
10832 # Is the header present?
10833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10835 cat >conftest.$ac_ext <<_ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10841 #include <$ac_header>
10843 if { (ac_try="$ac_cpp conftest.$ac_ext"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } >/dev/null; then
10856 if test -s conftest.err; then
10857 ac_cpp_err=$ac_c_preproc_warn_flag
10858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10865 if test -z "$ac_cpp_err"; then
10866 ac_header_preproc=yes
10868 echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10871 ac_header_preproc=no
10874 rm -f conftest.err conftest.$ac_ext
10875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10876 echo "${ECHO_T}$ac_header_preproc" >&6; }
10878 # So? What about this header?
10879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10885 ac_header_preproc=yes
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10901 ## ------------------------------------ ##
10902 ## Report this to http://llvm.org/bugs/ ##
10903 ## ------------------------------------ ##
10905 ) | sed "s/^/$as_me: WARNING: /" >&2
10908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 eval "$as_ac_Header=\$ac_header_preproc"
10915 ac_res=`eval echo '${'$as_ac_Header'}'`
10916 { echo "$as_me:$LINENO: result: $ac_res" >&5
10917 echo "${ECHO_T}$ac_res" >&6; }
10920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10921 cat >>confdefs.h <<_ACEOF
10922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10930 { echo "$as_me:$LINENO: checking for error_t" >&5
10931 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10932 if test "${ac_cv_type_error_t+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 cat >conftest.$ac_ext <<_ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10945 typedef error_t ac__type_new_;
10949 if ((ac__type_new_ *) 0)
10951 if (sizeof (ac__type_new_))
10957 rm -f conftest.$ac_objext
10958 if { (ac_try="$ac_compile"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_compile") 2>conftest.er1
10966 grep -v '^ *+' conftest.er1 >conftest.err
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10972 { (case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_try") 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest.$ac_objext'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_cv_type_error_t=yes
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_cv_type_error_t=no
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11002 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11003 if test $ac_cv_type_error_t = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006 #define HAVE_ERROR_T 1
11012 cat >>confdefs.h <<\_ACEOF
11013 #define error_t int
11024 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 cat >conftest.$ac_ext <<_ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11040 #define $ac_func innocuous_$ac_func
11042 /* System header to define __stub macros and hopefully few prototypes,
11043 which can conflict with char $ac_func (); below.
11044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11045 <limits.h> exists even on freestanding compilers. */
11048 # include <limits.h>
11050 # include <assert.h>
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11062 /* The GNU C library defines this for functions which it implements
11063 to always fail with ENOSYS. Some functions are actually named
11064 something starting with __ and the normal name is an alias. */
11065 #if defined __stub_$ac_func || defined __stub___$ac_func
11072 return $ac_func ();
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (ac_try="$ac_link"
11079 case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_link") 2>conftest.er1
11086 grep -v '^ *+' conftest.er1 >conftest.err
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11092 { (case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_try") 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest$ac_exeext'
11102 { (case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_try") 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 eval "$as_ac_var=yes"
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11116 eval "$as_ac_var=no"
11119 rm -f core conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11122 ac_res=`eval echo '${'$as_ac_var'}'`
11123 { echo "$as_me:$LINENO: result: $ac_res" >&5
11124 echo "${ECHO_T}$ac_res" >&6; }
11125 if test `eval echo '${'$as_ac_var'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11155 for ac_header in errno.h malloc.h memory.h unistd.h
11157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 ac_res=`eval echo '${'$as_ac_Header'}'`
11165 { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 echo "${ECHO_T}$ac_res" >&6; }
11168 # Is the header compilable?
11169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 $ac_includes_default
11178 #include <$ac_header>
11180 rm -f conftest.$ac_objext
11181 if { (ac_try="$ac_compile"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_compile") 2>conftest.er1
11189 grep -v '^ *+' conftest.er1 >conftest.err
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11195 { (case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_try") 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; } &&
11204 { ac_try='test -s conftest.$ac_objext'
11205 { (case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_try") 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_header_compiler=yes
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11219 ac_header_compiler=no
11222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11224 echo "${ECHO_T}$ac_header_compiler" >&6; }
11226 # Is the header present?
11227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11229 cat >conftest.$ac_ext <<_ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 #include <$ac_header>
11237 if { (ac_try="$ac_cpp conftest.$ac_ext"
11238 case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11245 grep -v '^ *+' conftest.er1 >conftest.err
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } >/dev/null; then
11250 if test -s conftest.err; then
11251 ac_cpp_err=$ac_c_preproc_warn_flag
11252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11259 if test -z "$ac_cpp_err"; then
11260 ac_header_preproc=yes
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_header_preproc=no
11268 rm -f conftest.err conftest.$ac_ext
11269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11270 echo "${ECHO_T}$ac_header_preproc" >&6; }
11272 # So? What about this header?
11273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11279 ac_header_preproc=yes
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11295 ## ------------------------------------ ##
11296 ## Report this to http://llvm.org/bugs/ ##
11297 ## ------------------------------------ ##
11299 ) | sed "s/^/$as_me: WARNING: /" >&2
11302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 eval "$as_ac_Header=\$ac_header_preproc"
11309 ac_res=`eval echo '${'$as_ac_Header'}'`
11310 { echo "$as_me:$LINENO: result: $ac_res" >&5
11311 echo "${ECHO_T}$ac_res" >&6; }
11314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11315 cat >>confdefs.h <<_ACEOF
11316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11324 for ac_header in mach-o/dyld.h
11326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 ac_res=`eval echo '${'$as_ac_Header'}'`
11334 { echo "$as_me:$LINENO: result: $ac_res" >&5
11335 echo "${ECHO_T}$ac_res" >&6; }
11337 # Is the header compilable?
11338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11346 $ac_includes_default
11347 #include <$ac_header>
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_compile") 2>conftest.er1
11358 grep -v '^ *+' conftest.er1 >conftest.err
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11364 { (case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_try") 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest.$ac_objext'
11374 { (case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_try") 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 ac_header_compiler=yes
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 ac_header_compiler=no
11391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11393 echo "${ECHO_T}$ac_header_compiler" >&6; }
11395 # Is the header present?
11396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11398 cat >conftest.$ac_ext <<_ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 #include <$ac_header>
11406 if { (ac_try="$ac_cpp conftest.$ac_ext"
11407 case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11414 grep -v '^ *+' conftest.er1 >conftest.err
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } >/dev/null; then
11419 if test -s conftest.err; then
11420 ac_cpp_err=$ac_c_preproc_warn_flag
11421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11428 if test -z "$ac_cpp_err"; then
11429 ac_header_preproc=yes
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 ac_header_preproc=no
11437 rm -f conftest.err conftest.$ac_ext
11438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11439 echo "${ECHO_T}$ac_header_preproc" >&6; }
11441 # So? What about this header?
11442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11448 ac_header_preproc=yes
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11464 ## ------------------------------------ ##
11465 ## Report this to http://llvm.org/bugs/ ##
11466 ## ------------------------------------ ##
11468 ) | sed "s/^/$as_me: WARNING: /" >&2
11471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 eval "$as_ac_Header=\$ac_header_preproc"
11478 ac_res=`eval echo '${'$as_ac_Header'}'`
11479 { echo "$as_me:$LINENO: result: $ac_res" >&5
11480 echo "${ECHO_T}$ac_res" >&6; }
11483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11496 for ac_func in closedir opendir readdir
11498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11512 #define $ac_func innocuous_$ac_func
11514 /* System header to define __stub macros and hopefully few prototypes,
11515 which can conflict with char $ac_func (); below.
11516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11517 <limits.h> exists even on freestanding compilers. */
11520 # include <limits.h>
11522 # include <assert.h>
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11534 /* The GNU C library defines this for functions which it implements
11535 to always fail with ENOSYS. Some functions are actually named
11536 something starting with __ and the normal name is an alias. */
11537 #if defined __stub_$ac_func || defined __stub___$ac_func
11544 return $ac_func ();
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11564 { (case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_try") 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest$ac_exeext'
11574 { (case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_try") 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 eval "$as_ac_var=yes"
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 eval "$as_ac_var=no"
11591 rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11594 ac_res=`eval echo '${'$as_ac_var'}'`
11595 { echo "$as_me:$LINENO: result: $ac_res" >&5
11596 echo "${ECHO_T}$ac_res" >&6; }
11597 if test `eval echo '${'$as_ac_var'}'` = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11607 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11608 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11621 if test "$GCC" != "yes" && test "$ICC" != "yes"
11623 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11624 echo "$as_me: error: gcc|icc required but not found" >&2;}
11625 { (exit 1); exit 1; }; }
11628 if test "$GXX" != "yes" && test "$IXX" != "yes"
11630 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11631 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11632 { (exit 1); exit 1; }; }
11635 if test "$GCC" = "yes"
11637 cat >conftest.$ac_ext <<_ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11645 #if !defined(__GNUC__) || __GNUC__ < 3
11646 #error Unsupported GCC version
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_compile") 2>conftest.er1
11660 grep -v '^ *+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11691 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11692 { (exit 1); exit 1; }; }
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 if test -z "$llvm_cv_gnu_make_command"
11700 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11701 echo "$as_me: error: GNU Make required but not found" >&2;}
11702 { (exit 1); exit 1; }; }
11705 { echo "$as_me:$LINENO: result: ok" >&5
11706 echo "${ECHO_T}ok" >&6; }
11708 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11709 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11710 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11712 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11714 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11718 NO_MAYBE_UNINITIALIZED=
11719 if test "$GXX" = "yes"
11721 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11723 if test -z "$NO_MAYBE_UNINITIALIZED"
11725 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11729 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11730 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11733 # Check whether --with-python was given.
11734 if test "${with_python+set}" = set; then
11735 withval=$with_python; PYTHON="$withval"
11739 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11740 { echo "$as_me:$LINENO: checking for python" >&5
11741 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11742 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11743 echo "${ECHO_T}user defined: $with_python" >&6; }
11745 if test -n "$PYTHON" ; then
11746 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11747 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11750 # Extract the first word of "python python2 python26", so it can be a program name with args.
11751 set dummy python python2 python26; ac_word=$2
11752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11754 if test "${ac_cv_path_PYTHON+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11766 test -z "$as_dir" && as_dir=.
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11769 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11777 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11778 echo "${ECHO_T}not found" >&6; }
11779 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11780 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11781 { (exit 1); exit 1; }; }"
11785 PYTHON=$ac_cv_path_PYTHON
11786 if test -n "$PYTHON"; then
11787 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11788 echo "${ECHO_T}$PYTHON" >&6; }
11790 { echo "$as_me:$LINENO: result: no" >&5
11791 echo "${ECHO_T}no" >&6; }
11797 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11798 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11799 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11800 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11801 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11802 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11803 if test "$ac_python_version_major" -eq "2" \
11804 && test "$ac_python_version_minor" -ge "5" ; then
11805 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11806 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11808 { echo "$as_me:$LINENO: result: not found" >&5
11809 echo "${ECHO_T}not found" >&6; }
11810 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11811 See \`config.log' for more details." >&5
11812 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11813 See \`config.log' for more details." >&2;}
11814 { (exit 1); exit 1; }; }
11819 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11820 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11821 if test "${ac_cv_lib_m_sin+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 ac_check_lib_save_LIBS=$LIBS
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11833 /* Override any GCC internal prototype to avoid an error.
11834 Use char because int might match the return type of a GCC
11835 builtin and then its argument prototype would still apply. */
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (ac_try="$ac_link"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest$ac_exeext'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_lib_m_sin=yes
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11894 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11895 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11896 if test $ac_cv_lib_m_sin = yes; then
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_LIBM 1
11905 if test "$llvm_cv_os_type" = "MingW" ; then
11907 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11908 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11909 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 ac_check_lib_save_LIBS=$LIBS
11913 LIBS="-limagehlp $LIBS"
11914 cat >conftest.$ac_ext <<_ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (ac_try="$ac_link"
11932 case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_link") 2>conftest.er1
11939 grep -v '^ *+' conftest.er1 >conftest.err
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
11944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11945 { (case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_try") 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
11955 { (case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_try") 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11964 ac_cv_lib_imagehlp_main=yes
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 ac_cv_lib_imagehlp_main=no
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11976 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11977 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11978 if test $ac_cv_lib_imagehlp_main = yes; then
11979 cat >>confdefs.h <<_ACEOF
11980 #define HAVE_LIBIMAGEHLP 1
11983 LIBS="-limagehlp $LIBS"
11988 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11989 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11990 if test "${ac_cv_lib_psapi_main+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-lpsapi $LIBS"
11995 cat >conftest.$ac_ext <<_ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (ac_try="$ac_link"
12013 case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_link") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1 >conftest.err
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_lib_psapi_main=yes
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 ac_cv_lib_psapi_main=no
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12057 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12058 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12059 if test $ac_cv_lib_psapi_main = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_LIBPSAPI 1
12064 LIBS="-lpsapi $LIBS"
12070 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12071 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12072 if test "${ac_cv_search_dlopen+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 ac_func_search_save_LIBS=$LIBS
12076 cat >conftest.$ac_ext <<_ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12098 for ac_lib in '' dl; do
12099 if test -z "$ac_lib"; then
12100 ac_res="none required"
12103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_link") 2>conftest.er1
12114 grep -v '^ *+' conftest.er1 >conftest.err
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 ac_cv_search_dlopen=$ac_res
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12147 rm -f core conftest.err conftest.$ac_objext \
12149 if test "${ac_cv_search_dlopen+set}" = set; then
12153 if test "${ac_cv_search_dlopen+set}" = set; then
12156 ac_cv_search_dlopen=no
12158 rm conftest.$ac_ext
12159 LIBS=$ac_func_search_save_LIBS
12161 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12162 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12163 ac_res=$ac_cv_search_dlopen
12164 if test "$ac_res" != no; then
12165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_DLOPEN 1
12172 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12173 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12177 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12178 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12179 if test "${ac_cv_search_clock_gettime+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 ac_func_search_save_LIBS=$LIBS
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12196 char clock_gettime ();
12200 return clock_gettime ();
12205 for ac_lib in '' rt; do
12206 if test -z "$ac_lib"; then
12207 ac_res="none required"
12210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227 { (case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232 (eval "$ac_try") 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest$ac_exeext'
12237 { (case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_try") 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 ac_cv_search_clock_gettime=$ac_res
12248 echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12254 rm -f core conftest.err conftest.$ac_objext \
12256 if test "${ac_cv_search_clock_gettime+set}" = set; then
12260 if test "${ac_cv_search_clock_gettime+set}" = set; then
12263 ac_cv_search_clock_gettime=no
12265 rm conftest.$ac_ext
12266 LIBS=$ac_func_search_save_LIBS
12268 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12269 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12270 ac_res=$ac_cv_search_clock_gettime
12271 if test "$ac_res" != no; then
12272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12277 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12278 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12279 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12280 if test "${ac_cv_search_setupterm+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 ac_func_search_save_LIBS=$LIBS
12284 cat >conftest.$ac_ext <<_ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12291 /* Override any GCC internal prototype to avoid an error.
12292 Use char because int might match the return type of a GCC
12293 builtin and then its argument prototype would still apply. */
12301 return setupterm ();
12306 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12307 if test -z "$ac_lib"; then
12308 ac_res="none required"
12311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12313 rm -f conftest.$ac_objext conftest$ac_exeext
12314 if { (ac_try="$ac_link"
12315 case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320 (eval "$ac_link") 2>conftest.er1
12322 grep -v '^ *+' conftest.er1 >conftest.err
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12328 { (case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_try") 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 ac_cv_search_setupterm=$ac_res
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12355 rm -f core conftest.err conftest.$ac_objext \
12357 if test "${ac_cv_search_setupterm+set}" = set; then
12361 if test "${ac_cv_search_setupterm+set}" = set; then
12364 ac_cv_search_setupterm=no
12366 rm conftest.$ac_ext
12367 LIBS=$ac_func_search_save_LIBS
12369 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12370 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12371 ac_res=$ac_cv_search_setupterm
12372 if test "$ac_res" != no; then
12373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12375 cat >>confdefs.h <<\_ACEOF
12376 #define HAVE_TERMINFO 1
12383 if test "$llvm_cv_enable_libffi" = "yes" ; then
12384 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12385 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12386 if test "${ac_cv_search_ffi_call+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 ac_func_search_save_LIBS=$LIBS
12390 cat >conftest.$ac_ext <<_ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12397 /* Override any GCC internal prototype to avoid an error.
12398 Use char because int might match the return type of a GCC
12399 builtin and then its argument prototype would still apply. */
12407 return ffi_call ();
12412 for ac_lib in '' ffi; do
12413 if test -z "$ac_lib"; then
12414 ac_res="none required"
12417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12434 { (case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_try") 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449 (eval "$ac_try") 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 ac_cv_search_ffi_call=$ac_res
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12461 rm -f core conftest.err conftest.$ac_objext \
12463 if test "${ac_cv_search_ffi_call+set}" = set; then
12467 if test "${ac_cv_search_ffi_call+set}" = set; then
12470 ac_cv_search_ffi_call=no
12472 rm conftest.$ac_ext
12473 LIBS=$ac_func_search_save_LIBS
12475 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12476 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12477 ac_res=$ac_cv_search_ffi_call
12478 if test "$ac_res" != no; then
12479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12481 cat >>confdefs.h <<\_ACEOF
12482 #define HAVE_FFI_CALL 1
12486 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12487 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12488 { (exit 1); exit 1; }; }
12493 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12494 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12495 if test "${ac_cv_search_mallinfo+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 ac_func_search_save_LIBS=$LIBS
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12506 /* Override any GCC internal prototype to avoid an error.
12507 Use char because int might match the return type of a GCC
12508 builtin and then its argument prototype would still apply. */
12516 return mallinfo ();
12521 for ac_lib in '' malloc; do
12522 if test -z "$ac_lib"; then
12523 ac_res="none required"
12526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (ac_try="$ac_link"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_link") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest$ac_exeext'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_search_mallinfo=$ac_res
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12570 rm -f core conftest.err conftest.$ac_objext \
12572 if test "${ac_cv_search_mallinfo+set}" = set; then
12576 if test "${ac_cv_search_mallinfo+set}" = set; then
12579 ac_cv_search_mallinfo=no
12581 rm conftest.$ac_ext
12582 LIBS=$ac_func_search_save_LIBS
12584 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12585 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12586 ac_res=$ac_cv_search_mallinfo
12587 if test "$ac_res" != no; then
12588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_MALLINFO 1
12597 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12599 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12600 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12601 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-lpthread $LIBS"
12606 cat >conftest.$ac_ext <<_ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12613 /* Override any GCC internal prototype to avoid an error.
12614 Use char because int might match the return type of a GCC
12615 builtin and then its argument prototype would still apply. */
12619 char pthread_mutex_init ();
12623 return pthread_mutex_init ();
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_link") 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_lib_pthread_pthread_mutex_init=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ac_cv_lib_pthread_pthread_mutex_init=no
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672 LIBS=$ac_check_lib_save_LIBS
12674 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12675 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12676 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12677 cat >>confdefs.h <<_ACEOF
12678 #define HAVE_LIBPTHREAD 1
12681 LIBS="-lpthread $LIBS"
12685 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12686 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12687 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 ac_func_search_save_LIBS=$LIBS
12691 cat >conftest.$ac_ext <<_ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12704 char pthread_mutex_lock ();
12708 return pthread_mutex_lock ();
12713 for ac_lib in '' pthread; do
12714 if test -z "$ac_lib"; then
12715 ac_res="none required"
12718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (ac_try="$ac_link"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727 (eval "$ac_link") 2>conftest.er1
12729 grep -v '^ *+' conftest.er1 >conftest.err
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; } &&
12744 { ac_try='test -s conftest$ac_exeext'
12745 { (case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_try") 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_cv_search_pthread_mutex_lock=$ac_res
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12762 rm -f core conftest.err conftest.$ac_objext \
12764 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12768 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12771 ac_cv_search_pthread_mutex_lock=no
12773 rm conftest.$ac_ext
12774 LIBS=$ac_func_search_save_LIBS
12776 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12777 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12778 ac_res=$ac_cv_search_pthread_mutex_lock
12779 if test "$ac_res" != no; then
12780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12782 cat >>confdefs.h <<\_ACEOF
12783 #define HAVE_PTHREAD_MUTEX_LOCK 1
12788 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12789 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12790 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 ac_func_search_save_LIBS=$LIBS
12794 cat >conftest.$ac_ext <<_ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12801 /* Override any GCC internal prototype to avoid an error.
12802 Use char because int might match the return type of a GCC
12803 builtin and then its argument prototype would still apply. */
12807 char pthread_rwlock_init ();
12811 return pthread_rwlock_init ();
12816 for ac_lib in '' pthread; do
12817 if test -z "$ac_lib"; then
12818 ac_res="none required"
12821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12823 rm -f conftest.$ac_objext conftest$ac_exeext
12824 if { (ac_try="$ac_link"
12825 case "(($ac_try" in
12826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827 *) ac_try_echo=$ac_try;;
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830 (eval "$ac_link") 2>conftest.er1
12832 grep -v '^ *+' conftest.er1 >conftest.err
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12838 { (case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_try") 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest$ac_exeext'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_search_pthread_rwlock_init=$ac_res
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12865 rm -f core conftest.err conftest.$ac_objext \
12867 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12871 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12874 ac_cv_search_pthread_rwlock_init=no
12876 rm conftest.$ac_ext
12877 LIBS=$ac_func_search_save_LIBS
12879 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12880 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12881 ac_res=$ac_cv_search_pthread_rwlock_init
12882 if test "$ac_res" != no; then
12883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12885 cat >>confdefs.h <<\_ACEOF
12886 #define HAVE_PTHREAD_RWLOCK_INIT 1
12891 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12892 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12893 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 ac_func_search_save_LIBS=$LIBS
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12910 char pthread_getspecific ();
12914 return pthread_getspecific ();
12919 for ac_lib in '' pthread; do
12920 if test -z "$ac_lib"; then
12921 ac_res="none required"
12924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (ac_try="$ac_link"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_link") 2>conftest.er1
12935 grep -v '^ *+' conftest.er1 >conftest.err
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12941 { (case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_try") 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest$ac_exeext'
12951 { (case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_try") 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; }; then
12960 ac_cv_search_pthread_getspecific=$ac_res
12962 echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12968 rm -f core conftest.err conftest.$ac_objext \
12970 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12974 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12977 ac_cv_search_pthread_getspecific=no
12979 rm conftest.$ac_ext
12980 LIBS=$ac_func_search_save_LIBS
12982 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12983 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12984 ac_res=$ac_cv_search_pthread_getspecific
12985 if test "$ac_res" != no; then
12986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12988 cat >>confdefs.h <<\_ACEOF
12989 #define HAVE_PTHREAD_GETSPECIFIC 1
12996 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12998 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12999 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13000 if test "${ac_cv_lib_z_compress2+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 ac_check_lib_save_LIBS=$LIBS
13005 cat >conftest.$ac_ext <<_ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h. */
13012 /* Override any GCC internal prototype to avoid an error.
13013 Use char because int might match the return type of a GCC
13014 builtin and then its argument prototype would still apply. */
13022 return compress2 ();
13027 rm -f conftest.$ac_objext conftest$ac_exeext
13028 if { (ac_try="$ac_link"
13029 case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_link") 2>conftest.er1
13036 grep -v '^ *+' conftest.er1 >conftest.err
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13042 { (case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_try") 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; } &&
13051 { ac_try='test -s conftest$ac_exeext'
13052 { (case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057 (eval "$ac_try") 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 ac_cv_lib_z_compress2=yes
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 ac_cv_lib_z_compress2=no
13069 rm -f core conftest.err conftest.$ac_objext \
13070 conftest$ac_exeext conftest.$ac_ext
13071 LIBS=$ac_check_lib_save_LIBS
13073 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13074 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13075 if test $ac_cv_lib_z_compress2 = yes; then
13076 cat >>confdefs.h <<_ACEOF
13077 #define HAVE_LIBZ 1
13087 # Check whether --with-udis86 was given.
13088 if test "${with_udis86+set}" = set; then
13089 withval=$with_udis86;
13094 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13097 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13098 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13099 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 ac_check_lib_save_LIBS=$LIBS
13103 LIBS="-ludis86 $LIBS"
13104 cat >conftest.$ac_ext <<_ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13111 /* Override any GCC internal prototype to avoid an error.
13112 Use char because int might match the return type of a GCC
13113 builtin and then its argument prototype would still apply. */
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (ac_try="$ac_link"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_link") 2>conftest.er1
13135 grep -v '^ *+' conftest.er1 >conftest.err
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13141 { (case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_try") 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest$ac_exeext'
13151 { (case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_try") 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_cv_lib_udis86_ud_init=yes
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_cv_lib_udis86_ud_init=no
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13172 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13173 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13174 if test $ac_cv_lib_udis86_ud_init = yes; then
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_LIBUDIS86 1
13179 LIBS="-ludis86 $LIBS"
13183 echo "Error! You need to have libudis86 around."
13195 cat >>confdefs.h <<_ACEOF
13196 #define USE_UDIS86 $USE_UDIS86
13201 # Check whether --with-oprofile was given.
13202 if test "${with_oprofile+set}" = set; then
13203 withval=$with_oprofile;
13207 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13208 no) llvm_cv_oppath=
13211 *) llvm_cv_oppath="${withval}/lib/oprofile"
13212 CPPFLAGS="-I${withval}/include";;
13214 case $llvm_cv_os_type in
13216 if test -n "$llvm_cv_oppath" ; then
13217 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13218 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13219 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13220 if test "${ac_cv_search_bfd_init+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_func_search_save_LIBS=$LIBS
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13231 /* Override any GCC internal prototype to avoid an error.
13232 Use char because int might match the return type of a GCC
13233 builtin and then its argument prototype would still apply. */
13241 return bfd_init ();
13246 for ac_lib in '' bfd; do
13247 if test -z "$ac_lib"; then
13248 ac_res="none required"
13251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13253 rm -f conftest.$ac_objext conftest$ac_exeext
13254 if { (ac_try="$ac_link"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_link") 2>conftest.er1
13262 grep -v '^ *+' conftest.er1 >conftest.err
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13268 { (case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273 (eval "$ac_try") 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; } &&
13277 { ac_try='test -s conftest$ac_exeext'
13278 { (case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_try") 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_search_bfd_init=$ac_res
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13295 rm -f core conftest.err conftest.$ac_objext \
13297 if test "${ac_cv_search_bfd_init+set}" = set; then
13301 if test "${ac_cv_search_bfd_init+set}" = set; then
13304 ac_cv_search_bfd_init=no
13306 rm conftest.$ac_ext
13307 LIBS=$ac_func_search_save_LIBS
13309 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13310 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13311 ac_res=$ac_cv_search_bfd_init
13312 if test "$ac_res" != no; then
13313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13317 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13318 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13319 if test "${ac_cv_search_op_open_agent+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 ac_func_search_save_LIBS=$LIBS
13323 cat >conftest.$ac_ext <<_ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13330 /* Override any GCC internal prototype to avoid an error.
13331 Use char because int might match the return type of a GCC
13332 builtin and then its argument prototype would still apply. */
13336 char op_open_agent ();
13340 return op_open_agent ();
13345 for ac_lib in '' opagent; do
13346 if test -z "$ac_lib"; then
13347 ac_res="none required"
13350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (ac_try="$ac_link"
13354 case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_link") 2>conftest.er1
13361 grep -v '^ *+' conftest.er1 >conftest.err
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13367 { (case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_try") 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_try") 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_search_op_open_agent=$ac_res
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13394 rm -f core conftest.err conftest.$ac_objext \
13396 if test "${ac_cv_search_op_open_agent+set}" = set; then
13400 if test "${ac_cv_search_op_open_agent+set}" = set; then
13403 ac_cv_search_op_open_agent=no
13405 rm conftest.$ac_ext
13406 LIBS=$ac_func_search_save_LIBS
13408 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13409 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13410 ac_res=$ac_cv_search_op_open_agent
13411 if test "$ac_res" != no; then
13412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13416 echo "Error! You need to have libopagent around."
13421 if test "${ac_cv_header_opagent_h+set}" = set; then
13422 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13423 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13424 if test "${ac_cv_header_opagent_h+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13428 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13430 # Is the header compilable?
13431 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13432 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 #include <opagent.h>
13442 rm -f conftest.$ac_objext
13443 if { (ac_try="$ac_compile"
13444 case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_compile") 2>conftest.er1
13451 grep -v '^ *+' conftest.er1 >conftest.err
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13457 { (case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_try") 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; } &&
13466 { ac_try='test -s conftest.$ac_objext'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_header_compiler=yes
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13481 ac_header_compiler=no
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 echo "${ECHO_T}$ac_header_compiler" >&6; }
13488 # Is the header present?
13489 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13490 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include <opagent.h>
13499 if { (ac_try="$ac_cpp conftest.$ac_ext"
13500 case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13507 grep -v '^ *+' conftest.er1 >conftest.err
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } >/dev/null; then
13512 if test -s conftest.err; then
13513 ac_cpp_err=$ac_c_preproc_warn_flag
13514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13521 if test -z "$ac_cpp_err"; then
13522 ac_header_preproc=yes
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_header_preproc=no
13530 rm -f conftest.err conftest.$ac_ext
13531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13532 echo "${ECHO_T}$ac_header_preproc" >&6; }
13534 # So? What about this header?
13535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13537 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13538 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13540 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13541 ac_header_preproc=yes
13544 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13545 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13547 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13549 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13551 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13553 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13555 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13557 ## ------------------------------------ ##
13558 ## Report this to http://llvm.org/bugs/ ##
13559 ## ------------------------------------ ##
13561 ) | sed "s/^/$as_me: WARNING: /" >&2
13564 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13565 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13566 if test "${ac_cv_header_opagent_h+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 ac_cv_header_opagent_h=$ac_header_preproc
13571 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13572 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13575 if test $ac_cv_header_opagent_h = yes; then
13579 echo "Error! You need to have opagent.h around."
13587 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13588 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13589 { (exit 1); exit 1; }; } ;;
13600 cat >>confdefs.h <<_ACEOF
13601 #define LLVM_USE_OPROFILE $USE_OPROFILE
13606 # Check whether --with-intel-jitevents was given.
13607 if test "${with_intel_jitevents+set}" = set; then
13608 withval=$with_intel_jitevents;
13610 yes) USE_INTEL_JITEVENTS=1
13612 no) USE_INTEL_JITEVENTS=0
13614 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13615 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13616 { (exit 1); exit 1; }; };;
13619 case $llvm_cv_os_type in
13620 Linux|Win32|Cygwin|MingW) ;;
13621 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13622 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13623 { (exit 1); exit 1; }; };;
13626 case "$llvm_cv_target_arch" in
13628 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13629 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13630 { (exit 1); exit 1; }; };;
13635 USE_INTEL_JITEVENTS=0
13641 cat >>confdefs.h <<_ACEOF
13642 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13646 for ac_prog in xml2-config
13648 # Extract the first word of "$ac_prog", so it can be a program name with args.
13649 set dummy $ac_prog; ac_word=$2
13650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13652 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 if test -n "$XML2CONFIG"; then
13656 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13662 test -z "$as_dir" && as_dir=.
13663 for ac_exec_ext in '' $ac_executable_extensions; do
13664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13665 ac_cv_prog_XML2CONFIG="$ac_prog"
13666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13676 if test -n "$XML2CONFIG"; then
13677 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13678 echo "${ECHO_T}$XML2CONFIG" >&6; }
13680 { echo "$as_me:$LINENO: result: no" >&5
13681 echo "${ECHO_T}no" >&6; }
13685 test -n "$XML2CONFIG" && break
13689 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13690 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13691 if test "x$XML2CONFIG" = "x"; then
13692 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13693 echo "${ECHO_T}xml2-config not found" >&6; }
13695 LIBXML2_INC=`$XML2CONFIG --cflags`
13696 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13697 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13698 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13699 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13700 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 ac_check_lib_save_LIBS=$LIBS
13704 LIBS="-lxml2 $LIBS"
13705 cat >conftest.$ac_ext <<_ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13712 /* Override any GCC internal prototype to avoid an error.
13713 Use char because int might match the return type of a GCC
13714 builtin and then its argument prototype would still apply. */
13718 char xmlReadFile ();
13722 return xmlReadFile ();
13727 rm -f conftest.$ac_objext conftest$ac_exeext
13728 if { (ac_try="$ac_link"
13729 case "(($ac_try" in
13730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731 *) ac_try_echo=$ac_try;;
13733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734 (eval "$ac_link") 2>conftest.er1
13736 grep -v '^ *+' conftest.er1 >conftest.err
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13742 { (case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_try") 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest$ac_exeext'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_cv_lib_xml2_xmlReadFile=yes
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ac_cv_lib_xml2_xmlReadFile=no
13769 rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_check_lib_save_LIBS
13773 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13774 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13775 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13777 cat >>confdefs.h <<\_ACEOF
13778 #define CLANG_HAVE_LIBXML 1
13781 LIBXML2_LIBS="-lxml2"
13794 ac_header_dirent=no
13795 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13796 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13797 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13798 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 cat >conftest.$ac_ext <<_ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h. */
13808 #include <sys/types.h>
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_compile") 2>conftest.er1
13829 grep -v '^ *+' conftest.er1 >conftest.err
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13835 { (case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_try") 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest.$ac_objext'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 eval "$as_ac_Header=yes"
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 eval "$as_ac_Header=no"
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 ac_res=`eval echo '${'$as_ac_Header'}'`
13865 { echo "$as_me:$LINENO: result: $ac_res" >&5
13866 echo "${ECHO_T}$ac_res" >&6; }
13867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13868 cat >>confdefs.h <<_ACEOF
13869 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13872 ac_header_dirent=$ac_hdr; break
13876 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13877 if test $ac_header_dirent = dirent.h; then
13878 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13879 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13880 if test "${ac_cv_search_opendir+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 ac_func_search_save_LIBS=$LIBS
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13891 /* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13906 for ac_lib in '' dir; do
13907 if test -z "$ac_lib"; then
13908 ac_res="none required"
13911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13913 rm -f conftest.$ac_objext conftest$ac_exeext
13914 if { (ac_try="$ac_link"
13915 case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_link") 2>conftest.er1
13922 grep -v '^ *+' conftest.er1 >conftest.err
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_search_opendir=$ac_res
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13955 rm -f core conftest.err conftest.$ac_objext \
13957 if test "${ac_cv_search_opendir+set}" = set; then
13961 if test "${ac_cv_search_opendir+set}" = set; then
13964 ac_cv_search_opendir=no
13966 rm conftest.$ac_ext
13967 LIBS=$ac_func_search_save_LIBS
13969 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13970 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13971 ac_res=$ac_cv_search_opendir
13972 if test "$ac_res" != no; then
13973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13978 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13980 if test "${ac_cv_search_opendir+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 ac_func_search_save_LIBS=$LIBS
13984 cat >conftest.$ac_ext <<_ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13991 /* Override any GCC internal prototype to avoid an error.
13992 Use char because int might match the return type of a GCC
13993 builtin and then its argument prototype would still apply. */
14006 for ac_lib in '' x; do
14007 if test -z "$ac_lib"; then
14008 ac_res="none required"
14011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14013 rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (ac_try="$ac_link"
14015 case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_link") 2>conftest.er1
14022 grep -v '^ *+' conftest.er1 >conftest.err
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028 { (case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_try") 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
14038 { (case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_try") 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_search_opendir=$ac_res
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14055 rm -f core conftest.err conftest.$ac_objext \
14057 if test "${ac_cv_search_opendir+set}" = set; then
14061 if test "${ac_cv_search_opendir+set}" = set; then
14064 ac_cv_search_opendir=no
14066 rm conftest.$ac_ext
14067 LIBS=$ac_func_search_save_LIBS
14069 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14070 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14071 ac_res=$ac_cv_search_opendir
14072 if test "$ac_res" != no; then
14073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14079 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14080 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14081 if test "${ac_cv_header_mmap_anon+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 ac_cpp='$CPP $CPPFLAGS'
14086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 #include <sys/mman.h>
14097 #include <unistd.h>
14102 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14107 rm -f conftest.$ac_objext
14108 if { (ac_try="$ac_compile"
14109 case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_compile") 2>conftest.er1
14116 grep -v '^ *+' conftest.er1 >conftest.err
14118 cat conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
14121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14122 { (case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_try") 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_try") 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_header_mmap_anon=yes
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 ac_cv_header_mmap_anon=no
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151 ac_cpp='$CPP $CPPFLAGS'
14152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14158 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14159 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14160 if test "$ac_cv_header_mmap_anon" = yes; then
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_MMAP_ANONYMOUS 1
14168 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14169 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14170 if test "${ac_cv_header_stat_broken+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 cat >conftest.$ac_ext <<_ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 #include <sys/types.h>
14180 #include <sys/stat.h>
14182 #if defined S_ISBLK && defined S_IFDIR
14183 # if S_ISBLK (S_IFDIR)
14188 #if defined S_ISBLK && defined S_IFCHR
14189 # if S_ISBLK (S_IFCHR)
14194 #if defined S_ISLNK && defined S_IFREG
14195 # if S_ISLNK (S_IFREG)
14200 #if defined S_ISSOCK && defined S_IFREG
14201 # if S_ISSOCK (S_IFREG)
14207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14208 $EGREP "You lose" >/dev/null 2>&1; then
14209 ac_cv_header_stat_broken=yes
14211 ac_cv_header_stat_broken=no
14216 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14217 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14218 if test $ac_cv_header_stat_broken = yes; then
14220 cat >>confdefs.h <<\_ACEOF
14221 #define STAT_MACROS_BROKEN 1
14226 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14227 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14228 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <sys/types.h>
14238 #include <sys/wait.h>
14239 #ifndef WEXITSTATUS
14240 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14243 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14251 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14256 rm -f conftest.$ac_objext
14257 if { (ac_try="$ac_compile"
14258 case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263 (eval "$ac_compile") 2>conftest.er1
14265 grep -v '^ *+' conftest.er1 >conftest.err
14267 cat conftest.err >&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
14270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_header_sys_wait_h=yes
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 ac_cv_header_sys_wait_h=no
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14301 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14302 if test $ac_cv_header_sys_wait_h = yes; then
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_SYS_WAIT_H 1
14310 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14311 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14312 if test "${ac_cv_header_time+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 #include <sys/types.h>
14322 #include <sys/time.h>
14328 if ((struct tm *) 0)
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_compile") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349 { (case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_try") 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest.$ac_objext'
14359 { (case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_try") 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_cv_header_time=yes
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_cv_header_time=no
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14380 if test $ac_cv_header_time = yes; then
14382 cat >>confdefs.h <<\_ACEOF
14383 #define TIME_WITH_SYS_TIME 1
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
14396 ac_cpp='$CXXCPP $CPPFLAGS'
14397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14400 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14401 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14402 if test -z "$CXXCPP"; then
14403 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 # Double quotes because CXXCPP needs to be expanded
14407 for CXXCPP in "$CXX -E" "/lib/cpp"
14409 ac_preproc_ok=false
14410 for ac_cxx_preproc_warn_flag in '' yes
14412 # Use a header file that comes with gcc, so configuring glibc
14413 # with a fresh cross-compiler works.
14414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14415 # <limits.h> exists even on freestanding compilers.
14416 # On the NeXT, cc -E runs the code through the compiler's parser,
14417 # not just through cpp. "Syntax error" is here to catch this case.
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14425 # include <limits.h>
14427 # include <assert.h>
14431 if { (ac_try="$ac_cpp conftest.$ac_ext"
14432 case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14439 grep -v '^ *+' conftest.er1 >conftest.err
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } >/dev/null; then
14444 if test -s conftest.err; then
14445 ac_cpp_err=$ac_cxx_preproc_warn_flag
14446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14453 if test -z "$ac_cpp_err"; then
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 # Broken: fails on valid input.
14463 rm -f conftest.err conftest.$ac_ext
14465 # OK, works on sane cases. Now check whether nonexistent headers
14466 # can be detected and how.
14467 cat >conftest.$ac_ext <<_ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 #include <ac_nonexistent.h>
14475 if { (ac_try="$ac_cpp conftest.$ac_ext"
14476 case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14483 grep -v '^ *+' conftest.er1 >conftest.err
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } >/dev/null; then
14488 if test -s conftest.err; then
14489 ac_cpp_err=$ac_cxx_preproc_warn_flag
14490 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14497 if test -z "$ac_cpp_err"; then
14498 # Broken: success on invalid input.
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 # Passes both tests.
14509 rm -f conftest.err conftest.$ac_ext
14512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14513 rm -f conftest.err conftest.$ac_ext
14514 if $ac_preproc_ok; then
14519 ac_cv_prog_CXXCPP=$CXXCPP
14522 CXXCPP=$ac_cv_prog_CXXCPP
14524 ac_cv_prog_CXXCPP=$CXXCPP
14526 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14527 echo "${ECHO_T}$CXXCPP" >&6; }
14528 ac_preproc_ok=false
14529 for ac_cxx_preproc_warn_flag in '' yes
14531 # Use a header file that comes with gcc, so configuring glibc
14532 # with a fresh cross-compiler works.
14533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14534 # <limits.h> exists even on freestanding compilers.
14535 # On the NeXT, cc -E runs the code through the compiler's parser,
14536 # not just through cpp. "Syntax error" is here to catch this case.
14537 cat >conftest.$ac_ext <<_ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14544 # include <limits.h>
14546 # include <assert.h>
14550 if { (ac_try="$ac_cpp conftest.$ac_ext"
14551 case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14558 grep -v '^ *+' conftest.er1 >conftest.err
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } >/dev/null; then
14563 if test -s conftest.err; then
14564 ac_cpp_err=$ac_cxx_preproc_warn_flag
14565 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14572 if test -z "$ac_cpp_err"; then
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 # Broken: fails on valid input.
14582 rm -f conftest.err conftest.$ac_ext
14584 # OK, works on sane cases. Now check whether nonexistent headers
14585 # can be detected and how.
14586 cat >conftest.$ac_ext <<_ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 #include <ac_nonexistent.h>
14594 if { (ac_try="$ac_cpp conftest.$ac_ext"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14602 grep -v '^ *+' conftest.er1 >conftest.err
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } >/dev/null; then
14607 if test -s conftest.err; then
14608 ac_cpp_err=$ac_cxx_preproc_warn_flag
14609 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14616 if test -z "$ac_cpp_err"; then
14617 # Broken: success on invalid input.
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 # Passes both tests.
14628 rm -f conftest.err conftest.$ac_ext
14631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14632 rm -f conftest.err conftest.$ac_ext
14633 if $ac_preproc_ok; then
14636 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14637 See \`config.log' for more details." >&5
14638 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14639 See \`config.log' for more details." >&2;}
14640 { (exit 1); exit 1; }; }
14644 ac_cpp='$CXXCPP $CPPFLAGS'
14645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14651 for ac_header in cxxabi.h
14653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 ac_res=`eval echo '${'$as_ac_Header'}'`
14661 { echo "$as_me:$LINENO: result: $ac_res" >&5
14662 echo "${ECHO_T}$ac_res" >&6; }
14664 # Is the header compilable?
14665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14667 cat >conftest.$ac_ext <<_ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 $ac_includes_default
14674 #include <$ac_header>
14676 rm -f conftest.$ac_objext
14677 if { (ac_try="$ac_compile"
14678 case "(($ac_try" in
14679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680 *) ac_try_echo=$ac_try;;
14682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14683 (eval "$ac_compile") 2>conftest.er1
14685 grep -v '^ *+' conftest.er1 >conftest.err
14687 cat conftest.err >&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14691 { (case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_try") 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_try") 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 ac_header_compiler=yes
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 ac_header_compiler=no
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14720 echo "${ECHO_T}$ac_header_compiler" >&6; }
14722 # Is the header present?
14723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14725 cat >conftest.$ac_ext <<_ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 #include <$ac_header>
14733 if { (ac_try="$ac_cpp conftest.$ac_ext"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } >/dev/null; then
14746 if test -s conftest.err; then
14747 ac_cpp_err=$ac_cxx_preproc_warn_flag
14748 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14755 if test -z "$ac_cpp_err"; then
14756 ac_header_preproc=yes
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14761 ac_header_preproc=no
14764 rm -f conftest.err conftest.$ac_ext
14765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14766 echo "${ECHO_T}$ac_header_preproc" >&6; }
14768 # So? What about this header?
14769 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14775 ac_header_preproc=yes
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14791 ## ------------------------------------ ##
14792 ## Report this to http://llvm.org/bugs/ ##
14793 ## ------------------------------------ ##
14795 ) | sed "s/^/$as_me: WARNING: /" >&2
14798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 eval "$as_ac_Header=\$ac_header_preproc"
14805 ac_res=`eval echo '${'$as_ac_Header'}'`
14806 { echo "$as_me:$LINENO: result: $ac_res" >&5
14807 echo "${ECHO_T}$ac_res" >&6; }
14810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14811 cat >>confdefs.h <<_ACEOF
14812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820 ac_cpp='$CPP $CPPFLAGS'
14821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14830 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 ac_res=`eval echo '${'$as_ac_Header'}'`
14840 { echo "$as_me:$LINENO: result: $ac_res" >&5
14841 echo "${ECHO_T}$ac_res" >&6; }
14843 # Is the header compilable?
14844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14846 cat >conftest.$ac_ext <<_ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14852 $ac_includes_default
14853 #include <$ac_header>
14855 rm -f conftest.$ac_objext
14856 if { (ac_try="$ac_compile"
14857 case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_compile") 2>conftest.er1
14864 grep -v '^ *+' conftest.er1 >conftest.err
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_header_compiler=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_header_compiler=no
14897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14899 echo "${ECHO_T}$ac_header_compiler" >&6; }
14901 # Is the header present?
14902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14904 cat >conftest.$ac_ext <<_ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14910 #include <$ac_header>
14912 if { (ac_try="$ac_cpp conftest.$ac_ext"
14913 case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14920 grep -v '^ *+' conftest.er1 >conftest.err
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } >/dev/null; then
14925 if test -s conftest.err; then
14926 ac_cpp_err=$ac_c_preproc_warn_flag
14927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14934 if test -z "$ac_cpp_err"; then
14935 ac_header_preproc=yes
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_header_preproc=no
14943 rm -f conftest.err conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14945 echo "${ECHO_T}$ac_header_preproc" >&6; }
14947 # So? What about this header?
14948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14954 ac_header_preproc=yes
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14970 ## ------------------------------------ ##
14971 ## Report this to http://llvm.org/bugs/ ##
14972 ## ------------------------------------ ##
14974 ) | sed "s/^/$as_me: WARNING: /" >&2
14977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 eval "$as_ac_Header=\$ac_header_preproc"
14984 ac_res=`eval echo '${'$as_ac_Header'}'`
14985 { echo "$as_me:$LINENO: result: $ac_res" >&5
14986 echo "${ECHO_T}$ac_res" >&6; }
14989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14990 cat >>confdefs.h <<_ACEOF
14991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15004 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_res=`eval echo '${'$as_ac_Header'}'`
15014 { echo "$as_me:$LINENO: result: $ac_res" >&5
15015 echo "${ECHO_T}$ac_res" >&6; }
15017 # Is the header compilable?
15018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15020 cat >conftest.$ac_ext <<_ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 $ac_includes_default
15027 #include <$ac_header>
15029 rm -f conftest.$ac_objext
15030 if { (ac_try="$ac_compile"
15031 case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_compile") 2>conftest.er1
15038 grep -v '^ *+' conftest.er1 >conftest.err
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15044 { (case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_try") 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest.$ac_objext'
15054 { (case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_try") 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_header_compiler=yes
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_header_compiler=no
15071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15073 echo "${ECHO_T}$ac_header_compiler" >&6; }
15075 # Is the header present?
15076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15078 cat >conftest.$ac_ext <<_ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15084 #include <$ac_header>
15086 if { (ac_try="$ac_cpp conftest.$ac_ext"
15087 case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } >/dev/null; then
15099 if test -s conftest.err; then
15100 ac_cpp_err=$ac_c_preproc_warn_flag
15101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15108 if test -z "$ac_cpp_err"; then
15109 ac_header_preproc=yes
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 ac_header_preproc=no
15117 rm -f conftest.err conftest.$ac_ext
15118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15119 echo "${ECHO_T}$ac_header_preproc" >&6; }
15121 # So? What about this header?
15122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15128 ac_header_preproc=yes
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15144 ## ------------------------------------ ##
15145 ## Report this to http://llvm.org/bugs/ ##
15146 ## ------------------------------------ ##
15148 ) | sed "s/^/$as_me: WARNING: /" >&2
15151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 eval "$as_ac_Header=\$ac_header_preproc"
15158 ac_res=`eval echo '${'$as_ac_Header'}'`
15159 { echo "$as_me:$LINENO: result: $ac_res" >&5
15160 echo "${ECHO_T}$ac_res" >&6; }
15163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15164 cat >>confdefs.h <<_ACEOF
15165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15173 for ac_header in utime.h
15175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 ac_res=`eval echo '${'$as_ac_Header'}'`
15183 { echo "$as_me:$LINENO: result: $ac_res" >&5
15184 echo "${ECHO_T}$ac_res" >&6; }
15186 # Is the header compilable?
15187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15189 cat >conftest.$ac_ext <<_ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 $ac_includes_default
15196 #include <$ac_header>
15198 rm -f conftest.$ac_objext
15199 if { (ac_try="$ac_compile"
15200 case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_compile") 2>conftest.er1
15207 grep -v '^ *+' conftest.er1 >conftest.err
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15213 { (case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_try") 2>&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; } &&
15222 { ac_try='test -s conftest.$ac_objext'
15223 { (case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_try") 2>&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_header_compiler=yes
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_header_compiler=no
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15242 echo "${ECHO_T}$ac_header_compiler" >&6; }
15244 # Is the header present?
15245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 #include <$ac_header>
15255 if { (ac_try="$ac_cpp conftest.$ac_ext"
15256 case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } >/dev/null; then
15268 if test -s conftest.err; then
15269 ac_cpp_err=$ac_c_preproc_warn_flag
15270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15277 if test -z "$ac_cpp_err"; then
15278 ac_header_preproc=yes
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 ac_header_preproc=no
15286 rm -f conftest.err conftest.$ac_ext
15287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15288 echo "${ECHO_T}$ac_header_preproc" >&6; }
15290 # So? What about this header?
15291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15297 ac_header_preproc=yes
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15313 ## ------------------------------------ ##
15314 ## Report this to http://llvm.org/bugs/ ##
15315 ## ------------------------------------ ##
15317 ) | sed "s/^/$as_me: WARNING: /" >&2
15320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 eval "$as_ac_Header=\$ac_header_preproc"
15327 ac_res=`eval echo '${'$as_ac_Header'}'`
15328 { echo "$as_me:$LINENO: result: $ac_res" >&5
15329 echo "${ECHO_T}$ac_res" >&6; }
15332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15333 cat >>confdefs.h <<_ACEOF
15334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15346 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 ac_res=`eval echo '${'$as_ac_Header'}'`
15356 { echo "$as_me:$LINENO: result: $ac_res" >&5
15357 echo "${ECHO_T}$ac_res" >&6; }
15359 # Is the header compilable?
15360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15362 cat >conftest.$ac_ext <<_ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 $ac_includes_default
15369 #include <$ac_header>
15371 rm -f conftest.$ac_objext
15372 if { (ac_try="$ac_compile"
15373 case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_compile") 2>conftest.er1
15380 grep -v '^ *+' conftest.er1 >conftest.err
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15386 { (case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391 (eval "$ac_try") 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; } &&
15395 { ac_try='test -s conftest.$ac_objext'
15396 { (case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_try") 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }; then
15405 ac_header_compiler=yes
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 ac_header_compiler=no
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15415 echo "${ECHO_T}$ac_header_compiler" >&6; }
15417 # Is the header present?
15418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 #include <$ac_header>
15428 if { (ac_try="$ac_cpp conftest.$ac_ext"
15429 case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } >/dev/null; then
15441 if test -s conftest.err; then
15442 ac_cpp_err=$ac_c_preproc_warn_flag
15443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15450 if test -z "$ac_cpp_err"; then
15451 ac_header_preproc=yes
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_header_preproc=no
15459 rm -f conftest.err conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15461 echo "${ECHO_T}$ac_header_preproc" >&6; }
15463 # So? What about this header?
15464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15470 ac_header_preproc=yes
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15486 ## ------------------------------------ ##
15487 ## Report this to http://llvm.org/bugs/ ##
15488 ## ------------------------------------ ##
15490 ) | sed "s/^/$as_me: WARNING: /" >&2
15493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 eval "$as_ac_Header=\$ac_header_preproc"
15500 ac_res=`eval echo '${'$as_ac_Header'}'`
15501 { echo "$as_me:$LINENO: result: $ac_res" >&5
15502 echo "${ECHO_T}$ac_res" >&6; }
15505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15506 cat >>confdefs.h <<_ACEOF
15507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15517 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 ac_res=`eval echo '${'$as_ac_Header'}'`
15527 { echo "$as_me:$LINENO: result: $ac_res" >&5
15528 echo "${ECHO_T}$ac_res" >&6; }
15530 # Is the header compilable?
15531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 $ac_includes_default
15540 #include <$ac_header>
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_compile") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557 { (case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_try") 2>&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; } &&
15566 { ac_try='test -s conftest.$ac_objext'
15567 { (case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_try") 2>&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_header_compiler=yes
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15581 ac_header_compiler=no
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586 echo "${ECHO_T}$ac_header_compiler" >&6; }
15588 # Is the header present?
15589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 #include <$ac_header>
15599 if { (ac_try="$ac_cpp conftest.$ac_ext"
15600 case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15607 grep -v '^ *+' conftest.er1 >conftest.err
15609 cat conftest.err >&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } >/dev/null; then
15612 if test -s conftest.err; then
15613 ac_cpp_err=$ac_c_preproc_warn_flag
15614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15621 if test -z "$ac_cpp_err"; then
15622 ac_header_preproc=yes
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ac_header_preproc=no
15630 rm -f conftest.err conftest.$ac_ext
15631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15632 echo "${ECHO_T}$ac_header_preproc" >&6; }
15634 # So? What about this header?
15635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15641 ac_header_preproc=yes
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15657 ## ------------------------------------ ##
15658 ## Report this to http://llvm.org/bugs/ ##
15659 ## ------------------------------------ ##
15661 ) | sed "s/^/$as_me: WARNING: /" >&2
15664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 eval "$as_ac_Header=\$ac_header_preproc"
15671 ac_res=`eval echo '${'$as_ac_Header'}'`
15672 { echo "$as_me:$LINENO: result: $ac_res" >&5
15673 echo "${ECHO_T}$ac_res" >&6; }
15676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15677 cat >>confdefs.h <<_ACEOF
15678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15686 for ac_header in valgrind/valgrind.h
15688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 ac_res=`eval echo '${'$as_ac_Header'}'`
15696 { echo "$as_me:$LINENO: result: $ac_res" >&5
15697 echo "${ECHO_T}$ac_res" >&6; }
15699 # Is the header compilable?
15700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15702 cat >conftest.$ac_ext <<_ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h. */
15708 $ac_includes_default
15709 #include <$ac_header>
15711 rm -f conftest.$ac_objext
15712 if { (ac_try="$ac_compile"
15713 case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_compile") 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726 { (case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_try") 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest.$ac_objext'
15736 { (case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_try") 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_header_compiler=yes
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ac_header_compiler=no
15753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15755 echo "${ECHO_T}$ac_header_compiler" >&6; }
15757 # Is the header present?
15758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15760 cat >conftest.$ac_ext <<_ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h. */
15766 #include <$ac_header>
15768 if { (ac_try="$ac_cpp conftest.$ac_ext"
15769 case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15776 grep -v '^ *+' conftest.er1 >conftest.err
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } >/dev/null; then
15781 if test -s conftest.err; then
15782 ac_cpp_err=$ac_c_preproc_warn_flag
15783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15790 if test -z "$ac_cpp_err"; then
15791 ac_header_preproc=yes
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 ac_header_preproc=no
15799 rm -f conftest.err conftest.$ac_ext
15800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15801 echo "${ECHO_T}$ac_header_preproc" >&6; }
15803 # So? What about this header?
15804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15810 ac_header_preproc=yes
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15826 ## ------------------------------------ ##
15827 ## Report this to http://llvm.org/bugs/ ##
15828 ## ------------------------------------ ##
15830 ) | sed "s/^/$as_me: WARNING: /" >&2
15833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 eval "$as_ac_Header=\$ac_header_preproc"
15840 ac_res=`eval echo '${'$as_ac_Header'}'`
15841 { echo "$as_me:$LINENO: result: $ac_res" >&5
15842 echo "${ECHO_T}$ac_res" >&6; }
15845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15846 cat >>confdefs.h <<_ACEOF
15847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15855 for ac_header in fenv.h
15857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15868 # Is the header compilable?
15869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15871 cat >conftest.$ac_ext <<_ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 #include <$ac_header>
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887 (eval "$ac_compile") 2>conftest.er1
15889 grep -v '^ *+' conftest.er1 >conftest.err
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895 { (case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_try") 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_try") 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 ac_header_compiler=yes
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_header_compiler=no
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15924 echo "${ECHO_T}$ac_header_compiler" >&6; }
15926 # Is the header present?
15927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15929 cat >conftest.$ac_ext <<_ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 #include <$ac_header>
15937 if { (ac_try="$ac_cpp conftest.$ac_ext"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } >/dev/null; then
15950 if test -s conftest.err; then
15951 ac_cpp_err=$ac_c_preproc_warn_flag
15952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15959 if test -z "$ac_cpp_err"; then
15960 ac_header_preproc=yes
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_header_preproc=no
15968 rm -f conftest.err conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15970 echo "${ECHO_T}$ac_header_preproc" >&6; }
15972 # So? What about this header?
15973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15979 ac_header_preproc=yes
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15995 ## ------------------------------------ ##
15996 ## Report this to http://llvm.org/bugs/ ##
15997 ## ------------------------------------ ##
15999 ) | sed "s/^/$as_me: WARNING: /" >&2
16002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 eval "$as_ac_Header=\$ac_header_preproc"
16009 ac_res=`eval echo '${'$as_ac_Header'}'`
16010 { echo "$as_me:$LINENO: result: $ac_res" >&5
16011 echo "${ECHO_T}$ac_res" >&6; }
16014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16015 cat >>confdefs.h <<_ACEOF
16016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16023 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16024 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16025 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16039 #ifndef FE_ALL_EXCEPT
16040 char *p = (char *) FE_ALL_EXCEPT;
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_compile") 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16063 { (case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_try") 2>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; } &&
16072 { ac_try='test -s conftest.$ac_objext'
16073 { (case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_try") 2>&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; }; then
16082 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16087 ac_cv_have_decl_FE_ALL_EXCEPT=no
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16093 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16094 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define HAVE_DECL_FE_ALL_EXCEPT 1
16102 cat >>confdefs.h <<_ACEOF
16103 #define HAVE_DECL_FE_ALL_EXCEPT 0
16108 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16109 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16110 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 cat >conftest.$ac_ext <<_ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16125 char *p = (char *) FE_INEXACT;
16133 rm -f conftest.$ac_objext
16134 if { (ac_try="$ac_compile"
16135 case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_compile") 2>conftest.er1
16142 grep -v '^ *+' conftest.er1 >conftest.err
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16148 { (case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_try") 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try='test -s conftest.$ac_objext'
16158 { (case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_try") 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 ac_cv_have_decl_FE_INEXACT=yes
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 ac_cv_have_decl_FE_INEXACT=no
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16178 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16179 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16181 cat >>confdefs.h <<_ACEOF
16182 #define HAVE_DECL_FE_INEXACT 1
16187 cat >>confdefs.h <<_ACEOF
16188 #define HAVE_DECL_FE_INEXACT 0
16195 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16197 for ac_header in pthread.h
16199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 ac_res=`eval echo '${'$as_ac_Header'}'`
16207 { echo "$as_me:$LINENO: result: $ac_res" >&5
16208 echo "${ECHO_T}$ac_res" >&6; }
16210 # Is the header compilable?
16211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 $ac_includes_default
16220 #include <$ac_header>
16222 rm -f conftest.$ac_objext
16223 if { (ac_try="$ac_compile"
16224 case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_compile") 2>conftest.er1
16231 grep -v '^ *+' conftest.er1 >conftest.err
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } &&
16236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16237 { (case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_try") 2>&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; } &&
16246 { ac_try='test -s conftest.$ac_objext'
16247 { (case "(($ac_try" in
16248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249 *) ac_try_echo=$ac_try;;
16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252 (eval "$ac_try") 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 ac_header_compiler=yes
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 ac_header_compiler=no
16264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16266 echo "${ECHO_T}$ac_header_compiler" >&6; }
16268 # Is the header present?
16269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16271 cat >conftest.$ac_ext <<_ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16277 #include <$ac_header>
16279 if { (ac_try="$ac_cpp conftest.$ac_ext"
16280 case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16287 grep -v '^ *+' conftest.er1 >conftest.err
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } >/dev/null; then
16292 if test -s conftest.err; then
16293 ac_cpp_err=$ac_c_preproc_warn_flag
16294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16301 if test -z "$ac_cpp_err"; then
16302 ac_header_preproc=yes
16304 echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 ac_header_preproc=no
16310 rm -f conftest.err conftest.$ac_ext
16311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16312 echo "${ECHO_T}$ac_header_preproc" >&6; }
16314 # So? What about this header?
16315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16321 ac_header_preproc=yes
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16337 ## ------------------------------------ ##
16338 ## Report this to http://llvm.org/bugs/ ##
16339 ## ------------------------------------ ##
16341 ) | sed "s/^/$as_me: WARNING: /" >&2
16344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 eval "$as_ac_Header=\$ac_header_preproc"
16351 ac_res=`eval echo '${'$as_ac_Header'}'`
16352 { echo "$as_me:$LINENO: result: $ac_res" >&5
16353 echo "${ECHO_T}$ac_res" >&6; }
16356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16373 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16375 for ac_header in zlib.h
16377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16384 ac_res=`eval echo '${'$as_ac_Header'}'`
16385 { echo "$as_me:$LINENO: result: $ac_res" >&5
16386 echo "${ECHO_T}$ac_res" >&6; }
16388 # Is the header compilable?
16389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16391 cat >conftest.$ac_ext <<_ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 $ac_includes_default
16398 #include <$ac_header>
16400 rm -f conftest.$ac_objext
16401 if { (ac_try="$ac_compile"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_compile") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16415 { (case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_try") 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest.$ac_objext'
16425 { (case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_try") 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ac_header_compiler=yes
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_header_compiler=no
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16444 echo "${ECHO_T}$ac_header_compiler" >&6; }
16446 # Is the header present?
16447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 #include <$ac_header>
16457 if { (ac_try="$ac_cpp conftest.$ac_ext"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } >/dev/null; then
16470 if test -s conftest.err; then
16471 ac_cpp_err=$ac_c_preproc_warn_flag
16472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16479 if test -z "$ac_cpp_err"; then
16480 ac_header_preproc=yes
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 ac_header_preproc=no
16488 rm -f conftest.err conftest.$ac_ext
16489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16490 echo "${ECHO_T}$ac_header_preproc" >&6; }
16492 # So? What about this header?
16493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16499 ac_header_preproc=yes
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16515 ## ------------------------------------ ##
16516 ## Report this to http://llvm.org/bugs/ ##
16517 ## ------------------------------------ ##
16519 ) | sed "s/^/$as_me: WARNING: /" >&2
16522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 eval "$as_ac_Header=\$ac_header_preproc"
16529 ac_res=`eval echo '${'$as_ac_Header'}'`
16530 { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16535 cat >>confdefs.h <<_ACEOF
16536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16552 if test "$llvm_cv_enable_libffi" = "yes" ; then
16555 for ac_header in ffi.h ffi/ffi.h
16557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 ac_res=`eval echo '${'$as_ac_Header'}'`
16565 { echo "$as_me:$LINENO: result: $ac_res" >&5
16566 echo "${ECHO_T}$ac_res" >&6; }
16568 # Is the header compilable?
16569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16571 cat >conftest.$ac_ext <<_ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 $ac_includes_default
16578 #include <$ac_header>
16580 rm -f conftest.$ac_objext
16581 if { (ac_try="$ac_compile"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_compile") 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16595 { (case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_try") 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_try") 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_header_compiler=yes
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ac_header_compiler=no
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16624 echo "${ECHO_T}$ac_header_compiler" >&6; }
16626 # Is the header present?
16627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <$ac_header>
16637 if { (ac_try="$ac_cpp conftest.$ac_ext"
16638 case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } >/dev/null; then
16650 if test -s conftest.err; then
16651 ac_cpp_err=$ac_c_preproc_warn_flag
16652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16659 if test -z "$ac_cpp_err"; then
16660 ac_header_preproc=yes
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 ac_header_preproc=no
16668 rm -f conftest.err conftest.$ac_ext
16669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16670 echo "${ECHO_T}$ac_header_preproc" >&6; }
16672 # So? What about this header?
16673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16679 ac_header_preproc=yes
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16695 ## ------------------------------------ ##
16696 ## Report this to http://llvm.org/bugs/ ##
16697 ## ------------------------------------ ##
16699 ) | sed "s/^/$as_me: WARNING: /" >&2
16702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 eval "$as_ac_Header=\$ac_header_preproc"
16709 ac_res=`eval echo '${'$as_ac_Header'}'`
16710 { echo "$as_me:$LINENO: result: $ac_res" >&5
16711 echo "${ECHO_T}$ac_res" >&6; }
16714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16715 cat >>confdefs.h <<_ACEOF
16716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16726 for ac_header in CrashReporterClient.h
16728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 ac_res=`eval echo '${'$as_ac_Header'}'`
16736 { echo "$as_me:$LINENO: result: $ac_res" >&5
16737 echo "${ECHO_T}$ac_res" >&6; }
16739 # Is the header compilable?
16740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16742 cat >conftest.$ac_ext <<_ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16748 $ac_includes_default
16749 #include <$ac_header>
16751 rm -f conftest.$ac_objext
16752 if { (ac_try="$ac_compile"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_compile") 2>conftest.er1
16760 grep -v '^ *+' conftest.er1 >conftest.err
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } &&
16765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16766 { (case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_try") 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } &&
16775 { ac_try='test -s conftest.$ac_objext'
16776 { (case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781 (eval "$ac_try") 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_header_compiler=yes
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16790 ac_header_compiler=no
16793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16795 echo "${ECHO_T}$ac_header_compiler" >&6; }
16797 # Is the header present?
16798 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 #include <$ac_header>
16808 if { (ac_try="$ac_cpp conftest.$ac_ext"
16809 case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16816 grep -v '^ *+' conftest.er1 >conftest.err
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } >/dev/null; then
16821 if test -s conftest.err; then
16822 ac_cpp_err=$ac_c_preproc_warn_flag
16823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16830 if test -z "$ac_cpp_err"; then
16831 ac_header_preproc=yes
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 ac_header_preproc=no
16839 rm -f conftest.err conftest.$ac_ext
16840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16841 echo "${ECHO_T}$ac_header_preproc" >&6; }
16843 # So? What about this header?
16844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16850 ac_header_preproc=yes
16853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16866 ## ------------------------------------ ##
16867 ## Report this to http://llvm.org/bugs/ ##
16868 ## ------------------------------------ ##
16870 ) | sed "s/^/$as_me: WARNING: /" >&2
16873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16878 eval "$as_ac_Header=\$ac_header_preproc"
16880 ac_res=`eval echo '${'$as_ac_Header'}'`
16881 { echo "$as_me:$LINENO: result: $ac_res" >&5
16882 echo "${ECHO_T}$ac_res" >&6; }
16885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16886 cat >>confdefs.h <<_ACEOF
16887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16895 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16896 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16897 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 extern const char *__crashreporter_info__;
16907 __crashreporter_info__ = "test";
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (ac_try="$ac_link"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_link") 2>conftest.er1
16922 grep -v '^ *+' conftest.er1 >conftest.err
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16928 { (case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_try") 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest$ac_exeext'
16938 { (case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_try") 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16948 { echo "$as_me:$LINENO: result: yes" >&5
16949 echo "${ECHO_T}yes" >&6; }
16951 cat >>confdefs.h <<\_ACEOF
16952 #define HAVE_CRASHREPORTER_INFO 1
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16961 { echo "$as_me:$LINENO: result: no" >&5
16962 echo "${ECHO_T}no" >&6; }
16964 cat >>confdefs.h <<\_ACEOF
16965 #define HAVE_CRASHREPORTER_INFO 0
16971 rm -f core conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16976 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16977 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16978 if test "${ac_cv_huge_val_sanity+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 ac_cpp='$CXXCPP $CPPFLAGS'
16984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16988 ac_save_CXXFLAGS=$CXXFLAGS
16989 CXXFLAGS="$CXXFLAGS -pedantic"
16990 if test "$cross_compiling" = yes; then
16991 ac_cv_huge_val_sanity=yes
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
17003 double x = HUGE_VAL; return x != x;
17008 rm -f conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17019 { (case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_try") 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_cv_huge_val_sanity=yes
17030 echo "$as_me: program exited with status $ac_status" >&5
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17034 ( exit $ac_status )
17035 ac_cv_huge_val_sanity=no
17037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17041 CXXFLAGS=$ac_save_CXXFLAGS
17043 ac_cpp='$CPP $CPPFLAGS'
17044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17050 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17051 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17052 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17055 { echo "$as_me:$LINENO: checking for pid_t" >&5
17056 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17057 if test "${ac_cv_type_pid_t+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 cat >conftest.$ac_ext <<_ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 $ac_includes_default
17067 typedef pid_t ac__type_new_;
17071 if ((ac__type_new_ *) 0)
17073 if (sizeof (ac__type_new_))
17079 rm -f conftest.$ac_objext
17080 if { (ac_try="$ac_compile"
17081 case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_compile") 2>conftest.er1
17088 grep -v '^ *+' conftest.er1 >conftest.err
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest.$ac_objext'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_cv_type_pid_t=yes
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 ac_cv_type_pid_t=no
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17124 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17125 if test $ac_cv_type_pid_t = yes; then
17129 cat >>confdefs.h <<_ACEOF
17135 { echo "$as_me:$LINENO: checking for size_t" >&5
17136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17137 if test "${ac_cv_type_size_t+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 cat >conftest.$ac_ext <<_ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 $ac_includes_default
17147 typedef size_t ac__type_new_;
17151 if ((ac__type_new_ *) 0)
17153 if (sizeof (ac__type_new_))
17159 rm -f conftest.$ac_objext
17160 if { (ac_try="$ac_compile"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_compile") 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17174 { (case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_try") 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } &&
17183 { ac_try='test -s conftest.$ac_objext'
17184 { (case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_try") 2>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; }; then
17193 ac_cv_type_size_t=yes
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 ac_cv_type_size_t=no
17201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17203 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17204 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17205 if test $ac_cv_type_size_t = yes; then
17209 cat >>confdefs.h <<_ACEOF
17210 #define size_t unsigned int
17216 cat >>confdefs.h <<_ACEOF
17217 #define RETSIGTYPE void
17220 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17221 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17222 if test "${ac_cv_struct_tm+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 #include <sys/types.h>
17237 struct tm *tp; tp->tm_sec;
17242 rm -f conftest.$ac_objext
17243 if { (ac_try="$ac_compile"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_compile") 2>conftest.er1
17251 grep -v '^ *+' conftest.er1 >conftest.err
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17257 { (case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_try") 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; } &&
17266 { ac_try='test -s conftest.$ac_objext'
17267 { (case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_try") 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_cv_struct_tm=time.h
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17281 ac_cv_struct_tm=sys/time.h
17284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17286 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17287 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17288 if test $ac_cv_struct_tm = sys/time.h; then
17290 cat >>confdefs.h <<\_ACEOF
17291 #define TM_IN_SYS_TIME 1
17296 { echo "$as_me:$LINENO: checking for int64_t" >&5
17297 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17298 if test "${ac_cv_type_int64_t+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 cat >conftest.$ac_ext <<_ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 $ac_includes_default
17308 typedef int64_t ac__type_new_;
17312 if ((ac__type_new_ *) 0)
17314 if (sizeof (ac__type_new_))
17320 rm -f conftest.$ac_objext
17321 if { (ac_try="$ac_compile"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_compile") 2>conftest.er1
17329 grep -v '^ *+' conftest.er1 >conftest.err
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest.$ac_objext'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_cv_type_int64_t=yes
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 ac_cv_type_int64_t=no
17362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17365 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17366 if test $ac_cv_type_int64_t = yes; then
17368 cat >>confdefs.h <<_ACEOF
17369 #define HAVE_INT64_T 1
17374 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17375 echo "$as_me: error: Type int64_t required but not found" >&2;}
17376 { (exit 1); exit 1; }; }
17379 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17380 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17381 if test "${ac_cv_type_uint64_t+set}" = set; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 cat >conftest.$ac_ext <<_ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h. */
17390 $ac_includes_default
17391 typedef uint64_t ac__type_new_;
17395 if ((ac__type_new_ *) 0)
17397 if (sizeof (ac__type_new_))
17403 rm -f conftest.$ac_objext
17404 if { (ac_try="$ac_compile"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_compile") 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest.$ac_objext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_type_uint64_t=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_cv_type_uint64_t=no
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17448 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17449 if test $ac_cv_type_uint64_t = yes; then
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_UINT64_T 1
17457 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17458 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17459 if test "${ac_cv_type_u_int64_t+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 cat >conftest.$ac_ext <<_ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17468 $ac_includes_default
17469 typedef u_int64_t ac__type_new_;
17473 if ((ac__type_new_ *) 0)
17475 if (sizeof (ac__type_new_))
17481 rm -f conftest.$ac_objext
17482 if { (ac_try="$ac_compile"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_compile") 2>conftest.er1
17490 grep -v '^ *+' conftest.er1 >conftest.err
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest.$ac_objext'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 ac_cv_type_u_int64_t=yes
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 ac_cv_type_u_int64_t=no
17523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17526 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17527 if test $ac_cv_type_u_int64_t = yes; then
17529 cat >>confdefs.h <<_ACEOF
17530 #define HAVE_U_INT64_T 1
17535 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17536 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17537 { (exit 1); exit 1; }; }
17551 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 cat >conftest.$ac_ext <<_ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17567 #define $ac_func innocuous_$ac_func
17569 /* System header to define __stub macros and hopefully few prototypes,
17570 which can conflict with char $ac_func (); below.
17571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572 <limits.h> exists even on freestanding compilers. */
17575 # include <limits.h>
17577 # include <assert.h>
17582 /* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
17589 /* The GNU C library defines this for functions which it implements
17590 to always fail with ENOSYS. Some functions are actually named
17591 something starting with __ and the normal name is an alias. */
17592 #if defined __stub_$ac_func || defined __stub___$ac_func
17599 return $ac_func ();
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_link") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1 >conftest.err
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest$ac_exeext'
17629 { (case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_try") 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 eval "$as_ac_var=yes"
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 eval "$as_ac_var=no"
17646 rm -f core conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17649 ac_res=`eval echo '${'$as_ac_var'}'`
17650 { echo "$as_me:$LINENO: result: $ac_res" >&5
17651 echo "${ECHO_T}$ac_res" >&6; }
17652 if test `eval echo '${'$as_ac_var'}'` = yes; then
17653 cat >>confdefs.h <<_ACEOF
17654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17664 for ac_func in powf fmodf strtof round
17666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 cat >conftest.$ac_ext <<_ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17680 #define $ac_func innocuous_$ac_func
17682 /* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char $ac_func (); below.
17684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685 <limits.h> exists even on freestanding compilers. */
17688 # include <limits.h>
17690 # include <assert.h>
17695 /* Override any GCC internal prototype to avoid an error.
17696 Use char because int might match the return type of a GCC
17697 builtin and then its argument prototype would still apply. */
17702 /* The GNU C library defines this for functions which it implements
17703 to always fail with ENOSYS. Some functions are actually named
17704 something starting with __ and the normal name is an alias. */
17705 #if defined __stub_$ac_func || defined __stub___$ac_func
17712 return $ac_func ();
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (ac_try="$ac_link"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_link") 2>conftest.er1
17726 grep -v '^ *+' conftest.er1 >conftest.err
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } &&
17731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17732 { (case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; } &&
17741 { ac_try='test -s conftest$ac_exeext'
17742 { (case "(($ac_try" in
17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744 *) ac_try_echo=$ac_try;;
17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747 (eval "$ac_try") 2>&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
17751 eval "$as_ac_var=yes"
17753 echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17756 eval "$as_ac_var=no"
17759 rm -f core conftest.err conftest.$ac_objext \
17760 conftest$ac_exeext conftest.$ac_ext
17762 ac_res=`eval echo '${'$as_ac_var'}'`
17763 { echo "$as_me:$LINENO: result: $ac_res" >&5
17764 echo "${ECHO_T}$ac_res" >&6; }
17765 if test `eval echo '${'$as_ac_var'}'` = yes; then
17766 cat >>confdefs.h <<_ACEOF
17767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17778 for ac_func in log log2 log10 exp exp2
17780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 cat >conftest.$ac_ext <<_ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17794 #define $ac_func innocuous_$ac_func
17796 /* System header to define __stub macros and hopefully few prototypes,
17797 which can conflict with char $ac_func (); below.
17798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17799 <limits.h> exists even on freestanding compilers. */
17802 # include <limits.h>
17804 # include <assert.h>
17809 /* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17816 /* The GNU C library defines this for functions which it implements
17817 to always fail with ENOSYS. Some functions are actually named
17818 something starting with __ and the normal name is an alias. */
17819 #if defined __stub_$ac_func || defined __stub___$ac_func
17826 return $ac_func ();
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (ac_try="$ac_link"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_link") 2>conftest.er1
17840 grep -v '^ *+' conftest.er1 >conftest.err
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest$ac_exeext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 eval "$as_ac_var=yes"
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 eval "$as_ac_var=no"
17873 rm -f core conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17876 ac_res=`eval echo '${'$as_ac_var'}'`
17877 { echo "$as_me:$LINENO: result: $ac_res" >&5
17878 echo "${ECHO_T}$ac_res" >&6; }
17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
17880 cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17892 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 cat >conftest.$ac_ext <<_ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17908 #define $ac_func innocuous_$ac_func
17910 /* System header to define __stub macros and hopefully few prototypes,
17911 which can conflict with char $ac_func (); below.
17912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913 <limits.h> exists even on freestanding compilers. */
17916 # include <limits.h>
17918 # include <assert.h>
17923 /* Override any GCC internal prototype to avoid an error.
17924 Use char because int might match the return type of a GCC
17925 builtin and then its argument prototype would still apply. */
17930 /* The GNU C library defines this for functions which it implements
17931 to always fail with ENOSYS. Some functions are actually named
17932 something starting with __ and the normal name is an alias. */
17933 #if defined __stub_$ac_func || defined __stub___$ac_func
17940 return $ac_func ();
17945 rm -f conftest.$ac_objext conftest$ac_exeext
17946 if { (ac_try="$ac_link"
17947 case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_link") 2>conftest.er1
17954 grep -v '^ *+' conftest.er1 >conftest.err
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } &&
17959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17960 { (case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_try") 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest$ac_exeext'
17970 { (case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_try") 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 eval "$as_ac_var=yes"
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 eval "$as_ac_var=no"
17987 rm -f core conftest.err conftest.$ac_objext \
17988 conftest$ac_exeext conftest.$ac_ext
17990 ac_res=`eval echo '${'$as_ac_var'}'`
17991 { echo "$as_me:$LINENO: result: $ac_res" >&5
17992 echo "${ECHO_T}$ac_res" >&6; }
17993 if test `eval echo '${'$as_ac_var'}'` = yes; then
17994 cat >>confdefs.h <<_ACEOF
17995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18004 for ac_func in isatty mkdtemp mkstemp
18006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 cat >conftest.$ac_ext <<_ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18020 #define $ac_func innocuous_$ac_func
18022 /* System header to define __stub macros and hopefully few prototypes,
18023 which can conflict with char $ac_func (); below.
18024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18025 <limits.h> exists even on freestanding compilers. */
18028 # include <limits.h>
18030 # include <assert.h>
18035 /* Override any GCC internal prototype to avoid an error.
18036 Use char because int might match the return type of a GCC
18037 builtin and then its argument prototype would still apply. */
18042 /* The GNU C library defines this for functions which it implements
18043 to always fail with ENOSYS. Some functions are actually named
18044 something starting with __ and the normal name is an alias. */
18045 #if defined __stub_$ac_func || defined __stub___$ac_func
18052 return $ac_func ();
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_link") 2>conftest.er1
18066 grep -v '^ *+' conftest.er1 >conftest.err
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18072 { (case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_try") 2>&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest$ac_exeext'
18082 { (case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_try") 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 eval "$as_ac_var=yes"
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 eval "$as_ac_var=no"
18099 rm -f core conftest.err conftest.$ac_objext \
18100 conftest$ac_exeext conftest.$ac_ext
18102 ac_res=`eval echo '${'$as_ac_var'}'`
18103 { echo "$as_me:$LINENO: result: $ac_res" >&5
18104 echo "${ECHO_T}$ac_res" >&6; }
18105 if test `eval echo '${'$as_ac_var'}'` = yes; then
18106 cat >>confdefs.h <<_ACEOF
18107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18119 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18135 #define $ac_func innocuous_$ac_func
18137 /* System header to define __stub macros and hopefully few prototypes,
18138 which can conflict with char $ac_func (); below.
18139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18140 <limits.h> exists even on freestanding compilers. */
18143 # include <limits.h>
18145 # include <assert.h>
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18157 /* The GNU C library defines this for functions which it implements
18158 to always fail with ENOSYS. Some functions are actually named
18159 something starting with __ and the normal name is an alias. */
18160 #if defined __stub_$ac_func || defined __stub___$ac_func
18167 return $ac_func ();
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest$ac_exeext'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 eval "$as_ac_var=yes"
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 eval "$as_ac_var=no"
18214 rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext conftest.$ac_ext
18217 ac_res=`eval echo '${'$as_ac_var'}'`
18218 { echo "$as_me:$LINENO: result: $ac_res" >&5
18219 echo "${ECHO_T}$ac_res" >&6; }
18220 if test `eval echo '${'$as_ac_var'}'` = yes; then
18221 cat >>confdefs.h <<_ACEOF
18222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18232 for ac_func in strerror strerror_r setenv arc4random
18234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 cat >conftest.$ac_ext <<_ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18248 #define $ac_func innocuous_$ac_func
18250 /* System header to define __stub macros and hopefully few prototypes,
18251 which can conflict with char $ac_func (); below.
18252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18253 <limits.h> exists even on freestanding compilers. */
18256 # include <limits.h>
18258 # include <assert.h>
18263 /* Override any GCC internal prototype to avoid an error.
18264 Use char because int might match the return type of a GCC
18265 builtin and then its argument prototype would still apply. */
18270 /* The GNU C library defines this for functions which it implements
18271 to always fail with ENOSYS. Some functions are actually named
18272 something starting with __ and the normal name is an alias. */
18273 #if defined __stub_$ac_func || defined __stub___$ac_func
18280 return $ac_func ();
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (ac_try="$ac_link"
18287 case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_link") 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest$ac_exeext'
18310 { (case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_try") 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 eval "$as_ac_var=yes"
18321 echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18324 eval "$as_ac_var=no"
18327 rm -f core conftest.err conftest.$ac_objext \
18328 conftest$ac_exeext conftest.$ac_ext
18330 ac_res=`eval echo '${'$as_ac_var'}'`
18331 { echo "$as_me:$LINENO: result: $ac_res" >&5
18332 echo "${ECHO_T}$ac_res" >&6; }
18333 if test `eval echo '${'$as_ac_var'}'` = yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18345 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 cat >conftest.$ac_ext <<_ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18361 #define $ac_func innocuous_$ac_func
18363 /* System header to define __stub macros and hopefully few prototypes,
18364 which can conflict with char $ac_func (); below.
18365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18366 <limits.h> exists even on freestanding compilers. */
18369 # include <limits.h>
18371 # include <assert.h>
18376 /* Override any GCC internal prototype to avoid an error.
18377 Use char because int might match the return type of a GCC
18378 builtin and then its argument prototype would still apply. */
18383 /* The GNU C library defines this for functions which it implements
18384 to always fail with ENOSYS. Some functions are actually named
18385 something starting with __ and the normal name is an alias. */
18386 #if defined __stub_$ac_func || defined __stub___$ac_func
18393 return $ac_func ();
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (ac_try="$ac_link"
18400 case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_link") 2>conftest.er1
18407 grep -v '^ *+' conftest.er1 >conftest.err
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
18412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18413 { (case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_try") 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; } &&
18422 { ac_try='test -s conftest$ac_exeext'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 eval "$as_ac_var=yes"
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18437 eval "$as_ac_var=no"
18440 rm -f core conftest.err conftest.$ac_objext \
18441 conftest$ac_exeext conftest.$ac_ext
18443 ac_res=`eval echo '${'$as_ac_var'}'`
18444 { echo "$as_me:$LINENO: result: $ac_res" >&5
18445 echo "${ECHO_T}$ac_res" >&6; }
18446 if test `eval echo '${'$as_ac_var'}'` = yes; then
18447 cat >>confdefs.h <<_ACEOF
18448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18459 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 cat >conftest.$ac_ext <<_ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18475 #define $ac_func innocuous_$ac_func
18477 /* System header to define __stub macros and hopefully few prototypes,
18478 which can conflict with char $ac_func (); below.
18479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18480 <limits.h> exists even on freestanding compilers. */
18483 # include <limits.h>
18485 # include <assert.h>
18490 /* Override any GCC internal prototype to avoid an error.
18491 Use char because int might match the return type of a GCC
18492 builtin and then its argument prototype would still apply. */
18497 /* The GNU C library defines this for functions which it implements
18498 to always fail with ENOSYS. Some functions are actually named
18499 something starting with __ and the normal name is an alias. */
18500 #if defined __stub_$ac_func || defined __stub___$ac_func
18507 return $ac_func ();
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_link") 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 eval "$as_ac_var=yes"
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 eval "$as_ac_var=no"
18554 rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18557 ac_res=`eval echo '${'$as_ac_var'}'`
18558 { echo "$as_me:$LINENO: result: $ac_res" >&5
18559 echo "${ECHO_T}$ac_res" >&6; }
18560 if test `eval echo '${'$as_ac_var'}'` = yes; then
18561 cat >>confdefs.h <<_ACEOF
18562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18570 for ac_func in futimes futimens
18572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 cat >conftest.$ac_ext <<_ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18586 #define $ac_func innocuous_$ac_func
18588 /* System header to define __stub macros and hopefully few prototypes,
18589 which can conflict with char $ac_func (); below.
18590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18591 <limits.h> exists even on freestanding compilers. */
18594 # include <limits.h>
18596 # include <assert.h>
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18608 /* The GNU C library defines this for functions which it implements
18609 to always fail with ENOSYS. Some functions are actually named
18610 something starting with __ and the normal name is an alias. */
18611 #if defined __stub_$ac_func || defined __stub___$ac_func
18618 return $ac_func ();
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; } &&
18647 { ac_try='test -s conftest$ac_exeext'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 eval "$as_ac_var=yes"
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18662 eval "$as_ac_var=no"
18665 rm -f core conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18668 ac_res=`eval echo '${'$as_ac_var'}'`
18669 { echo "$as_me:$LINENO: result: $ac_res" >&5
18670 echo "${ECHO_T}$ac_res" >&6; }
18671 if test `eval echo '${'$as_ac_var'}'` = yes; then
18672 cat >>confdefs.h <<_ACEOF
18673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18679 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18680 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18681 if test "${llvm_cv_c_printf_a+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 ac_cpp='$CPP $CPPFLAGS'
18686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18690 if test "$cross_compiling" = yes; then
18691 llvmac_cv_c_printf_a=no
18693 cat >conftest.$ac_ext <<_ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18702 #include <stdlib.h>
18708 volatile double A, B;
18712 sprintf(Buffer, "%a", A);
18716 if (A != 0x1.999999999999ap-4)
18723 rm -f conftest$ac_exeext
18724 if { (ac_try="$ac_link"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_link") 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18734 { (case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_try") 2>&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; }; then
18743 llvm_cv_c_printf_a=yes
18745 echo "$as_me: program exited with status $ac_status" >&5
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 ( exit $ac_status )
18750 llvmac_cv_c_printf_a=no
18752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18757 ac_cpp='$CPP $CPPFLAGS'
18758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18763 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18764 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18765 if test "$llvm_cv_c_printf_a" = "yes"; then
18767 cat >>confdefs.h <<\_ACEOF
18768 #define HAVE_PRINTF_A 1
18775 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18776 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18777 if test "${ac_cv_func_rand48+set}" = set; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 ac_cpp='$CXXCPP $CPPFLAGS'
18783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18787 cat >conftest.$ac_ext <<_ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 #include <stdlib.h>
18797 srand48(0);lrand48();drand48();
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } &&
18816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_try") 2>&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_func_rand48=yes
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18841 ac_cv_func_rand48=no
18844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846 ac_cpp='$CPP $CPPFLAGS'
18847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18853 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18854 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18856 if test "$ac_cv_func_rand48" = "yes" ; then
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_RAND48 1
18865 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18866 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18867 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 cat >conftest.$ac_ext <<_ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 $ac_includes_default
18881 char *p = (char *) strerror_s;
18889 rm -f conftest.$ac_objext
18890 if { (ac_try="$ac_compile"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_compile") 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_try") 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest.$ac_objext'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 ac_cv_have_decl_strerror_s=yes
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 ac_cv_have_decl_strerror_s=no
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18934 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18935 if test $ac_cv_have_decl_strerror_s = yes; then
18937 cat >>confdefs.h <<_ACEOF
18938 #define HAVE_DECL_STRERROR_S 1
18943 cat >>confdefs.h <<_ACEOF
18944 #define HAVE_DECL_STRERROR_S 0
18952 if test "$llvm_cv_os_type" = "MingW" ; then
18953 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18954 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18955 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 ac_check_lib_save_LIBS=$LIBS
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18967 /* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18982 rm -f conftest.$ac_objext conftest$ac_exeext
18983 if { (ac_try="$ac_link"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_link") 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18997 { (case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_try") 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; } &&
19006 { ac_try='test -s conftest$ac_exeext'
19007 { (case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_try") 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 ac_cv_lib_gcc__alloca=yes
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19021 ac_cv_lib_gcc__alloca=no
19024 rm -f core conftest.err conftest.$ac_objext \
19025 conftest$ac_exeext conftest.$ac_ext
19026 LIBS=$ac_check_lib_save_LIBS
19028 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19029 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19030 if test $ac_cv_lib_gcc__alloca = yes; then
19032 cat >>confdefs.h <<\_ACEOF
19033 #define HAVE__ALLOCA 1
19038 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19039 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19040 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 ac_check_lib_save_LIBS=$LIBS
19045 cat >conftest.$ac_ext <<_ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19052 /* Override any GCC internal prototype to avoid an error.
19053 Use char because int might match the return type of a GCC
19054 builtin and then its argument prototype would still apply. */
19062 return __alloca ();
19067 rm -f conftest.$ac_objext conftest$ac_exeext
19068 if { (ac_try="$ac_link"
19069 case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_link") 2>conftest.er1
19076 grep -v '^ *+' conftest.er1 >conftest.err
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
19081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19082 { (case "(($ac_try" in
19083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084 *) ac_try_echo=$ac_try;;
19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087 (eval "$ac_try") 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest$ac_exeext'
19092 { (case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_try") 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_lib_gcc___alloca=yes
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 ac_cv_lib_gcc___alloca=no
19109 rm -f core conftest.err conftest.$ac_objext \
19110 conftest$ac_exeext conftest.$ac_ext
19111 LIBS=$ac_check_lib_save_LIBS
19113 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19114 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19115 if test $ac_cv_lib_gcc___alloca = yes; then
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE___ALLOCA 1
19123 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19124 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19125 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 ac_check_lib_save_LIBS=$LIBS
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19137 /* Override any GCC internal prototype to avoid an error.
19138 Use char because int might match the return type of a GCC
19139 builtin and then its argument prototype would still apply. */
19147 return __chkstk ();
19152 rm -f conftest.$ac_objext conftest$ac_exeext
19153 if { (ac_try="$ac_link"
19154 case "(($ac_try" in
19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_link") 2>conftest.er1
19161 grep -v '^ *+' conftest.er1 >conftest.err
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19167 { (case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_try") 2>&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest$ac_exeext'
19177 { (case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_try") 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 ac_cv_lib_gcc___chkstk=yes
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_cv_lib_gcc___chkstk=no
19194 rm -f core conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19196 LIBS=$ac_check_lib_save_LIBS
19198 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19199 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19200 if test $ac_cv_lib_gcc___chkstk = yes; then
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE___CHKSTK 1
19208 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19209 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19210 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 ac_check_lib_save_LIBS=$LIBS
19215 cat >conftest.$ac_ext <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19222 /* Override any GCC internal prototype to avoid an error.
19223 Use char because int might match the return type of a GCC
19224 builtin and then its argument prototype would still apply. */
19232 return ___chkstk ();
19237 rm -f conftest.$ac_objext conftest$ac_exeext
19238 if { (ac_try="$ac_link"
19239 case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_link") 2>conftest.er1
19246 grep -v '^ *+' conftest.er1 >conftest.err
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest$ac_exeext'
19262 { (case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_try") 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271 ac_cv_lib_gcc____chkstk=yes
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_lib_gcc____chkstk=no
19279 rm -f core conftest.err conftest.$ac_objext \
19280 conftest$ac_exeext conftest.$ac_ext
19281 LIBS=$ac_check_lib_save_LIBS
19283 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19284 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19285 if test $ac_cv_lib_gcc____chkstk = yes; then
19287 cat >>confdefs.h <<\_ACEOF
19288 #define HAVE____CHKSTK 1
19294 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19295 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19296 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 ac_check_lib_save_LIBS=$LIBS
19301 cat >conftest.$ac_ext <<_ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19308 /* Override any GCC internal prototype to avoid an error.
19309 Use char because int might match the return type of a GCC
19310 builtin and then its argument prototype would still apply. */
19318 return __ashldi3 ();
19323 rm -f conftest.$ac_objext conftest$ac_exeext
19324 if { (ac_try="$ac_link"
19325 case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_link") 2>conftest.er1
19332 grep -v '^ *+' conftest.er1 >conftest.err
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } &&
19337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19338 { (case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_try") 2>&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; } &&
19347 { ac_try='test -s conftest$ac_exeext'
19348 { (case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_try") 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; }; then
19357 ac_cv_lib_gcc___ashldi3=yes
19359 echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19362 ac_cv_lib_gcc___ashldi3=no
19365 rm -f core conftest.err conftest.$ac_objext \
19366 conftest$ac_exeext conftest.$ac_ext
19367 LIBS=$ac_check_lib_save_LIBS
19369 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19370 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19371 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19373 cat >>confdefs.h <<\_ACEOF
19374 #define HAVE___ASHLDI3 1
19379 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19380 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19381 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 ac_check_lib_save_LIBS=$LIBS
19386 cat >conftest.$ac_ext <<_ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19393 /* Override any GCC internal prototype to avoid an error.
19394 Use char because int might match the return type of a GCC
19395 builtin and then its argument prototype would still apply. */
19403 return __ashrdi3 ();
19408 rm -f conftest.$ac_objext conftest$ac_exeext
19409 if { (ac_try="$ac_link"
19410 case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_link") 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_try") 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_try") 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 ac_cv_lib_gcc___ashrdi3=yes
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 ac_cv_lib_gcc___ashrdi3=no
19450 rm -f core conftest.err conftest.$ac_objext \
19451 conftest$ac_exeext conftest.$ac_ext
19452 LIBS=$ac_check_lib_save_LIBS
19454 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19455 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19456 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19458 cat >>confdefs.h <<\_ACEOF
19459 #define HAVE___ASHRDI3 1
19464 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19465 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19466 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 ac_check_lib_save_LIBS=$LIBS
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 /* Override any GCC internal prototype to avoid an error.
19479 Use char because int might match the return type of a GCC
19480 builtin and then its argument prototype would still apply. */
19488 return __divdi3 ();
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_link") 2>conftest.er1
19502 grep -v '^ *+' conftest.er1 >conftest.err
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } &&
19507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19508 { (case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_try") 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try='test -s conftest$ac_exeext'
19518 { (case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523 (eval "$ac_try") 2>&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); }; }; then
19527 ac_cv_lib_gcc___divdi3=yes
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 ac_cv_lib_gcc___divdi3=no
19535 rm -f core conftest.err conftest.$ac_objext \
19536 conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19539 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19540 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19541 if test $ac_cv_lib_gcc___divdi3 = yes; then
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE___DIVDI3 1
19549 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19550 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19551 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 ac_check_lib_save_LIBS=$LIBS
19556 cat >conftest.$ac_ext <<_ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19563 /* Override any GCC internal prototype to avoid an error.
19564 Use char because int might match the return type of a GCC
19565 builtin and then its argument prototype would still apply. */
19573 return __fixdfdi ();
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_link") 2>conftest.er1
19587 grep -v '^ *+' conftest.er1 >conftest.err
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593 { (case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_try") 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest$ac_exeext'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 ac_cv_lib_gcc___fixdfdi=yes
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ac_cv_lib_gcc___fixdfdi=no
19620 rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
19622 LIBS=$ac_check_lib_save_LIBS
19624 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19625 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19626 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE___FIXDFDI 1
19634 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19635 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19636 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 ac_check_lib_save_LIBS=$LIBS
19641 cat >conftest.$ac_ext <<_ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19648 /* Override any GCC internal prototype to avoid an error.
19649 Use char because int might match the return type of a GCC
19650 builtin and then its argument prototype would still apply. */
19658 return __fixsfdi ();
19663 rm -f conftest.$ac_objext conftest$ac_exeext
19664 if { (ac_try="$ac_link"
19665 case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_link") 2>conftest.er1
19672 grep -v '^ *+' conftest.er1 >conftest.err
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
19677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19678 { (case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_try") 2>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest$ac_exeext'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697 ac_cv_lib_gcc___fixsfdi=yes
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19702 ac_cv_lib_gcc___fixsfdi=no
19705 rm -f core conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19707 LIBS=$ac_check_lib_save_LIBS
19709 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19710 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19711 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE___FIXSFDI 1
19719 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19720 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19721 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 ac_check_lib_save_LIBS=$LIBS
19726 cat >conftest.$ac_ext <<_ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19733 /* Override any GCC internal prototype to avoid an error.
19734 Use char because int might match the return type of a GCC
19735 builtin and then its argument prototype would still apply. */
19739 char __floatdidf ();
19743 return __floatdidf ();
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19763 { (case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_try") 2>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; } &&
19772 { ac_try='test -s conftest$ac_exeext'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 ac_cv_lib_gcc___floatdidf=yes
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_lib_gcc___floatdidf=no
19790 rm -f core conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19792 LIBS=$ac_check_lib_save_LIBS
19794 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19795 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19796 if test $ac_cv_lib_gcc___floatdidf = yes; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE___FLOATDIDF 1
19804 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19805 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19806 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 ac_check_lib_save_LIBS=$LIBS
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19828 return __lshrdi3 ();
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_link") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19848 { (case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_try") 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest$ac_exeext'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_lib_gcc___lshrdi3=yes
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_cv_lib_gcc___lshrdi3=no
19875 rm -f core conftest.err conftest.$ac_objext \
19876 conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19879 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19880 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19881 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19883 cat >>confdefs.h <<\_ACEOF
19884 #define HAVE___LSHRDI3 1
19889 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19890 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19891 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 ac_check_lib_save_LIBS=$LIBS
19896 cat >conftest.$ac_ext <<_ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19903 /* Override any GCC internal prototype to avoid an error.
19904 Use char because int might match the return type of a GCC
19905 builtin and then its argument prototype would still apply. */
19913 return __moddi3 ();
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_link") 2>conftest.er1
19927 grep -v '^ *+' conftest.er1 >conftest.err
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
19932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19933 { (case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_try") 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest$ac_exeext'
19943 { (case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_try") 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 ac_cv_lib_gcc___moddi3=yes
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ac_cv_lib_gcc___moddi3=no
19960 rm -f core conftest.err conftest.$ac_objext \
19961 conftest$ac_exeext conftest.$ac_ext
19962 LIBS=$ac_check_lib_save_LIBS
19964 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19965 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19966 if test $ac_cv_lib_gcc___moddi3 = yes; then
19968 cat >>confdefs.h <<\_ACEOF
19969 #define HAVE___MODDI3 1
19974 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19975 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19976 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 ac_check_lib_save_LIBS=$LIBS
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19998 return __udivdi3 ();
20003 rm -f conftest.$ac_objext conftest$ac_exeext
20004 if { (ac_try="$ac_link"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_link") 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20018 { (case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_try") 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest$ac_exeext'
20028 { (case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_try") 2>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_cv_lib_gcc___udivdi3=yes
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20042 ac_cv_lib_gcc___udivdi3=no
20045 rm -f core conftest.err conftest.$ac_objext \
20046 conftest$ac_exeext conftest.$ac_ext
20047 LIBS=$ac_check_lib_save_LIBS
20049 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20050 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20051 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20053 cat >>confdefs.h <<\_ACEOF
20054 #define HAVE___UDIVDI3 1
20059 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20060 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20061 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 ac_check_lib_save_LIBS=$LIBS
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20073 /* Override any GCC internal prototype to avoid an error.
20074 Use char because int might match the return type of a GCC
20075 builtin and then its argument prototype would still apply. */
20083 return __umoddi3 ();
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_link") 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20103 { (case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_try") 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try='test -s conftest$ac_exeext'
20113 { (case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_try") 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20122 ac_cv_lib_gcc___umoddi3=yes
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ac_cv_lib_gcc___umoddi3=no
20130 rm -f core conftest.err conftest.$ac_objext \
20131 conftest$ac_exeext conftest.$ac_ext
20132 LIBS=$ac_check_lib_save_LIBS
20134 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20135 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20136 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE___UMODDI3 1
20145 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20146 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20147 if test "${ac_cv_lib_gcc___main+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 ac_check_lib_save_LIBS=$LIBS
20152 cat >conftest.$ac_ext <<_ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20159 /* Override any GCC internal prototype to avoid an error.
20160 Use char because int might match the return type of a GCC
20161 builtin and then its argument prototype would still apply. */
20174 rm -f conftest.$ac_objext conftest$ac_exeext
20175 if { (ac_try="$ac_link"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_link") 2>conftest.er1
20183 grep -v '^ *+' conftest.er1 >conftest.err
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
20188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20189 { (case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_try") 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; } &&
20198 { ac_try='test -s conftest$ac_exeext'
20199 { (case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_try") 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 ac_cv_lib_gcc___main=yes
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 ac_cv_lib_gcc___main=no
20216 rm -f core conftest.err conftest.$ac_objext \
20217 conftest$ac_exeext conftest.$ac_ext
20218 LIBS=$ac_check_lib_save_LIBS
20220 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20221 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20222 if test $ac_cv_lib_gcc___main = yes; then
20224 cat >>confdefs.h <<\_ACEOF
20225 #define HAVE___MAIN 1
20230 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20231 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20232 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 ac_check_lib_save_LIBS=$LIBS
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20254 return __cmpdi2 ();
20259 rm -f conftest.$ac_objext conftest$ac_exeext
20260 if { (ac_try="$ac_link"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_link") 2>conftest.er1
20268 grep -v '^ *+' conftest.er1 >conftest.err
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20274 { (case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_try") 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; } &&
20283 { ac_try='test -s conftest$ac_exeext'
20284 { (case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_try") 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_cv_lib_gcc___cmpdi2=yes
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_cv_lib_gcc___cmpdi2=no
20301 rm -f core conftest.err conftest.$ac_objext \
20302 conftest$ac_exeext conftest.$ac_ext
20303 LIBS=$ac_check_lib_save_LIBS
20305 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20306 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20307 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20309 cat >>confdefs.h <<\_ACEOF
20310 #define HAVE___CMPDI2 1
20317 if test "$llvm_cv_os_type" = "MingW" ; then
20318 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20319 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20320 cat >conftest.$ac_ext <<_ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20328 #include <windows.h>
20329 #include <imagehlp.h>
20330 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20331 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20335 rm -f conftest.$ac_objext
20336 if { (ac_try="$ac_compile"
20337 case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_compile") 2>conftest.er1
20344 grep -v '^ *+' conftest.er1 >conftest.err
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } &&
20349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20350 { (case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_try") 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; } &&
20359 { ac_try='test -s conftest.$ac_objext'
20360 { (case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_try") 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20370 { echo "$as_me:$LINENO: result: yes" >&5
20371 echo "${ECHO_T}yes" >&6; }
20372 llvm_cv_win32_elmcb_pcstr="PCSTR"
20375 echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20379 { echo "$as_me:$LINENO: result: no" >&5
20380 echo "${ECHO_T}no" >&6; }
20381 llvm_cv_win32_elmcb_pcstr="PSTR"
20385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20387 cat >>confdefs.h <<_ACEOF
20388 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20395 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20396 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20397 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 ac_cpp='$CXXCPP $CPPFLAGS'
20403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20422 rm -f conftest.$ac_objext
20423 if { (ac_try="$ac_compile"
20424 case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_compile") 2>conftest.er1
20431 grep -v '^ *+' conftest.er1 >conftest.err
20433 cat conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
20436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20437 { (case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_try") 2>&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; } &&
20446 { ac_try='test -s conftest.$ac_objext'
20447 { (case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_try") 2>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_func_isnan_in_math_h=yes
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 ac_cv_func_isnan_in_math_h=no
20464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20466 ac_cpp='$CPP $CPPFLAGS'
20467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20473 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20474 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20477 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20479 cat >>confdefs.h <<\_ACEOF
20480 #define HAVE_ISNAN_IN_MATH_H 1
20486 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20487 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20488 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20493 ac_cpp='$CXXCPP $CPPFLAGS'
20494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20498 cat >conftest.$ac_ext <<_ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20513 rm -f conftest.$ac_objext
20514 if { (ac_try="$ac_compile"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_compile") 2>conftest.er1
20522 grep -v '^ *+' conftest.er1 >conftest.err
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } &&
20527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20528 { (case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_try") 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest.$ac_objext'
20538 { (case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_try") 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20547 ac_cv_func_isnan_in_cmath=yes
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_func_isnan_in_cmath=no
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20557 ac_cpp='$CPP $CPPFLAGS'
20558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20564 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20565 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20567 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20569 cat >>confdefs.h <<\_ACEOF
20570 #define HAVE_ISNAN_IN_CMATH 1
20576 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20577 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20578 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 ac_cpp='$CXXCPP $CPPFLAGS'
20584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20588 cat >conftest.$ac_ext <<_ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20598 float f; std::isnan(f);
20603 rm -f conftest.$ac_objext
20604 if { (ac_try="$ac_compile"
20605 case "(($ac_try" in
20606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607 *) ac_try_echo=$ac_try;;
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_compile") 2>conftest.er1
20612 grep -v '^ *+' conftest.er1 >conftest.err
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } &&
20617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20618 { (case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_try") 2>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; } &&
20627 { ac_try='test -s conftest.$ac_objext'
20628 { (case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_try") 2>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 ac_cv_func_std_isnan_in_cmath=yes
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 ac_cv_func_std_isnan_in_cmath=no
20645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 ac_cpp='$CPP $CPPFLAGS'
20648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20654 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20655 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20657 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20659 cat >>confdefs.h <<\_ACEOF
20660 #define HAVE_STD_ISNAN_IN_CMATH 1
20668 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20669 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20670 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 ac_cpp='$CXXCPP $CPPFLAGS'
20676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20680 cat >conftest.$ac_ext <<_ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_compile") 2>conftest.er1
20704 grep -v '^ *+' conftest.er1 >conftest.err
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
20709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20710 { (case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_try") 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try='test -s conftest.$ac_objext'
20720 { (case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_try") 2>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20729 ac_cv_func_isinf_in_math_h=yes
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 ac_cv_func_isinf_in_math_h=no
20737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20739 ac_cpp='$CPP $CPPFLAGS'
20740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20746 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20747 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20749 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20751 cat >>confdefs.h <<\_ACEOF
20752 #define HAVE_ISINF_IN_MATH_H 1
20758 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20759 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20760 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 ac_cpp='$CXXCPP $CPPFLAGS'
20766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20770 cat >conftest.$ac_ext <<_ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20785 rm -f conftest.$ac_objext
20786 if { (ac_try="$ac_compile"
20787 case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_compile") 2>conftest.er1
20794 grep -v '^ *+' conftest.er1 >conftest.err
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } &&
20799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_try") 2>&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; } &&
20809 { ac_try='test -s conftest.$ac_objext'
20810 { (case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_try") 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
20819 ac_cv_func_isinf_in_cmath=yes
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20824 ac_cv_func_isinf_in_cmath=no
20827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20829 ac_cpp='$CPP $CPPFLAGS'
20830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20836 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20837 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20839 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20841 cat >>confdefs.h <<\_ACEOF
20842 #define HAVE_ISINF_IN_CMATH 1
20848 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20849 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20850 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20855 ac_cpp='$CXXCPP $CPPFLAGS'
20856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20860 cat >conftest.$ac_ext <<_ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20870 float f; std::isinf(f);
20875 rm -f conftest.$ac_objext
20876 if { (ac_try="$ac_compile"
20877 case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_compile") 2>conftest.er1
20884 grep -v '^ *+' conftest.er1 >conftest.err
20886 cat conftest.err >&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } &&
20889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20890 { (case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_try") 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; } &&
20899 { ac_try='test -s conftest.$ac_objext'
20900 { (case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_try") 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 ac_cv_func_std_isinf_in_cmath=yes
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_cv_func_std_isinf_in_cmath=no
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 ac_cpp='$CPP $CPPFLAGS'
20920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20926 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20927 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20929 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20931 cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_STD_ISINF_IN_CMATH 1
20938 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20939 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20940 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20945 ac_cpp='$CXXCPP $CPPFLAGS'
20946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 #include <ieeefp.h>
20960 float f; finite(f);
20965 rm -f conftest.$ac_objext
20966 if { (ac_try="$ac_compile"
20967 case "(($ac_try" in
20968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969 *) ac_try_echo=$ac_try;;
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972 (eval "$ac_compile") 2>conftest.er1
20974 grep -v '^ *+' conftest.er1 >conftest.err
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
20979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20980 { (case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_try") 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 ac_cv_func_finite_in_ieeefp_h=yes
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 ac_cv_func_finite_in_ieeefp_h=no
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 ac_cpp='$CPP $CPPFLAGS'
21010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21016 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21017 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21019 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21021 cat >>confdefs.h <<\_ACEOF
21022 #define HAVE_FINITE_IN_IEEEFP_H 1
21029 if test "$llvm_cv_platform_type" = "Unix" ; then
21032 for ac_header in stdlib.h unistd.h
21034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 ac_res=`eval echo '${'$as_ac_Header'}'`
21042 { echo "$as_me:$LINENO: result: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21045 # Is the header compilable?
21046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21048 cat >conftest.$ac_ext <<_ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 $ac_includes_default
21055 #include <$ac_header>
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_compile") 2>conftest.er1
21066 grep -v '^ *+' conftest.er1 >conftest.err
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest.$ac_objext'
21082 { (case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_try") 2>&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 ac_header_compiler=yes
21093 echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21096 ac_header_compiler=no
21099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21101 echo "${ECHO_T}$ac_header_compiler" >&6; }
21103 # Is the header present?
21104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21106 cat >conftest.$ac_ext <<_ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21112 #include <$ac_header>
21114 if { (ac_try="$ac_cpp conftest.$ac_ext"
21115 case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21122 grep -v '^ *+' conftest.er1 >conftest.err
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } >/dev/null; then
21127 if test -s conftest.err; then
21128 ac_cpp_err=$ac_c_preproc_warn_flag
21129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21136 if test -z "$ac_cpp_err"; then
21137 ac_header_preproc=yes
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_header_preproc=no
21145 rm -f conftest.err conftest.$ac_ext
21146 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21147 echo "${ECHO_T}$ac_header_preproc" >&6; }
21149 # So? What about this header?
21150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21156 ac_header_preproc=yes
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21172 ## ------------------------------------ ##
21173 ## Report this to http://llvm.org/bugs/ ##
21174 ## ------------------------------------ ##
21176 ) | sed "s/^/$as_me: WARNING: /" >&2
21179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21184 eval "$as_ac_Header=\$ac_header_preproc"
21186 ac_res=`eval echo '${'$as_ac_Header'}'`
21187 { echo "$as_me:$LINENO: result: $ac_res" >&5
21188 echo "${ECHO_T}$ac_res" >&6; }
21191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21192 cat >>confdefs.h <<_ACEOF
21193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21201 for ac_func in getpagesize
21203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21209 cat >conftest.$ac_ext <<_ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21217 #define $ac_func innocuous_$ac_func
21219 /* System header to define __stub macros and hopefully few prototypes,
21220 which can conflict with char $ac_func (); below.
21221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21222 <limits.h> exists even on freestanding compilers. */
21225 # include <limits.h>
21227 # include <assert.h>
21232 /* Override any GCC internal prototype to avoid an error.
21233 Use char because int might match the return type of a GCC
21234 builtin and then its argument prototype would still apply. */
21239 /* The GNU C library defines this for functions which it implements
21240 to always fail with ENOSYS. Some functions are actually named
21241 something starting with __ and the normal name is an alias. */
21242 #if defined __stub_$ac_func || defined __stub___$ac_func
21249 return $ac_func ();
21254 rm -f conftest.$ac_objext conftest$ac_exeext
21255 if { (ac_try="$ac_link"
21256 case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_link") 2>conftest.er1
21263 grep -v '^ *+' conftest.er1 >conftest.err
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
21268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21269 { (case "(($ac_try" in
21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271 *) ac_try_echo=$ac_try;;
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274 (eval "$ac_try") 2>&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; } &&
21278 { ac_try='test -s conftest$ac_exeext'
21279 { (case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_try") 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; }; then
21288 eval "$as_ac_var=yes"
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 eval "$as_ac_var=no"
21296 rm -f core conftest.err conftest.$ac_objext \
21297 conftest$ac_exeext conftest.$ac_ext
21299 ac_res=`eval echo '${'$as_ac_var'}'`
21300 { echo "$as_me:$LINENO: result: $ac_res" >&5
21301 echo "${ECHO_T}$ac_res" >&6; }
21302 if test `eval echo '${'$as_ac_var'}'` = yes; then
21303 cat >>confdefs.h <<_ACEOF
21304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21310 { echo "$as_me:$LINENO: checking for working mmap" >&5
21311 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21312 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21315 if test "$cross_compiling" = yes; then
21316 ac_cv_func_mmap_fixed_mapped=no
21318 cat >conftest.$ac_ext <<_ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 $ac_includes_default
21325 /* malloc might have been renamed as rpl_malloc. */
21328 /* Thanks to Mike Haertel and Jim Avera for this test.
21329 Here is a matrix of mmap possibilities:
21330 mmap private not fixed
21331 mmap private fixed at somewhere currently unmapped
21332 mmap private fixed at somewhere already mapped
21333 mmap shared not fixed
21334 mmap shared fixed at somewhere currently unmapped
21335 mmap shared fixed at somewhere already mapped
21336 For private mappings, we should verify that changes cannot be read()
21337 back from the file, nor mmap's back from the file at a different
21338 address. (There have been systems where private was not correctly
21339 implemented like the infamous i386 svr4.0, and systems where the
21340 VM page cache was not coherent with the file system buffer cache
21341 like early versions of FreeBSD and possibly contemporary NetBSD.)
21342 For shared mappings, we should conversely verify that changes get
21343 propagated back to all the places they're supposed to be.
21345 Grep wants private fixed already mapped.
21346 The main things grep needs to know about mmap are:
21347 * does it exist and is it safe to write into the mmap'd area
21348 * how to use it (BSD variants) */
21351 #include <sys/mman.h>
21353 #if !STDC_HEADERS && !HAVE_STDLIB_H
21357 /* This mess was copied from the GNU getpagesize.h. */
21358 #if !HAVE_GETPAGESIZE
21359 /* Assume that all systems that can run configure have sys/param.h. */
21360 # if !HAVE_SYS_PARAM_H
21361 # define HAVE_SYS_PARAM_H 1
21364 # ifdef _SC_PAGESIZE
21365 # define getpagesize() sysconf(_SC_PAGESIZE)
21366 # else /* no _SC_PAGESIZE */
21367 # if HAVE_SYS_PARAM_H
21368 # include <sys/param.h>
21369 # ifdef EXEC_PAGESIZE
21370 # define getpagesize() EXEC_PAGESIZE
21371 # else /* no EXEC_PAGESIZE */
21373 # define getpagesize() NBPG * CLSIZE
21376 # endif /* no CLSIZE */
21377 # else /* no NBPG */
21379 # define getpagesize() NBPC
21380 # else /* no NBPC */
21382 # define getpagesize() PAGESIZE
21383 # endif /* PAGESIZE */
21384 # endif /* no NBPC */
21385 # endif /* no NBPG */
21386 # endif /* no EXEC_PAGESIZE */
21387 # else /* no HAVE_SYS_PARAM_H */
21388 # define getpagesize() 8192 /* punt totally */
21389 # endif /* no HAVE_SYS_PARAM_H */
21390 # endif /* no _SC_PAGESIZE */
21392 #endif /* no HAVE_GETPAGESIZE */
21397 char *data, *data2, *data3;
21401 pagesize = getpagesize ();
21403 /* First, make a file with some known garbage in it. */
21404 data = (char *) malloc (pagesize);
21407 for (i = 0; i < pagesize; ++i)
21408 *(data + i) = rand ();
21410 fd = creat ("conftest.mmap", 0600);
21413 if (write (fd, data, pagesize) != pagesize)
21417 /* Next, try to mmap the file at a fixed address which already has
21418 something else allocated at it. If we can, also make sure that
21419 we see the same garbage. */
21420 fd = open ("conftest.mmap", O_RDWR);
21423 data2 = (char *) malloc (2 * pagesize);
21426 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21427 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21428 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21430 for (i = 0; i < pagesize; ++i)
21431 if (*(data + i) != *(data2 + i))
21434 /* Finally, make sure that changes to the mapped area do not
21435 percolate back to the file as seen by read(). (This is a bug on
21436 some variants of i386 svr4.0.) */
21437 for (i = 0; i < pagesize; ++i)
21438 *(data2 + i) = *(data2 + i) + 1;
21439 data3 = (char *) malloc (pagesize);
21442 if (read (fd, data3, pagesize) != pagesize)
21444 for (i = 0; i < pagesize; ++i)
21445 if (*(data + i) != *(data3 + i))
21451 rm -f conftest$ac_exeext
21452 if { (ac_try="$ac_link"
21453 case "(($ac_try" in
21454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455 *) ac_try_echo=$ac_try;;
21457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458 (eval "$ac_link") 2>&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21462 { (case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_try") 2>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; }; then
21471 ac_cv_func_mmap_fixed_mapped=yes
21473 echo "$as_me: program exited with status $ac_status" >&5
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 ( exit $ac_status )
21478 ac_cv_func_mmap_fixed_mapped=no
21480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21485 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21486 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21487 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_MMAP 1
21494 rm -f conftest.mmap
21496 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21497 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21498 if test "${ac_cv_func_mmap_file+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21502 ac_cpp='$CPP $CPPFLAGS'
21503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21507 if test "$cross_compiling" = yes; then
21508 ac_cv_func_mmap_file=no
21510 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21518 #include <sys/types.h>
21519 #include <sys/mman.h>
21527 fd = creat ("foo",0777);
21528 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21530 return (fd != (int) MAP_FAILED);
21535 rm -f conftest$ac_exeext
21536 if { (ac_try="$ac_link"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_link") 2>&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21546 { (case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_try") 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_cv_func_mmap_file=yes
21557 echo "$as_me: program exited with status $ac_status" >&5
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ( exit $ac_status )
21562 ac_cv_func_mmap_file=no
21564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21569 ac_cpp='$CPP $CPPFLAGS'
21570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21576 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21577 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21578 if test "$ac_cv_func_mmap_file" = yes; then
21580 cat >>confdefs.h <<\_ACEOF
21581 #define HAVE_MMAP_FILE
21588 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21589 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21590 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 if test "$llvm_cv_os_type" = "Interix" ; then
21594 ac_cv_need_dev_zero_for_mmap=yes
21596 ac_cv_need_dev_zero_for_mmap=no
21600 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21601 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21602 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21604 cat >>confdefs.h <<\_ACEOF
21605 #define NEED_DEV_ZERO_FOR_MMAP 1
21610 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21612 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21613 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21615 if test "$ac_cv_func_mmap_file" = "no"
21617 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21618 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21622 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21623 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21625 ac_cpp='$CXXCPP $CPPFLAGS'
21626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21630 cat >conftest.$ac_ext <<_ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21639 volatile unsigned long val = 1;
21640 __sync_synchronize();
21641 __sync_val_compare_and_swap(&val, 1, 0);
21642 __sync_add_and_fetch(&val, 1);
21643 __sync_sub_and_fetch(&val, 1);
21649 rm -f conftest.$ac_objext conftest$ac_exeext
21650 if { (ac_try="$ac_link"
21651 case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_link") 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } &&
21663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21664 { (case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_try") 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; } &&
21673 { ac_try='test -s conftest$ac_exeext'
21674 { (case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_try") 2>&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; }; then
21684 { echo "$as_me:$LINENO: result: yes" >&5
21685 echo "${ECHO_T}yes" >&6; }
21687 cat >>confdefs.h <<\_ACEOF
21688 #define LLVM_HAS_ATOMICS 1
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21697 { echo "$as_me:$LINENO: result: no" >&5
21698 echo "${ECHO_T}no" >&6; }
21700 cat >>confdefs.h <<\_ACEOF
21701 #define LLVM_HAS_ATOMICS 0
21704 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21705 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21709 rm -f core conftest.err conftest.$ac_objext \
21710 conftest$ac_exeext conftest.$ac_ext
21712 ac_cpp='$CPP $CPPFLAGS'
21713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21719 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21720 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21721 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21722 if test "${llvm_cv_linux_mixed+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21726 ac_cpp='$CPP $CPPFLAGS'
21727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21731 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21738 error: Not x86-64 even if uname says so!
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_compile") 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } &&
21763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21764 { (case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_try") 2>&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; } &&
21773 { ac_try='test -s conftest.$ac_objext'
21774 { (case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_try") 2>&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 llvm_cv_linux_mixed=no
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21788 llvm_cv_linux_mixed=yes
21791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21793 ac_cpp='$CPP $CPPFLAGS'
21794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21800 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21801 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21803 if test "$llvm_cv_linux_mixed" = "yes"; then
21804 llvm_cv_target_arch="x86"
21810 for ac_func in __dso_handle
21812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21826 #define $ac_func innocuous_$ac_func
21828 /* System header to define __stub macros and hopefully few prototypes,
21829 which can conflict with char $ac_func (); below.
21830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21831 <limits.h> exists even on freestanding compilers. */
21834 # include <limits.h>
21836 # include <assert.h>
21841 /* Override any GCC internal prototype to avoid an error.
21842 Use char because int might match the return type of a GCC
21843 builtin and then its argument prototype would still apply. */
21848 /* The GNU C library defines this for functions which it implements
21849 to always fail with ENOSYS. Some functions are actually named
21850 something starting with __ and the normal name is an alias. */
21851 #if defined __stub_$ac_func || defined __stub___$ac_func
21858 return $ac_func ();
21863 rm -f conftest.$ac_objext conftest$ac_exeext
21864 if { (ac_try="$ac_link"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_link") 2>conftest.er1
21872 grep -v '^ *+' conftest.er1 >conftest.err
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
21877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21878 { (case "(($ac_try" in
21879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880 *) ac_try_echo=$ac_try;;
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_try") 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest$ac_exeext'
21888 { (case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_try") 2>&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; }; then
21897 eval "$as_ac_var=yes"
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21902 eval "$as_ac_var=no"
21905 rm -f core conftest.err conftest.$ac_objext \
21906 conftest$ac_exeext conftest.$ac_ext
21908 ac_res=`eval echo '${'$as_ac_var'}'`
21909 { echo "$as_me:$LINENO: result: $ac_res" >&5
21910 echo "${ECHO_T}$ac_res" >&6; }
21911 if test `eval echo '${'$as_ac_var'}'` = yes; then
21912 cat >>confdefs.h <<_ACEOF
21913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21920 SHLIBEXT=$libltdl_cv_shlibext
21923 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21926 if test "${prefix}" = "NONE" ; then
21927 prefix="/usr/local"
21929 eval LLVM_PREFIX="${prefix}";
21930 eval LLVM_BINDIR="${prefix}/bin";
21931 eval LLVM_DATADIR="${prefix}/share/llvm";
21932 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21933 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21934 eval LLVM_INCLUDEDIR="${prefix}/include";
21935 eval LLVM_INFODIR="${prefix}/info";
21936 eval LLVM_MANDIR="${prefix}/man";
21937 LLVM_CONFIGTIME=`date`
21948 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21949 LLVM_CONFIGTIME="(timestamp not enabled)"
21953 cat >>confdefs.h <<_ACEOF
21954 #define LLVM_PREFIX "$LLVM_PREFIX"
21958 cat >>confdefs.h <<_ACEOF
21959 #define LLVM_BINDIR "$LLVM_BINDIR"
21963 cat >>confdefs.h <<_ACEOF
21964 #define LLVM_DATADIR "$LLVM_DATADIR"
21968 cat >>confdefs.h <<_ACEOF
21969 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21973 cat >>confdefs.h <<_ACEOF
21974 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21978 cat >>confdefs.h <<_ACEOF
21979 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21983 cat >>confdefs.h <<_ACEOF
21984 #define LLVM_INFODIR "$LLVM_INFODIR"
21988 cat >>confdefs.h <<_ACEOF
21989 #define LLVM_MANDIR "$LLVM_MANDIR"
21993 cat >>confdefs.h <<_ACEOF
21994 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21998 cat >>confdefs.h <<_ACEOF
21999 #define LLVM_HOST_TRIPLE "$host"
22003 cat >>confdefs.h <<_ACEOF
22004 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22008 if test "$BINDINGS_TO_BUILD" = auto ; then
22009 BINDINGS_TO_BUILD=""
22010 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22011 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22014 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22020 binding_prereqs_failed=0
22021 for a_binding in $BINDINGS_TO_BUILD ; do
22022 case "$a_binding" in
22024 if test "x$OCAMLC" = x ; then
22025 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22026 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22027 binding_prereqs_failed=1
22029 if test "x$OCAMLDEP" = x ; then
22030 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22031 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22032 binding_prereqs_failed=1
22034 if test "x$OCAMLOPT" = x ; then
22035 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22036 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22038 if test "x$with_ocaml_libdir" != xauto ; then
22039 OCAML_LIBDIR=$with_ocaml_libdir
22042 ocaml_stdlib="`"$OCAMLC" -where`"
22043 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22045 # ocaml stdlib is beneath our prefix; use stdlib
22046 OCAML_LIBDIR=$ocaml_stdlib
22049 # ocaml stdlib is outside our prefix; use libdir/ocaml
22050 OCAML_LIBDIR=${prefix}/lib/ocaml
22057 if test "$binding_prereqs_failed" = 1 ; then
22058 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22059 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22060 { (exit 1); exit 1; }; }
22063 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22064 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22065 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 ac_cpp='$CXXCPP $CPPFLAGS'
22070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22074 oldcxxflags="$CXXFLAGS"
22075 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22076 cat >conftest.$ac_ext <<_ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22082 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_compile") 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22106 { (case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_try") 2>&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; } &&
22115 { ac_try='test -s conftest.$ac_objext'
22116 { (case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_try") 2>&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }; }; then
22125 llvm_cv_cxx_visibility_inlines_hidden=yes
22127 echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22130 llvm_cv_cxx_visibility_inlines_hidden=no
22133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134 CXXFLAGS="$oldcxxflags"
22136 ac_cpp='$CPP $CPPFLAGS'
22137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22143 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22144 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22145 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22146 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22149 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22154 if test "$llvm_cv_link_use_r" = "yes" ; then
22161 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22162 RDYNAMIC="-rdynamic"
22169 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22176 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22178 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22180 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22182 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22184 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22187 ac_config_files="$ac_config_files Makefile.config"
22190 ac_config_files="$ac_config_files llvm.spec"
22193 ac_config_files="$ac_config_files docs/doxygen.cfg"
22196 if test "${clang_src_root}" = ""; then
22197 clang_src_root="$srcdir/tools/clang"
22199 if test -f ${clang_src_root}/README.txt; then
22200 configh="include/clang/Config/config.h"
22201 doxy="docs/doxygen.cfg"
22202 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22204 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22208 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22211 test "x$program_prefix" = "xNONE" && program_prefix=""
22215 ac_config_commands="$ac_config_commands setup"
22217 ac_config_commands="$ac_config_commands Makefile"
22220 ac_config_commands="$ac_config_commands Makefile.common"
22223 ac_config_commands="$ac_config_commands examples/Makefile"
22226 ac_config_commands="$ac_config_commands lib/Makefile"
22229 ac_config_commands="$ac_config_commands runtime/Makefile"
22232 ac_config_commands="$ac_config_commands test/Makefile"
22235 ac_config_commands="$ac_config_commands test/Makefile.tests"
22238 ac_config_commands="$ac_config_commands unittests/Makefile"
22241 ac_config_commands="$ac_config_commands tools/Makefile"
22244 ac_config_commands="$ac_config_commands utils/Makefile"
22247 ac_config_commands="$ac_config_commands projects/Makefile"
22250 ac_config_commands="$ac_config_commands bindings/Makefile"
22253 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22257 cat >confcache <<\_ACEOF
22258 # This file is a shell script that caches the results of configure
22259 # tests run on this system so they can be shared between configure
22260 # scripts and configure runs, see configure's option --config-cache.
22261 # It is not useful on other systems. If it contains results you don't
22262 # want to keep, you may remove or edit it.
22264 # config.status only pays attention to the cache file if you give it
22265 # the --recheck option to rerun configure.
22267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22269 # following values.
22273 # The following way of writing the cache mishandles newlines in values,
22274 # but we know of no workaround that is simple, portable, and efficient.
22275 # So, we kill variables containing newlines.
22276 # Ultrix sh set writes to stderr and can't be redirected directly,
22277 # and sets the high bit in the cache file unless we assign to the vars.
22279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22280 eval ac_val=\$$ac_var
22284 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22285 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22288 _ | IFS | as_nl) ;; #(
22289 *) $as_unset $ac_var ;;
22295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22296 *${as_nl}ac_space=\ *)
22297 # `set' does not quote correctly, so add quotes (double-quote
22298 # substitution turns \\\\ into \\, and sed turns \\ into \).
22301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22304 # `set' quotes correctly as required by POSIX, so do not add quotes.
22305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22319 if test -w "$cache_file"; then
22320 test "x$cache_file" != "x/dev/null" &&
22321 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22322 echo "$as_me: updating cache $cache_file" >&6;}
22323 cat confcache >$cache_file
22325 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22332 # Let make expand exec_prefix.
22333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22335 DEFS=-DHAVE_CONFIG_H
22339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22340 # 1. Remove the extension, and $U if already installed.
22341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22342 ac_i=`echo "$ac_i" | sed "$ac_script"`
22343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22344 # will be set to the directory where LIBOBJS objects are built.
22345 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22346 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22348 LIBOBJS=$ac_libobjs
22350 LTLIBOBJS=$ac_ltlibobjs
22353 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22354 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22355 Usually this means the macro was only invoked conditionally." >&5
22356 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22357 Usually this means the macro was only invoked conditionally." >&2;}
22358 { (exit 1); exit 1; }; }
22360 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22361 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22362 Usually this means the macro was only invoked conditionally." >&5
22363 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22364 Usually this means the macro was only invoked conditionally." >&2;}
22365 { (exit 1); exit 1; }; }
22368 : ${CONFIG_STATUS=./config.status}
22369 ac_clean_files_save=$ac_clean_files
22370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22373 cat >$CONFIG_STATUS <<_ACEOF
22375 # Generated by $as_me.
22376 # Run this file to recreate the current configuration.
22377 # Compiler output produced by configure, useful for debugging
22378 # configure, is in config.log if it exists.
22381 ac_cs_recheck=false
22383 SHELL=\${CONFIG_SHELL-$SHELL}
22386 cat >>$CONFIG_STATUS <<\_ACEOF
22387 ## --------------------- ##
22388 ## M4sh Initialization. ##
22389 ## --------------------- ##
22391 # Be Bourne compatible
22392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22396 # is contrary to our usage. Disable this feature.
22397 alias -g '${1+"$@"}'='"$@"'
22398 setopt NO_GLOB_SUBST
22400 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22402 BIN_SH=xpg4; export BIN_SH # for Tru64
22403 DUALCASE=1; export DUALCASE # for MKS sh
22407 # Avoid depending upon Character Ranges.
22408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22411 as_cr_digits='0123456789'
22412 as_cr_alnum=$as_cr_Letters$as_cr_digits
22414 # The user is always right.
22415 if test "${PATH_SEPARATOR+set}" != set; then
22416 echo "#! /bin/sh" >conf$$.sh
22417 echo "exit 0" >>conf$$.sh
22419 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22427 # Support unset when possible.
22428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22436 # We need space, tab and new line, in precisely that order. Quoting is
22437 # there to prevent editors from complaining about space-tab.
22438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22439 # splitting by setting IFS to empty value.)
22444 # Find who we are. Look in the path if we contain no directory separator.
22446 *[\\/]* ) as_myself=$0 ;;
22447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22448 for as_dir in $PATH
22451 test -z "$as_dir" && as_dir=.
22452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22458 # We did not find ourselves, most probably we were run as `sh COMMAND'
22459 # in which case we are not to be found in the path.
22460 if test "x$as_myself" = x; then
22463 if test ! -f "$as_myself"; then
22464 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22465 { (exit 1); exit 1; }
22468 # Work around bugs in pre-3.0 UWIN ksh.
22469 for as_var in ENV MAIL MAILPATH
22470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22480 LC_TELEPHONE LC_TIME
22482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22483 eval $as_var=C; export $as_var
22485 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22489 # Required to use basename.
22490 if expr a : '\(a\)' >/dev/null 2>&1 &&
22491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22498 as_basename=basename
22504 # Name of the executable.
22505 as_me=`$as_basename -- "$0" ||
22506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22507 X"$0" : 'X\(//\)$' \| \
22508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22510 sed '/^.*\/\([^/][^/]*\)\/*$/{
22529 as_lineno_1=$LINENO
22530 as_lineno_2=$LINENO
22531 test "x$as_lineno_1" != "x$as_lineno_2" &&
22532 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22535 # uniformly replaced by the line number. The first 'sed' inserts a
22536 # line-number line after each line using $LINENO; the second 'sed'
22537 # does the real work. The second script uses 'N' to pair each
22538 # line-number line with the line containing $LINENO, and appends
22539 # trailing '-' during substitution so that $LINENO is not a special
22540 # case at line end.
22541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22542 # scripts with optimization help from Paolo Bonzini. Blame Lee
22543 # E. McMahon (1931-1989) for sed's syntax. :-)
22555 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22558 ' >$as_me.lineno &&
22559 chmod +x "$as_me.lineno" ||
22560 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22561 { (exit 1); exit 1; }; }
22563 # Don't try to exec as it changes $[0], causing all sort of problems
22564 # (the dirname of $[0] is not the place where we might find the
22565 # original and so on. Autoconf is especially sensitive to this).
22566 . "./$as_me.lineno"
22567 # Exit status is that of the last command.
22572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22578 ECHO_C= ECHO_N= ECHO_T=
22579 case `echo -n x` in
22581 case `echo 'x\c'` in
22582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22589 if expr a : '\(a\)' >/dev/null 2>&1 &&
22590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22596 rm -f conf$$ conf$$.exe conf$$.file
22597 if test -d conf$$.dir; then
22598 rm -f conf$$.dir/conf$$.file
22604 if ln -s conf$$.file conf$$ 2>/dev/null; then
22606 # ... but there are two gotchas:
22607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22609 # In both cases, we have to default to `cp -p'.
22610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22612 elif ln conf$$.file conf$$ 2>/dev/null; then
22617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22618 rmdir conf$$.dir 2>/dev/null
22620 if mkdir -p . 2>/dev/null; then
22623 test -d ./-p && rmdir ./-p
22627 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22628 # systems may use methods other than mode bits to determine executability.
22629 cat >conf$$.file <<_ASEOF
22633 chmod +x conf$$.file
22634 if test -x conf$$.file >/dev/null 2>&1; then
22635 as_executable_p="test -x"
22641 # Sed expression to map a string onto a valid CPP name.
22642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22644 # Sed expression to map a string onto a valid variable name.
22645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22650 # Save the log message, to keep $[0] and so on meaningful, and to
22651 # report actual input values of CONFIG_FILES etc. instead of their
22652 # values after options handling.
22654 This file was extended by LLVM $as_me 3.4svn, which was
22655 generated by GNU Autoconf 2.60. Invocation command line was
22657 CONFIG_FILES = $CONFIG_FILES
22658 CONFIG_HEADERS = $CONFIG_HEADERS
22659 CONFIG_LINKS = $CONFIG_LINKS
22660 CONFIG_COMMANDS = $CONFIG_COMMANDS
22663 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22668 cat >>$CONFIG_STATUS <<_ACEOF
22669 # Files that config.status was made for.
22670 config_files="$ac_config_files"
22671 config_headers="$ac_config_headers"
22672 config_commands="$ac_config_commands"
22676 cat >>$CONFIG_STATUS <<\_ACEOF
22678 \`$as_me' instantiates files from templates according to the
22679 current configuration.
22681 Usage: $0 [OPTIONS] [FILE]...
22683 -h, --help print this help, then exit
22684 -V, --version print version number, then exit
22685 -q, --quiet do not print progress messages
22686 -d, --debug don't remove temporary files
22687 --recheck update $as_me by reconfiguring in the same conditions
22688 --file=FILE[:TEMPLATE]
22689 instantiate the configuration file FILE
22690 --header=FILE[:TEMPLATE]
22691 instantiate the configuration header FILE
22693 Configuration files:
22696 Configuration headers:
22699 Configuration commands:
22702 Report bugs to <bug-autoconf@gnu.org>."
22705 cat >>$CONFIG_STATUS <<_ACEOF
22707 LLVM config.status 3.4svn
22708 configured by $0, generated by GNU Autoconf 2.60,
22709 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22711 Copyright (C) 2006 Free Software Foundation, Inc.
22712 This config.status script is free software; the Free Software Foundation
22713 gives unlimited permission to copy, distribute and modify it."
22720 cat >>$CONFIG_STATUS <<\_ACEOF
22721 # If no file are specified by the user, then we need to provide default
22722 # value. By we need to know if files were specified by the user.
22728 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22740 # Handling of the options.
22741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22744 echo "$ac_cs_version"; exit ;;
22745 --debug | --debu | --deb | --de | --d | -d )
22747 --file | --fil | --fi | --f )
22749 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22750 ac_need_defaults=false;;
22751 --header | --heade | --head | --hea )
22753 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22754 ac_need_defaults=false;;
22756 # Conflict between --help and --header
22757 { echo "$as_me: error: ambiguous option: $1
22758 Try \`$0 --help' for more information." >&2
22759 { (exit 1); exit 1; }; };;
22760 --help | --hel | -h )
22761 echo "$ac_cs_usage"; exit ;;
22762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22766 # This is an error.
22767 -*) { echo "$as_me: error: unrecognized option: $1
22768 Try \`$0 --help' for more information." >&2
22769 { (exit 1); exit 1; }; } ;;
22771 *) ac_config_targets="$ac_config_targets $1"
22772 ac_need_defaults=false ;;
22778 ac_configure_extra_args=
22780 if $ac_cs_silent; then
22782 ac_configure_extra_args="$ac_configure_extra_args --silent"
22786 cat >>$CONFIG_STATUS <<_ACEOF
22787 if \$ac_cs_recheck; then
22788 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22789 CONFIG_SHELL=$SHELL
22790 export CONFIG_SHELL
22791 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22795 cat >>$CONFIG_STATUS <<\_ACEOF
22799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22800 ## Running $as_me. ##
22806 cat >>$CONFIG_STATUS <<_ACEOF
22810 llvm_src="${srcdir}"
22814 cat >>$CONFIG_STATUS <<\_ACEOF
22816 # Handling of arguments.
22817 for ac_config_target in $ac_config_targets
22819 case $ac_config_target in
22820 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22821 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22822 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22823 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22824 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22825 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22826 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22827 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22828 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22829 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22830 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22831 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22832 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22833 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22834 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22835 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22836 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22837 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22838 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22839 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22840 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22841 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22842 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22843 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22844 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22845 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22846 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22848 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22849 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22850 { (exit 1); exit 1; }; };;
22855 # If the user did not use the arguments to specify the items to instantiate,
22856 # then the envvar interface is used. Set only those that are not.
22857 # We use the long form for the default assignment because of an extremely
22858 # bizarre bug on SunOS 4.1.3.
22859 if $ac_need_defaults; then
22860 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22861 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22862 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22865 # Have a temporary directory for convenience. Make it in the build tree
22866 # simply because there is no reason against having it here, and in addition,
22867 # creating and moving files from /tmp can sometimes cause problems.
22868 # Hook for its removal unless debugging.
22869 # Note that there is a small window in which the directory will not be cleaned:
22870 # after its creation but before its name has been assigned to `$tmp'.
22874 trap 'exit_status=$?
22875 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22877 trap '{ (exit 1); exit 1; }' 1 2 13 15
22879 # Create a (secure) tmp directory for tmp files.
22882 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22883 test -n "$tmp" && test -d "$tmp"
22886 tmp=./conf$$-$RANDOM
22887 (umask 077 && mkdir "$tmp")
22890 echo "$me: cannot create a temporary directory in ." >&2
22891 { (exit 1); exit 1; }
22895 # Set up the sed scripts for CONFIG_FILES section.
22898 # No need to generate the scripts if there are no CONFIG_FILES.
22899 # This happens for instance when ./config.status config.h
22900 if test -n "$CONFIG_FILES"; then
22907 for ac_last_try in false false false false false :; do
22908 cat >conf$$subs.sed <<_ACEOF
22909 SHELL!$SHELL$ac_delim
22910 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22911 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22912 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22913 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22914 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22915 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22916 exec_prefix!$exec_prefix$ac_delim
22917 prefix!$prefix$ac_delim
22918 program_transform_name!$program_transform_name$ac_delim
22919 bindir!$bindir$ac_delim
22920 sbindir!$sbindir$ac_delim
22921 libexecdir!$libexecdir$ac_delim
22922 datarootdir!$datarootdir$ac_delim
22923 datadir!$datadir$ac_delim
22924 sysconfdir!$sysconfdir$ac_delim
22925 sharedstatedir!$sharedstatedir$ac_delim
22926 localstatedir!$localstatedir$ac_delim
22927 includedir!$includedir$ac_delim
22928 oldincludedir!$oldincludedir$ac_delim
22929 docdir!$docdir$ac_delim
22930 infodir!$infodir$ac_delim
22931 htmldir!$htmldir$ac_delim
22932 dvidir!$dvidir$ac_delim
22933 pdfdir!$pdfdir$ac_delim
22934 psdir!$psdir$ac_delim
22935 libdir!$libdir$ac_delim
22936 localedir!$localedir$ac_delim
22937 mandir!$mandir$ac_delim
22938 DEFS!$DEFS$ac_delim
22939 ECHO_C!$ECHO_C$ac_delim
22940 ECHO_N!$ECHO_N$ac_delim
22941 ECHO_T!$ECHO_T$ac_delim
22942 LIBS!$LIBS$ac_delim
22943 build_alias!$build_alias$ac_delim
22944 host_alias!$host_alias$ac_delim
22945 target_alias!$target_alias$ac_delim
22946 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22948 CFLAGS!$CFLAGS$ac_delim
22949 LDFLAGS!$LDFLAGS$ac_delim
22950 CPPFLAGS!$CPPFLAGS$ac_delim
22951 ac_ct_CC!$ac_ct_CC$ac_delim
22952 EXEEXT!$EXEEXT$ac_delim
22953 OBJEXT!$OBJEXT$ac_delim
22955 CXXFLAGS!$CXXFLAGS$ac_delim
22956 ac_ct_CXX!$ac_ct_CXX$ac_delim
22958 subdirs!$subdirs$ac_delim
22959 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22960 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22961 build!$build$ac_delim
22962 build_cpu!$build_cpu$ac_delim
22963 build_vendor!$build_vendor$ac_delim
22964 build_os!$build_os$ac_delim
22965 host!$host$ac_delim
22966 host_cpu!$host_cpu$ac_delim
22967 host_vendor!$host_vendor$ac_delim
22968 host_os!$host_os$ac_delim
22969 target!$target$ac_delim
22970 target_cpu!$target_cpu$ac_delim
22971 target_vendor!$target_vendor$ac_delim
22972 target_os!$target_os$ac_delim
22974 HOST_OS!$HOST_OS$ac_delim
22975 TARGET_OS!$TARGET_OS$ac_delim
22976 LINKALL!$LINKALL$ac_delim
22977 NOLINKALL!$NOLINKALL$ac_delim
22978 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22979 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22980 ARCH!$ARCH$ac_delim
22981 HOST_ARCH!$HOST_ARCH$ac_delim
22982 ENDIAN!$ENDIAN$ac_delim
22983 GREP!$GREP$ac_delim
22984 EGREP!$EGREP$ac_delim
22985 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22986 BUILD_CC!$BUILD_CC$ac_delim
22987 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22988 BUILD_CXX!$BUILD_CXX$ac_delim
22989 CVSBUILD!$CVSBUILD$ac_delim
22990 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22991 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22992 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22993 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22994 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22995 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22996 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22997 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22998 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22999 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23000 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23001 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23002 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23003 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23004 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23008 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23010 elif $ac_last_try; then
23011 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23012 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23013 { (exit 1); exit 1; }; }
23015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23019 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23020 if test -n "$ac_eof"; then
23021 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23022 ac_eof=`expr $ac_eof + 1`
23025 cat >>$CONFIG_STATUS <<_ACEOF
23026 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23030 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23031 s/^/s,@/; s/!/@,|#_!!_#|/
23034 s/'"$ac_delim"'$/,g/; t
23036 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23037 ' >>$CONFIG_STATUS <conf$$subs.sed
23038 rm -f conf$$subs.sed
23039 cat >>$CONFIG_STATUS <<_ACEOF
23045 for ac_last_try in false false false false false :; do
23046 cat >conf$$subs.sed <<_ACEOF
23047 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23048 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23049 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23050 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23051 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23052 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23053 ENABLE_PIC!$ENABLE_PIC$ac_delim
23054 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23055 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23056 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23057 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23058 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23059 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23060 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23061 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23062 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23063 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23064 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23065 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23066 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23067 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23068 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23070 ifGNUmake!$ifGNUmake$ac_delim
23071 LN_S!$LN_S$ac_delim
23074 DATE!$DATE$ac_delim
23075 FIND!$FIND$ac_delim
23076 MKDIR!$MKDIR$ac_delim
23078 RANLIB!$RANLIB$ac_delim
23083 BINPWD!$BINPWD$ac_delim
23084 GRAPHVIZ!$GRAPHVIZ$ac_delim
23087 NEATO!$NEATO$ac_delim
23088 TWOPI!$TWOPI$ac_delim
23089 CIRCO!$CIRCO$ac_delim
23091 DOTTY!$DOTTY$ac_delim
23092 XDOT!$XDOT$ac_delim
23093 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23094 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23095 INSTALL_DATA!$INSTALL_DATA$ac_delim
23096 BZIP2!$BZIP2$ac_delim
23098 DOXYGEN!$DOXYGEN$ac_delim
23099 GROFF!$GROFF$ac_delim
23100 GZIPBIN!$GZIPBIN$ac_delim
23101 PDFROFF!$PDFROFF$ac_delim
23103 OCAMLC!$OCAMLC$ac_delim
23104 OCAMLOPT!$OCAMLOPT$ac_delim
23105 OCAMLDEP!$OCAMLDEP$ac_delim
23106 OCAMLDOC!$OCAMLDOC$ac_delim
23108 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23109 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23110 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23111 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23112 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23113 LIBADD_DL!$LIBADD_DL$ac_delim
23114 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23115 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23116 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23117 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23118 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23119 PYTHON!$PYTHON$ac_delim
23120 USE_UDIS86!$USE_UDIS86$ac_delim
23121 USE_OPROFILE!$USE_OPROFILE$ac_delim
23122 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23123 XML2CONFIG!$XML2CONFIG$ac_delim
23124 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23125 LIBXML2_INC!$LIBXML2_INC$ac_delim
23126 CXXCPP!$CXXCPP$ac_delim
23127 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23128 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23129 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23130 MMAP_FILE!$MMAP_FILE$ac_delim
23131 SHLIBEXT!$SHLIBEXT$ac_delim
23132 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23133 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23134 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23135 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23136 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23137 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23138 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23139 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23140 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23141 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23142 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23143 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23146 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23148 elif $ac_last_try; then
23149 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23150 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23151 { (exit 1); exit 1; }; }
23153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23157 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23158 if test -n "$ac_eof"; then
23159 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23160 ac_eof=`expr $ac_eof + 1`
23163 cat >>$CONFIG_STATUS <<_ACEOF
23164 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23168 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23169 s/^/s,@/; s/!/@,|#_!!_#|/
23172 s/'"$ac_delim"'$/,g/; t
23174 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23175 ' >>$CONFIG_STATUS <conf$$subs.sed
23176 rm -f conf$$subs.sed
23177 cat >>$CONFIG_STATUS <<_ACEOF
23183 for ac_last_try in false false false false false :; do
23184 cat >conf$$subs.sed <<_ACEOF
23185 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23186 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23187 RPATH!$RPATH$ac_delim
23188 RDYNAMIC!$RDYNAMIC$ac_delim
23189 program_prefix!$program_prefix$ac_delim
23190 LIBOBJS!$LIBOBJS$ac_delim
23191 LTLIBOBJS!$LTLIBOBJS$ac_delim
23194 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23196 elif $ac_last_try; then
23197 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23198 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23199 { (exit 1); exit 1; }; }
23201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23205 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23206 if test -n "$ac_eof"; then
23207 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23208 ac_eof=`expr $ac_eof + 1`
23211 cat >>$CONFIG_STATUS <<_ACEOF
23212 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23216 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23217 s/^/s,@/; s/!/@,|#_!!_#|/
23220 s/'"$ac_delim"'$/,g/; t
23222 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23223 ' >>$CONFIG_STATUS <conf$$subs.sed
23224 rm -f conf$$subs.sed
23225 cat >>$CONFIG_STATUS <<_ACEOF
23232 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23233 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23234 # trailing colons and then remove the whole line if VPATH becomes empty
23235 # (actually we leave an empty line to preserve line numbers).
23236 if test "x$srcdir" = x.; then
23237 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23238 s/:*\$(srcdir):*/:/
23239 s/:*\${srcdir}:*/:/
23241 s/^\([^=]*=[ ]*\):*/\1/
23247 cat >>$CONFIG_STATUS <<\_ACEOF
23248 fi # test -n "$CONFIG_FILES"
23251 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23254 :[FHLC]) ac_mode=$ac_tag; continue;;
23256 case $ac_mode$ac_tag in
23258 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23259 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23260 { (exit 1); exit 1; }; };;
23261 :[FH]-) ac_tag=-:-;;
23262 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23279 -) ac_f="$tmp/stdin";;
23280 *) # Look for the file first in the build tree, then in the source tree
23281 # (if the path is not absolute). The absolute path cannot be DOS-style,
23282 # because $ac_f cannot contain `:'.
23286 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23288 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23289 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23290 { (exit 1); exit 1; }; };;
23292 ac_file_inputs="$ac_file_inputs $ac_f"
23295 # Let's still pretend it is `configure' which instantiates (i.e., don't
23296 # use $as_me), people would be surprised to read:
23297 # /* config.h. Generated by config.status. */
23298 configure_input="Generated from "`IFS=:
23299 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23300 if test x"$ac_file" != x-; then
23301 configure_input="$ac_file. $configure_input"
23302 { echo "$as_me:$LINENO: creating $ac_file" >&5
23303 echo "$as_me: creating $ac_file" >&6;}
23307 *:-:* | *:-) cat >"$tmp/stdin";;
23312 ac_dir=`$as_dirname -- "$ac_file" ||
23313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23314 X"$ac_file" : 'X\(//\)[^/]' \| \
23315 X"$ac_file" : 'X\(//\)$' \| \
23316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23322 /^X\(\/\/\)[^/].*/{
23337 -*) as_dir=./$as_dir;;
23339 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23343 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23344 *) as_qdir=$as_dir;;
23346 as_dirs="'$as_qdir' $as_dirs"
23347 as_dir=`$as_dirname -- "$as_dir" ||
23348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23349 X"$as_dir" : 'X\(//\)[^/]' \| \
23350 X"$as_dir" : 'X\(//\)$' \| \
23351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23357 /^X\(\/\/\)[^/].*/{
23370 test -d "$as_dir" && break
23372 test -z "$as_dirs" || eval "mkdir $as_dirs"
23373 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23374 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23375 { (exit 1); exit 1; }; }; }
23379 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23381 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23382 # A ".." for each directory in $ac_dir_suffix.
23383 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23384 case $ac_top_builddir_sub in
23385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23389 ac_abs_top_builddir=$ac_pwd
23390 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23391 # for backward compatibility:
23392 ac_top_builddir=$ac_top_build_prefix
23395 .) # We are building in place.
23397 ac_top_srcdir=$ac_top_builddir_sub
23398 ac_abs_top_srcdir=$ac_pwd ;;
23399 [\\/]* | ?:[\\/]* ) # Absolute name.
23400 ac_srcdir=$srcdir$ac_dir_suffix;
23401 ac_top_srcdir=$srcdir
23402 ac_abs_top_srcdir=$srcdir ;;
23403 *) # Relative name.
23404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23405 ac_top_srcdir=$ac_top_build_prefix$srcdir
23406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23408 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23418 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23419 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23423 cat >>$CONFIG_STATUS <<\_ACEOF
23424 # If the template does not know about datarootdir, expand it.
23425 # FIXME: This hack should be removed a few years after 2.60.
23426 ac_datarootdir_hack=; ac_datarootdir_seen=
23428 case `sed -n '/datarootdir/ {
23437 ' $ac_file_inputs` in
23438 *datarootdir*) ac_datarootdir_seen=yes;;
23439 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23440 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23441 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23443 cat >>$CONFIG_STATUS <<_ACEOF
23444 ac_datarootdir_hack='
23445 s&@datadir@&$datadir&g
23446 s&@docdir@&$docdir&g
23447 s&@infodir@&$infodir&g
23448 s&@localedir@&$localedir&g
23449 s&@mandir@&$mandir&g
23450 s&\\\${datarootdir}&$datarootdir&g' ;;
23454 # Neutralize VPATH when `$srcdir' = `.'.
23455 # Shell code in configure.ac might set extrasub.
23456 # FIXME: do we really want to maintain this feature?
23457 cat >>$CONFIG_STATUS <<_ACEOF
23461 cat >>$CONFIG_STATUS <<\_ACEOF
23463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23464 s&@configure_input@&$configure_input&;t t
23465 s&@top_builddir@&$ac_top_builddir_sub&;t t
23466 s&@srcdir@&$ac_srcdir&;t t
23467 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23468 s&@top_srcdir@&$ac_top_srcdir&;t t
23469 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23470 s&@builddir@&$ac_builddir&;t t
23471 s&@abs_builddir@&$ac_abs_builddir&;t t
23472 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23473 s&@INSTALL@&$ac_INSTALL&;t t
23474 $ac_datarootdir_hack
23475 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23477 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23478 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23479 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23480 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23481 which seems to be undefined. Please make sure it is defined." >&5
23482 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23483 which seems to be undefined. Please make sure it is defined." >&2;}
23487 -) cat "$tmp/out"; rm -f "$tmp/out";;
23488 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23497 # Transform confdefs.h into a sed script `conftest.defines', that
23498 # substitutes the proper values into config.h.in to produce config.h.
23499 rm -f conftest.defines conftest.tail
23500 # First, append a space to every undef/define line, to ease matching.
23501 echo 's/$/ /' >conftest.defines
23502 # Then, protect against being on the right side of a sed subst, or in
23503 # an unquoted here document, in config.status. If some macros were
23504 # called several times there might be several #defines for the same
23505 # symbol, which is useless. But do not sort them, since the last
23506 # AC_DEFINE must be honored.
23507 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23508 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23509 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23510 # PARAMS is the parameter list in the macro definition--in most cases, it's
23511 # just an empty string.
23512 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23513 ac_dB='\\)[ (].*,\\1define\\2'
23521 s/^[ ]*#[ ]*define[ ][ ]*//
23526 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23527 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23528 ' >>conftest.defines
23530 # Remove the space that was appended to ease matching.
23531 # Then replace #undef with comments. This is necessary, for
23532 # example, in the case of _POSIX_SOURCE, which is predefined and required
23533 # on some systems where configure will not decide to define it.
23534 # (The regexp can be short, since the line contains either #define or #undef.)
23536 s,^[ #]*u.*,/* & */,' >>conftest.defines
23538 # Break up conftest.defines:
23539 ac_max_sed_lines=50
23541 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23542 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23543 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23545 ac_in='$ac_file_inputs'
23546 ac_out='"$tmp/out1"'
23547 ac_nxt='"$tmp/out2"'
23551 # Write a here document:
23552 cat >>$CONFIG_STATUS <<_ACEOF
23553 # First, check the format of the line:
23554 cat >"\$tmp/defines.sed" <<\\CEOF
23555 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23556 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23560 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23562 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23563 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23564 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23565 grep . conftest.tail >/dev/null || break
23566 rm -f conftest.defines
23567 mv conftest.tail conftest.defines
23569 rm -f conftest.defines conftest.tail
23571 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23572 cat >>$CONFIG_STATUS <<\_ACEOF
23573 if test x"$ac_file" != x-; then
23574 echo "/* $configure_input */" >"$tmp/config.h"
23575 cat "$ac_result" >>"$tmp/config.h"
23576 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23578 echo "$as_me: $ac_file is unchanged" >&6;}
23581 mv "$tmp/config.h" $ac_file
23584 echo "/* $configure_input */"
23590 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23591 echo "$as_me: executing $ac_file commands" >&6;}
23596 case $ac_file$ac_mode in
23597 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23598 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23599 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23600 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23601 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23602 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23603 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23604 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23605 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23606 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23607 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23608 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23609 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23610 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23611 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23612 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23613 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23614 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23615 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23616 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23617 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23618 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23619 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23620 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23621 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23622 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23628 { (exit 0); exit 0; }
23630 chmod +x $CONFIG_STATUS
23631 ac_clean_files=$ac_clean_files_save
23634 # configure is writing to config.log, and then calls config.status.
23635 # config.status does its own redirection, appending to config.log.
23636 # Unfortunately, on DOS this fails, as config.log is still kept open
23637 # by configure, so config.status won't be able to write to it; its
23638 # output is simply discarded. So we exec the FD to /dev/null,
23639 # effectively closing config.log, so it can be properly (re)opened and
23640 # appended to by config.status. When coming back to configure, we
23641 # need to make the FD available again.
23642 if test "$no_create" != yes; then
23644 ac_config_status_args=
23645 test "$silent" = yes &&
23646 ac_config_status_args="$ac_config_status_args --quiet"
23648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23651 # would make configure fail if this is the last instruction.
23652 $ac_cs_success || { (exit 1); exit 1; }
23656 # CONFIG_SUBDIRS section.
23658 if test "$no_recursion" != yes; then
23660 # Remove --cache-file and --srcdir arguments so they do not pile up.
23661 ac_sub_configure_args=
23663 eval "set x $ac_configure_args"
23667 if test -n "$ac_prev"; then
23672 -cache-file | --cache-file | --cache-fil | --cache-fi \
23673 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23674 ac_prev=cache_file ;;
23675 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23676 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23679 --config-cache | -C)
23681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23685 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23687 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23691 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23693 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23697 # Always prepend --prefix to ensure using the same prefix
23698 # in subdir configurations.
23699 ac_arg="--prefix=$prefix"
23701 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23703 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23706 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23708 # Do not complain, so a configure script can configure whichever
23709 # parts of a large source tree are present.
23710 test -d "$srcdir/$ac_dir" || continue
23712 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23713 echo "$as_me:$LINENO: $ac_msg" >&5
23717 -*) as_dir=./$as_dir;;
23719 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23723 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23724 *) as_qdir=$as_dir;;
23726 as_dirs="'$as_qdir' $as_dirs"
23727 as_dir=`$as_dirname -- "$as_dir" ||
23728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23729 X"$as_dir" : 'X\(//\)[^/]' \| \
23730 X"$as_dir" : 'X\(//\)$' \| \
23731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23737 /^X\(\/\/\)[^/].*/{
23750 test -d "$as_dir" && break
23752 test -z "$as_dirs" || eval "mkdir $as_dirs"
23753 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23754 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23755 { (exit 1); exit 1; }; }; }
23759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23761 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23762 # A ".." for each directory in $ac_dir_suffix.
23763 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23764 case $ac_top_builddir_sub in
23765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23769 ac_abs_top_builddir=$ac_pwd
23770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23771 # for backward compatibility:
23772 ac_top_builddir=$ac_top_build_prefix
23775 .) # We are building in place.
23777 ac_top_srcdir=$ac_top_builddir_sub
23778 ac_abs_top_srcdir=$ac_pwd ;;
23779 [\\/]* | ?:[\\/]* ) # Absolute name.
23780 ac_srcdir=$srcdir$ac_dir_suffix;
23781 ac_top_srcdir=$srcdir
23782 ac_abs_top_srcdir=$srcdir ;;
23783 *) # Relative name.
23784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23785 ac_top_srcdir=$ac_top_build_prefix$srcdir
23786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23793 # Check for guested configure; otherwise get Cygnus style configure.
23794 if test -f "$ac_srcdir/configure.gnu"; then
23795 ac_sub_configure=$ac_srcdir/configure.gnu
23796 elif test -f "$ac_srcdir/configure"; then
23797 ac_sub_configure=$ac_srcdir/configure
23798 elif test -f "$ac_srcdir/configure.in"; then
23799 # This should be Cygnus configure.
23800 ac_sub_configure=$ac_aux_dir/configure
23802 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23803 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23807 # The recursion is here.
23808 if test -n "$ac_sub_configure"; then
23809 # Make the cache file name correct relative to the subdirectory.
23810 case $cache_file in
23811 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23812 *) # Relative name.
23813 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23816 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23817 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23818 # The eval makes quoting arguments work.
23819 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23820 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23821 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23822 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23823 { (exit 1); exit 1; }; }